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-gmsh4
Commits
a595e019
Commit
a595e019
authored
Sep 17, 2020
by
Praetorius, Simon
Browse files
changed return type of order() to int
parent
d03d6530
Pipeline
#4793
passed with stage
in 15 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dune/gmsh4/gridcreators/lagrangegridcreator.hh
View file @
a595e019
...
...
@@ -202,19 +202,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
());
...
...
@@ -299,7 +299,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
())
{
...
...
@@ -309,7 +309,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
);
...
...
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