Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-curvedgrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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-curvedgrid
Commits
f25d9790
Commit
f25d9790
authored
4 years ago
by
Stenger, Florian
Browse files
Options
Downloads
Patches
Plain Diff
typo in generator methods
parent
c0ba03c3
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#4559
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/curvedsurfacegrid/grid.hh
+2
-2
2 additions, 2 deletions
dune/curvedsurfacegrid/grid.hh
with
2 additions
and
2 deletions
dune/curvedsurfacegrid/grid.hh
+
2
−
2
View file @
f25d9790
...
...
@@ -56,7 +56,7 @@ class CurvedSurfaceGrid;
/// \brief Generator for CurvedSurfaceGrid from a grid-functions
template
<
class
HostGrid
,
class
GF
,
int
ORDER
=
-
1
,
std
::
enable_if_t
<
Concept
::
isGridFunction
<
GF
,
HostGrid
>(),
int
>
=
0
>
auto
curedSurfaceGrid
(
HostGrid
&
hostGrid
,
GF
&&
gridFunction
)
auto
cur
v
edSurfaceGrid
(
HostGrid
&
hostGrid
,
GF
&&
gridFunction
)
{
static_assert
(
std
::
is_same
<
HostGrid
,
GridOf_t
<
std
::
decay_t
<
GF
>>>::
value
,
"GridFunction must be defined on the HostGrid"
);
return
CurvedSurfaceGrid
<
std
::
decay_t
<
GF
>
,
ORDER
>
{
hostGrid
,
std
::
forward
<
GF
>
(
gridFunction
)};
...
...
@@ -65,7 +65,7 @@ auto curedSurfaceGrid (HostGrid& hostGrid, GF&& gridFunction)
/// \brief Generator for CurvedSurfaceGrid from a callable
template
<
class
HostGrid
,
class
F
,
int
ORDER
=
-
1
,
std
::
enable_if_t
<
not
Concept
::
isGridFunction
<
F
,
HostGrid
>(),
int
>
=
0
>
auto
curedSurfaceGrid
(
HostGrid
&
hostGrid
,
F
&&
callable
)
auto
cur
v
edSurfaceGrid
(
HostGrid
&
hostGrid
,
F
&&
callable
)
{
using
GlobalCoordinate
=
typename
GridEntitySet
<
HostGrid
,
0
>::
GlobalCoordinate
;
static_assert
(
Concept
::
isCallable
<
F
,
GlobalCoordinate
>
(),
"Function must be callable"
);
...
...
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