Commit b749d3f8 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'feature/generator_function_writer' into 'master'

generator function writer

See merge request !157
parents 889e1996 96822dcd
......@@ -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
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment