From 3cb186ea7e5a6b8dec2703b8b426dc93041c670d Mon Sep 17 00:00:00 2001 From: Ilker Topcuoglu Date: Wed, 9 Oct 2024 14:13:15 -0600 Subject: [PATCH] Formatting --- amr-wind/equation_systems/AdvOp_Godunov.H | 15 ++++++++------- amr-wind/setup/init.cpp | 2 +- amr-wind/utilities/console_io.cpp | 5 +++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/amr-wind/equation_systems/AdvOp_Godunov.H b/amr-wind/equation_systems/AdvOp_Godunov.H index 6126c750e1..196f136ee3 100644 --- a/amr-wind/equation_systems/AdvOp_Godunov.H +++ b/amr-wind/equation_systems/AdvOp_Godunov.H @@ -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, @@ -236,12 +237,12 @@ struct AdvectionOp< Field& w_mac; amrex::Gpu::DeviceVector 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 diff --git a/amr-wind/setup/init.cpp b/amr-wind/setup/init.cpp index a5ed713735..5ad166e110 100644 --- a/amr-wind/setup/init.cpp +++ b/amr-wind/setup/init.cpp @@ -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; diff --git a/amr-wind/utilities/console_io.cpp b/amr-wind/utilities/console_io.cpp index 5e3f215057..5f73e115f9 100644 --- a/amr-wind/utilities/console_io.cpp +++ b/amr-wind/utilities/console_io.cpp @@ -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