Skip to content
Snippets Groups Projects
Commit 8a8ff3e7 authored by wenqing's avatar wenqing
Browse files

[Couping] Modified the settings of IC for the staggered scheme

parent 58d5c91d
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ Process::Process(
_named_function_caller(std::move(named_function_caller)),
_global_assembler(std::move(jacobian_assembler)),
_is_monolithic_scheme(true),
_coupling_term(nullptr),
_coupling_solutions(nullptr),
_integration_order(integration_order),
_process_variables(std::move(process_variables)),
_boundary_conditions(parameters)
......@@ -79,14 +79,12 @@ void Process::setInitialConditions(double const t, GlobalVector& x)
SpatialPosition pos;
for (int variable_id = 0;
variable_id < static_cast<int>(_process_variables.size());
++variable_id)
int variable_id = 0;
for (auto const& pv : _process_variables)
{
ProcessVariable& pv = _process_variables[variable_id];
auto const& ic = pv.getInitialCondition();
auto const& ic = pv.get().getInitialCondition();
auto const num_comp = pv.getNumberOfComponents();
auto const num_comp = pv.get().getNumberOfComponents();
for (int component_id = 0; component_id < num_comp; ++component_id)
{
......@@ -123,6 +121,11 @@ void Process::setInitialConditions(double const t, GlobalVector& x)
}
}
}
if (!_is_monolithic_scheme)
continue;
variable_id++;
}
}
......
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