Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dune-multimesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Praetorius, Simon
dune-multimesh
Commits
fc1cd1d3
Commit
fc1cd1d3
authored
Nov 28, 2018
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface changed in gridfactory
parent
8ca9a701
Pipeline
#1485
failed with stage
in 30 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
dune/multimesh/mmgridfactory.hh
dune/multimesh/mmgridfactory.hh
+12
-0
No files found.
dune/multimesh/mmgridfactory.hh
View file @
fc1cd1d3
...
...
@@ -8,6 +8,8 @@
#include <vector>
#include <dune/common/hybridutilities.hh>
#include <dune/common/to_unique_ptr.hh>
#include <dune/common/version.hh>
#include <dune/common/std/type_traits.hh>
#include <dune/grid/common/gridfactory.hh>
...
...
@@ -147,6 +149,7 @@ namespace Dune
* Create n copies of the grid and store it in unique_pointers
* inside the multimesh grid.
**/
#if DUNE_VERSION_LTE(DUNE_GRID,2,7)
virtual
Grid
*
createGrid
()
override
{
Grid
*
multimesh
=
new
Grid
{};
...
...
@@ -154,6 +157,15 @@ namespace Dune
multimesh
->
grids_
.
emplace_back
(
gridFactory
->
createGrid
());
return
multimesh
;
}
#else
virtual
ToUniquePtr
<
Grid
>
createGrid
()
override
{
std
::
unique_ptr
<
Grid
>
multimesh
{
std
::
make_unique
<
Grid
>
()};
for
(
auto
&
gridFactory
:
gridFactories_
)
multimesh
->
grids_
.
emplace_back
(
gridFactory
->
createGrid
());
return
std
::
move
(
multimesh
);
}
#endif
private:
std
::
vector
<
std
::
unique_ptr
<
GridFactory
<
HostGrid
>>>
gridFactories_
;
...
...
Write
Preview
Markdown
is supported
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