Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-multimesh
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
Container Registry
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
Praetorius, Simon
dune-multimesh
Commits
22c8d7dd
Commit
22c8d7dd
authored
6 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
cleanup of README
parent
b79c020c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+18
-9
18 additions, 9 deletions
README.md
with
18 additions
and
9 deletions
README.md
+
18
−
9
View file @
22c8d7dd
...
...
@@ -11,11 +11,14 @@ Installation
Building the module follows the standard Dune guideline, i.e. simply call
dunecontrol --current all
```
dunecontrol --current all
```
In the modules root directory. Required dependencies are the modules
-
dune-common
-
dune-grid
and optionally you may provide different grid modules that can be used with
dune-multimesh, e.g.
-
dune-alugrid
...
...
@@ -28,14 +31,18 @@ Getting started
In order to build a MultiMesh, simply wrap your host-grid type into a the
`MultiMesh`
class and set the number of grids to construct.
using HostGrid = ALUGrid
<
2,
2,
simplex
,
conforming
>
;
MultiMesh
<HostGrid>
multimesh(2);
```
using HostGrid = ALUGrid<2, 2, simplex, conforming>;
MultiMesh<HostGrid> multimesh(2);
```
If the host-grid allows to pass arguments to its constructo, these can be
appended to the MultiMesh constructor after the size argument, e.g.
using HostGrid = AlbertaGrid
<
3,3
>
;
MultiMesh
<HostGrid>
multimesh(2, filename);
```
using HostGrid = AlbertaGrid<3,3>;
MultiMesh<HostGrid> multimesh(2, filename);
```
Since grids are not copy-constructable, all grids in a MultiMesh are constructed
from scratch from the same arguments or the same grid-factory, to guarantee
...
...
@@ -46,10 +53,12 @@ constructor creates one grid only. (This is just to be conform the the
GridFactory interface). In order to use, e.g. structured grid-factory builders,
you have to pass the MultiMesh GridFactory:
using HostGrid = ALUGrid
<
2,
2,
simplex
,
conforming
>
;
using Factory = StructuredGridBuilder
<MultiMesh
<
HostGrid
>
>;
GridFactory
<MultiMesh
<
HostGrid
>
> gridFactory(3); // create 3 grids
auto gridPtr = Factory::createSimplexGrid(gridFactory, lower, upper, num);
```
using HostGrid = ALUGrid<2, 2, simplex, conforming>;
using Factory = StructuredGridBuilder<MultiMesh<HostGrid> >;
GridFactory<MultiMesh<HostGrid> > gridFactory(3); // create 3 grids
auto gridPtr = Factory::createSimplexGrid(gridFactory, lower, upper, num);
```
Since the dune-grid StructuredGridFactory does not allow to pass an own
GridFactory object to fill, a modified StructuredGridFactory is provided in the
...
...
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