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-curvedgrid
Commits
cd2a5c1d
Commit
cd2a5c1d
authored
Mar 05, 2020
by
Stenger, Florian
Browse files
geo-/coord-caching
parents
ce7f9959
5e1a7e87
Changes
2
Show whitespace changes
Inline
Side-by-side
dune/curvedsurfacegrid/geometry.hh
View file @
cd2a5c1d
...
...
@@ -92,7 +92,7 @@ namespace Dune
static
const
int
codimension
=
dimension
-
mydimension
;
protected:
typedef
CurvedGeometry
<
ctype
,
mydimension
,
coorddimension
,
Grid
::
order
>
BasicMapping
;
typedef
Lagrange
CurvedGeometry
<
ctype
,
mydimension
,
coorddimension
,
Grid
::
order
>
BasicMapping
;
struct
Mapping
:
public
BasicMapping
...
...
example/example.cc
View file @
cd2a5c1d
...
...
@@ -58,9 +58,15 @@ int main(int argc, char** argv)
//case2: projection to a surface-mesh of a sphere
{
<<<<<<<
HEAD
SurfaceDistanceCoordFunction
surfdistCF
(
"dune-curvedsurfacegrid/example/sphere_fine.vtu"
);
using
GridType
=
CurvedSurfaceGrid
<
HostGridType
,
SurfaceDistanceCoordFunction
<>
,
ip_order
>
;
GridType
grid
(
*
hostGrid
,
surfdistCF
);
=======
SurfaceDistanceCoordFunction
surfdistCF
(
"example/sphere_fine.vtu"
);
using
GridType
=
CurvedSurfaceGrid
<
HostGridType
,
SurfaceDistanceCoordFunction
,
ip_order
>
;
std
::
shared_ptr
<
GridType
>
grid
(
new
GridType
(
*
hostGrid
,
surfdistCF
));
>>>>>>>
5e1
a7e879f2f67079d870c2a9990daabaded47d1
using
GridView
=
GridType
::
LeafGridView
;
GridView
gridView
=
grid
.
leafGridView
();
...
...
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