Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-vtk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iwr
dune-vtk
Commits
43414df5
Commit
43414df5
authored
4 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
changed return type of order() to int
parent
c86f10e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/vtk/gridcreators/lagrangegridcreator.hh
+7
-7
7 additions, 7 deletions
dune/vtk/gridcreators/lagrangegridcreator.hh
with
7 additions
and
7 deletions
dune/vtk/gridcreators/lagrangegridcreator.hh
+
7
−
7
View file @
43414df5
...
...
@@ -198,19 +198,19 @@ namespace Dune
/// Determine lagrange order from number of points
template
<
class
LocalParam
>
unsigned
int
order
(
LocalParam
const
&
localParam
)
const
int
order
(
LocalParam
const
&
localParam
)
const
{
GeometryType
type
=
localParam
.
type
;
std
::
size_
t
nNodes
=
localParam
.
nodes
.
size
();
for
(
unsigned
int
o
=
1
;
o
<=
nNodes
;
++
o
)
if
(
numLagrangePoints
(
type
.
id
(),
type
.
dim
(),
o
)
==
nNodes
)
in
t
nNodes
=
localParam
.
nodes
.
size
();
for
(
int
o
=
1
;
o
<=
nNodes
;
++
o
)
if
(
numLagrangePoints
(
type
.
id
(),
type
.
dim
(),
o
)
==
std
::
size_t
(
nNodes
)
)
return
o
;
return
1
;
}
/// Determine lagrange order from number of points from the first element parametrization
unsigned
int
order
()
const
int
order
()
const
{
assert
(
!
parametrization_
.
empty
());
return
order
(
parametrization_
.
front
());
...
...
@@ -292,7 +292,7 @@ namespace Dune
public:
/// Construct a local element parametrization
template
<
class
Nodes
,
class
LocalParam
>
LocalParametrization
(
Nodes
const
&
nodes
,
LocalParam
const
&
param
,
unsigned
int
order
)
LocalParametrization
(
Nodes
const
&
nodes
,
LocalParam
const
&
param
,
int
order
)
:
localFE_
(
param
.
type
,
order
)
,
localNodes_
(
param
.
nodes
.
size
())
{
...
...
@@ -302,7 +302,7 @@ namespace Dune
/// Construct a local element parametrization for elements with permuted corners
template
<
class
Nodes
,
class
LocalParam
,
class
Permutation
>
LocalParametrization
(
Nodes
const
&
nodes
,
LocalParam
const
&
param
,
unsigned
int
order
,
Permutation
const
&
permutation
)
LocalParametrization
(
Nodes
const
&
nodes
,
LocalParam
const
&
param
,
int
order
,
Permutation
const
&
permutation
)
:
LocalParametrization
(
nodes
,
param
,
order
)
{
auto
refElem
=
referenceElement
<
ctype
,
Grid
::
dimension
>
(
param
.
type
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment