Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
itopcuoglu committed Oct 9, 2024
1 parent 44266bc commit 3cb186e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
15 changes: 8 additions & 7 deletions amr-wind/equation_systems/AdvOp_Godunov.H
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ struct AdvectionOp<
}
// if state is NPH, then n and n+1 are known, and only
// spatial extrapolation is performed
amrex::Real dt_extrap = (fstate == FieldState::NPH) ? 0.0 : dt;
amrex::Real dt_extrap =
(fstate == FieldState::NPH) ? 0.0 : dt;

HydroUtils::ComputeFluxesOnBoxFromState(
bx, PDE::ndim, mfi,
Expand Down Expand Up @@ -236,12 +237,12 @@ struct AdvectionOp<
Field& w_mac;
amrex::Gpu::DeviceVector<int> iconserv;

godunov::scheme godunov_scheme = godunov::scheme::WENOZ;
std::string godunov_type{"weno_z"};
const bool fluxes_are_area_weighted{false};
bool godunov_use_forces_in_trans{false};
bool m_allow_inflow_on_outflow{false};
std::string advection_type{"Godunov"};
godunov::scheme godunov_scheme = godunov::scheme::WENOZ;
std::string godunov_type{"weno_z"};
const bool fluxes_are_area_weighted{false};
bool godunov_use_forces_in_trans{false};
bool m_allow_inflow_on_outflow{false};
std::string advection_type{"Godunov"};
};

} // namespace amr_wind::pde
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/setup/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void incflo::InitialIterations()
amrex::Print() << "In initial_iterations: iter = " << iter << "\n";
}

ApplyPredictor(true,0);
ApplyPredictor(true, 0);

{
auto& vel = icns().fields().field;
Expand Down
5 changes: 3 additions & 2 deletions amr-wind/utilities/console_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,9 @@ void print_nonlinear_residual(
}
}

amrex::Print() << "Norm of change over advection iterations in u " << rms_vel[0] << " v "
<< rms_vel[1] << " w " << rms_vel[2] << std::endl;
amrex::Print() << "Norm of change over advection iterations in u "
<< rms_vel[0] << " v " << rms_vel[1] << " w " << rms_vel[2]
<< std::endl;
}

} // namespace amr_wind::io

0 comments on commit 3cb186e

Please sign in to comment.