Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
simlapointe committed Nov 8, 2024
1 parent c86a4c6 commit 100d2f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions palace/models/timeoperator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ class TimeDependentFirstOrderOperator : public mfem::TimeDependentOperator
void ExplicitMult(const Vector &u, Vector &v) const override { Mult(u, v); }

// Setup A = M - gamma J = M + gamma C + gamma^2 K
int SUNImplicitSetup(const Vector &y, const Vector &fy, int jok, int *jcur, double gamma) override
int SUNImplicitSetup(const Vector &y, const Vector &fy, int jok, int *jcur,
double gamma) override
{
// Update Jacobian matrix
if (!kspA || gamma != saved_gamma)
Expand Down Expand Up @@ -236,8 +237,8 @@ TimeOperator::TimeOperator(const IoData &iodata, SpaceOperator &space_op,

// Create ODE solver for 1st-order IVP.
mfem::TimeDependentOperator::Type type = mfem::TimeDependentOperator::IMPLICIT;
op = std::make_unique<TimeDependentFirstOrderOperator>(iodata, space_op, dJ_coef,
0.0, type);
op = std::make_unique<TimeDependentFirstOrderOperator>(iodata, space_op, dJ_coef, 0.0,
type);
switch (iodata.solver.transient.type)
{
case config::TransientSolverData::Type::GEN_ALPHA:
Expand Down
11 changes: 6 additions & 5 deletions palace/utils/iodata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,14 @@ void IoData::CheckConfiguration()
{
if (solver.transient.rel_tol > 0 || solver.transient.abs_tol > 0)
{
Mpi::Warning("Generalized alpha and Runge-Kutta transient solvers do not use relative "
"and absolute tolerance parameters!\n");
Mpi::Warning(
"Generalized alpha and Runge-Kutta transient solvers do not use relative "
"and absolute tolerance parameters!\n");
}
if (solver.transient.order > 0)
{
Mpi::Warning("Generalized alpha and Runge-Kutta transient solvers do not use order parameter!\n");
Mpi::Warning("Generalized alpha and Runge-Kutta transient solvers do not use order "
"parameter!\n");
}
}
else if (solver.transient.type == config::TransientSolverData::Type::CVODE)
Expand Down Expand Up @@ -487,8 +489,7 @@ void IoData::CheckConfiguration()
}
else if (solver.transient.order > 5)
{
Mpi::Warning(
"ARKODE transient solver order cannot be greater than 5!\n");
Mpi::Warning("ARKODE transient solver order cannot be greater than 5!\n");
solver.transient.order = 5;
}
}
Expand Down

0 comments on commit 100d2f4

Please sign in to comment.