Skip to content

Commit

Permalink
Fix merge conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
tupek2 committed Aug 8, 2024
1 parent 22e46f9 commit cb1d924
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/serac/physics/solid_mechanics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,11 @@ class SolidMechanics<order, dim, Parameters<parameter_space...>, std::integer_se
SolidMechanics(const NonlinearSolverOptions nonlinear_opts, const LinearSolverOptions lin_opts,
const serac::TimesteppingOptions timestepping_opts, const GeometricNonlinearities geom_nonlin,
const std::string& physics_name, std::string mesh_tag, std::vector<std::string> parameter_names = {},
int cycle = 0, double time = 0.0, bool checkpoint_to_disk = false)
int cycle = 0, double time = 0.0, bool checkpoint_to_disk = false, bool use_warm_start = true)
: SolidMechanics(
std::make_unique<EquationSolver>(nonlinear_opts, lin_opts, StateManager::mesh(mesh_tag).GetComm()),
timestepping_opts, geom_nonlin, physics_name, mesh_tag, parameter_names, cycle, time, checkpoint_to_disk)
timestepping_opts, geom_nonlin, physics_name, mesh_tag, parameter_names, cycle, time, checkpoint_to_disk,
use_warm_start)
{
}

Expand Down Expand Up @@ -183,8 +184,8 @@ class SolidMechanics<order, dim, Parameters<parameter_space...>, std::integer_se
reactions_adjoint_load_(reactions_.space(), "reactions_shape_sensitivity"),
nonlin_solver_(std::move(solver)),
ode2_(displacement_.space().TrueVSize(),
{.time = time_, .c0 = c0_, .c1 = c1_, .u = u_, .du_dt = v_, .d2u_dt2 = acceleration_},
*nonlin_solver_, bcs_),
{.time = time_, .c0 = c0_, .c1 = c1_, .u = u_, .du_dt = v_, .d2u_dt2 = acceleration_}, *nonlin_solver_,
bcs_),
geom_nonlin_(geom_nonlin),
use_warm_start_(use_warm_start)
{
Expand Down

0 comments on commit cb1d924

Please sign in to comment.