Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
dune-vtk
Commits
43414df5
Commit
43414df5
authored
Sep 17, 2020
by
Praetorius, Simon
Browse files
changed return type of order() to int
parent
c86f10e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
dune/vtk/gridcreators/lagrangegridcreator.hh
View file @
43414df5
...
@@ -198,19 +198,19 @@ namespace Dune
...
@@ -198,19 +198,19 @@ namespace Dune
/// Determine lagrange order from number of points
/// Determine lagrange order from number of points
template
<
class
LocalParam
>
template
<
class
LocalParam
>
unsigned
int
order
(
LocalParam
const
&
localParam
)
const
int
order
(
LocalParam
const
&
localParam
)
const
{
{
GeometryType
type
=
localParam
.
type
;
GeometryType
type
=
localParam
.
type
;
std
::
size_
t
nNodes
=
localParam
.
nodes
.
size
();
in
t
nNodes
=
localParam
.
nodes
.
size
();
for
(
unsigned
int
o
=
1
;
o
<=
nNodes
;
++
o
)
for
(
int
o
=
1
;
o
<=
nNodes
;
++
o
)
if
(
numLagrangePoints
(
type
.
id
(),
type
.
dim
(),
o
)
==
nNodes
)
if
(
numLagrangePoints
(
type
.
id
(),
type
.
dim
(),
o
)
==
std
::
size_t
(
nNodes
)
)
return
o
;
return
o
;
return
1
;
return
1
;
}
}
/// Determine lagrange order from number of points from the first element parametrization
/// Determine lagrange order from number of points from the first element parametrization
unsigned
int
order
()
const
int
order
()
const
{
{
assert
(
!
parametrization_
.
empty
());
assert
(
!
parametrization_
.
empty
());
return
order
(
parametrization_
.
front
());
return
order
(
parametrization_
.
front
());
...
@@ -292,7 +292,7 @@ namespace Dune
...
@@ -292,7 +292,7 @@ namespace Dune
public:
public:
/// Construct a local element parametrization
/// Construct a local element parametrization
template
<
class
Nodes
,
class
LocalParam
>
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
)
:
localFE_
(
param
.
type
,
order
)
,
localNodes_
(
param
.
nodes
.
size
())
,
localNodes_
(
param
.
nodes
.
size
())
{
{
...
@@ -302,7 +302,7 @@ namespace Dune
...
@@ -302,7 +302,7 @@ namespace Dune
/// Construct a local element parametrization for elements with permuted corners
/// Construct a local element parametrization for elements with permuted corners
template
<
class
Nodes
,
class
LocalParam
,
class
Permutation
>
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
)
:
LocalParametrization
(
nodes
,
param
,
order
)
{
{
auto
refElem
=
referenceElement
<
ctype
,
Grid
::
dimension
>
(
param
.
type
);
auto
refElem
=
referenceElement
<
ctype
,
Grid
::
dimension
>
(
param
.
type
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment