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
amdis
amdis-core
Commits
b749d3f8
Commit
b749d3f8
authored
Feb 07, 2020
by
Praetorius, Simon
Browse files
Merge branch 'feature/generator_function_writer' into 'master'
generator function writer See merge request
!157
parents
889e1996
96822dcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/amdis/io/BackupWriter.hpp
View file @
b749d3f8
...
...
@@ -75,4 +75,11 @@ namespace AMDiS
bool
animation_
=
false
;
};
/// Generator function for \ref BackupWriter
template
<
class
SystemVector
>
BackupWriter
<
SystemVector
>
makeBackupWriter
(
std
::
string
const
&
name
,
std
::
shared_ptr
<
SystemVector
>
systemVector
)
{
return
{
name
,
systemVector
};
}
}
// end namespace AMDiS
src/amdis/io/GmshWriter.hpp
View file @
b749d3f8
...
...
@@ -70,4 +70,14 @@ namespace AMDiS
bool
animation_
=
false
;
};
/// Generator function for \ref GmshWriter
template
<
class
GridView
>
GmshWriter
<
GridView
>
makeGmshWriter
(
std
::
string
const
&
name
,
GridView
const
&
gridView
,
std
::
vector
<
int
>
const
&
physicalEntities
=
std
::
vector
<
int
>
(),
std
::
vector
<
int
>
const
&
physicalBoundaries
=
std
::
vector
<
int
>
())
{
return
{
name
,
gridView
,
physicalEntities
,
physicalBoundaries
};
}
}
// end namespace AMDiS
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