Skip to content
Snippets Groups Projects
Commit ce1240cf authored by Tom Fischer's avatar Tom Fischer Committed by Dmitri Naumov
Browse files

[PL] Forward the mesh vector to the class Balance.

First forward it to the HT process creation procedure that forwards it
to the class Balance.
parent 90015143
No related branches found
No related tags found
No related merge requests found
......@@ -428,7 +428,7 @@ void ProjectData::parseProcesses(BaseLib::ConfigTree const& processes_config,
process = ProcessLib::HT::createHTProcess(
*_mesh_vec[0], std::move(jacobian_assembler),
_process_variables, _parameters, integration_order,
process_config, project_directory, output_directory);
process_config, _mesh_vec, output_directory);
}
else
#endif
......
......@@ -23,6 +23,7 @@ namespace ProcessLib
struct Balance
{
Balance(std::string&& balance_mesh_name,
std::vector<std::unique_ptr<MeshLib::Mesh>> const& meshes,
std::string&& balance_property_vector_name,
std::string&& balance_output_mesh_file_name)
: mesh_name(std::move(balance_mesh_name)),
......
......@@ -35,7 +35,7 @@ std::unique_ptr<Process> createHTProcess(
std::vector<std::unique_ptr<ParameterBase>> const& parameters,
unsigned const integration_order,
BaseLib::ConfigTree const& config,
std::string const& project_directory,
std::vector<std::unique_ptr<MeshLib::Mesh>> const& meshes,
std::string const& output_directory)
{
//! \ogs_file_param{prj__processes__process__type}
......@@ -210,12 +210,10 @@ std::unique_ptr<Process> createHTProcess(
if (!mesh_name.empty()) // balance is optional
{
mesh_name = BaseLib::copyPathToFileName(mesh_name, project_directory);
balance_out_fname =
BaseLib::copyPathToFileName(balance_out_fname, output_directory);
balance.reset(new ProcessLib::Balance(std::move(mesh_name),
balance.reset(new ProcessLib::Balance(std::move(mesh_name), meshes,
std::move(balance_pv_name),
std::move(balance_out_fname)));
......
......@@ -23,7 +23,7 @@ std::unique_ptr<Process> createHTProcess(
std::vector<std::unique_ptr<ParameterBase>> const& parameters,
unsigned const integration_order,
BaseLib::ConfigTree const& config,
std::string const& project_directory,
std::vector<std::unique_ptr<MeshLib::Mesh>> const& meshes,
std::string const& output_directory);
} // namespace HT
......
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