Skip to content
Snippets Groups Projects
Commit 44b9c38d authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] Move up initializeMeshSubsets().

Small cleanups.
parent 6d750d48
No related branches found
No related tags found
No related merge requests found
......@@ -149,17 +149,6 @@ public:
this->_integration_order);
}
void initializeMeshSubsets(MeshLib::Mesh const& mesh) override
{
// Create single component dof in every of the mesh's nodes.
this->_mesh_subset_all_nodes =
new MeshLib::MeshSubset(mesh, &mesh.getNodes());
// Collect the mesh subsets in a vector.
this->_all_mesh_subsets.push_back(
new MeshLib::MeshSubsets(this->_mesh_subset_all_nodes));
}
std::string getLinearSolverName() const override
{
return "gw_";
......
......@@ -60,15 +60,12 @@ public:
virtual void postTimestep(std::string const& file_name,
const unsigned timestep) = 0;
/// Creates mesh subsets, i.e. components, for given mesh.
virtual void initializeMeshSubsets(MeshLib::Mesh const& mesh) = 0;
void initialize()
{
DBUG("Initialize process.");
DBUG("Construct dof mappings.");
initializeMeshSubsets(_mesh);
initializeMeshSubsets();
_local_to_global_index_map.reset(
new AssemblerLib::LocalToGlobalIndexMap(
......@@ -132,6 +129,18 @@ protected:
}
private:
/// Creates mesh subsets, i.e. components, for given mesh.
void initializeMeshSubsets()
{
// Create single component dof in every of the mesh's nodes.
_mesh_subset_all_nodes =
new MeshLib::MeshSubset(_mesh, &_mesh.getNodes());
// Collect the mesh subsets in a vector.
_all_mesh_subsets.push_back(
new MeshLib::MeshSubsets(_mesh_subset_all_nodes));
}
/// Sets the initial condition values in the solution vector x for a given
/// process variable and component.
void setInitialConditions(ProcessVariable const& variable,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment