Skip to content
Snippets Groups Projects
Commit eef1db9b authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[AppL] read conv criteria from prj file

parent c7399b02
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "MeshLib/Mesh.h" #include "MeshLib/Mesh.h"
#include "NumLib/ODESolver/TimeDiscretizationBuilder.h" #include "NumLib/ODESolver/TimeDiscretizationBuilder.h"
#include "NumLib/ODESolver/ConvergenceCriterion.h"
// FileIO // FileIO
#include "GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.h" #include "GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.h"
...@@ -169,6 +170,10 @@ void ProjectData::buildProcesses() ...@@ -169,6 +170,10 @@ void ProjectData::buildProcesses()
//! \ogs_file_param{process__time_discretization} //! \ogs_file_param{process__time_discretization}
pc.getConfigSubtree("time_discretization")); pc.getConfigSubtree("time_discretization"));
auto conv_crit = NumLib::createConvergenceCriterion(
//! \ogs_file_param{process__convergence_criterion}
pc.getConfigSubtree("convergence_criterion"));
if (type == "GROUNDWATER_FLOW") if (type == "GROUNDWATER_FLOW")
{ {
// The existence check of the in the configuration referenced // The existence check of the in the configuration referenced
...@@ -179,13 +184,13 @@ void ProjectData::buildProcesses() ...@@ -179,13 +184,13 @@ void ProjectData::buildProcesses()
_processes.emplace_back( _processes.emplace_back(
ProcessLib::GroundwaterFlow::createGroundwaterFlowProcess( ProcessLib::GroundwaterFlow::createGroundwaterFlowProcess(
*_mesh_vec[0], *nl_slv, std::move(time_disc), *_mesh_vec[0], *nl_slv, std::move(time_disc),
_process_variables, _parameters, pc)); std::move(conv_crit), _process_variables, _parameters, pc));
} }
else if (type == "TES") else if (type == "TES")
{ {
_processes.emplace_back(ProcessLib::TES::createTESProcess( _processes.emplace_back(ProcessLib::TES::createTESProcess(
*_mesh_vec[0], *nl_slv, std::move(time_disc), *_mesh_vec[0], *nl_slv, std::move(time_disc),
_process_variables, _parameters, pc)); std::move(conv_crit), _process_variables, _parameters, pc));
} }
else else
{ {
......
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