From c5289249ea4a8e7ff8fb1d03783886a44c630232 Mon Sep 17 00:00:00 2001 From: "Aaron M. Lattanzi" <103702284+AMLattanzi@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:18:53 -0700 Subject: [PATCH] Format function definitions and declarations. (#1269) --- Source/Prob/init_constant_density_hse.H | 8 ++++---- Source/Prob/init_density_hse_dry.H | 9 ++++----- Source/Prob/init_density_hse_dry_noterrain.H | 9 ++++----- Source/Prob/init_density_hse_dry_terrain.H | 9 ++++----- Source/Prob/init_rayleigh_damping.H | 12 ++++++------ Source/main.cpp | 2 +- Source/prob_common.H | 9 ++++----- 7 files changed, 27 insertions(+), 31 deletions(-) diff --git a/Source/Prob/init_constant_density_hse.H b/Source/Prob/init_constant_density_hse.H index a8342c514..2b1699709 100644 --- a/Source/Prob/init_constant_density_hse.H +++ b/Source/Prob/init_constant_density_hse.H @@ -1,8 +1,8 @@ void -erf_init_dens_hse(amrex::MultiFab& rho_hse, - std::unique_ptr&, - std::unique_ptr&, - amrex::Geometry const&) override +erf_init_dens_hse (amrex::MultiFab& rho_hse, + std::unique_ptr&, + std::unique_ptr&, + amrex::Geometry const&) override { amrex::Real rho_0 = parms.rho_0; for ( amrex::MFIter mfi(rho_hse, amrex::TilingIfNotGPU()); mfi.isValid(); ++mfi ) diff --git a/Source/Prob/init_density_hse_dry.H b/Source/Prob/init_density_hse_dry.H index 32e67cc15..d4f2e0625 100644 --- a/Source/Prob/init_density_hse_dry.H +++ b/Source/Prob/init_density_hse_dry.H @@ -8,11 +8,10 @@ * this point. */ void -erf_init_dens_hse( - amrex::MultiFab& rho_hse, - std::unique_ptr& z_phys_nd, - std::unique_ptr& z_phys_cc, - amrex::Geometry const& geom) override +erf_init_dens_hse (amrex::MultiFab& rho_hse, + std::unique_ptr& z_phys_nd, + std::unique_ptr& z_phys_cc, + amrex::Geometry const& geom) override { const amrex::Real prob_lo_z = geom.ProbLo()[2]; const amrex::Real dz = geom.CellSize()[2]; diff --git a/Source/Prob/init_density_hse_dry_noterrain.H b/Source/Prob/init_density_hse_dry_noterrain.H index 49b062da0..a59a37220 100644 --- a/Source/Prob/init_density_hse_dry_noterrain.H +++ b/Source/Prob/init_density_hse_dry_noterrain.H @@ -7,11 +7,10 @@ * used at this point. */ void -erf_init_dens_hse( - amrex::MultiFab& rho_hse, - std::unique_ptr& z_phys_nd, - std::unique_ptr& z_phys_cc, - amrex::Geometry const& geom) override +erf_init_dens_hse (amrex::MultiFab& rho_hse, + std::unique_ptr& z_phys_nd, + std::unique_ptr& z_phys_cc, + amrex::Geometry const& geom) override { const amrex::Real prob_lo_z = geom.ProbLo()[2]; const amrex::Real dz = geom.CellSize()[2]; diff --git a/Source/Prob/init_density_hse_dry_terrain.H b/Source/Prob/init_density_hse_dry_terrain.H index 6773de40d..d78598aa8 100644 --- a/Source/Prob/init_density_hse_dry_terrain.H +++ b/Source/Prob/init_density_hse_dry_terrain.H @@ -7,11 +7,10 @@ * used at this point. */ void -erf_init_dens_hse( - amrex::MultiFab& rho_hse, - std::unique_ptr& z_phys_nd, - std::unique_ptr& z_phys_cc, - amrex::Geometry const& geom) override +erf_init_dens_hse (amrex::MultiFab& rho_hse, + std::unique_ptr& z_phys_nd, + std::unique_ptr& z_phys_cc, + amrex::Geometry const& geom) override { const int khi = geom.Domain().bigEnd()[2]; diff --git a/Source/Prob/init_rayleigh_damping.H b/Source/Prob/init_rayleigh_damping.H index f7151357e..f0c550d51 100644 --- a/Source/Prob/init_rayleigh_damping.H +++ b/Source/Prob/init_rayleigh_damping.H @@ -3,12 +3,12 @@ * on Durran and Klemp 1983 */ void -erf_init_rayleigh(amrex::Vector& tau, - amrex::Vector& ubar, - amrex::Vector& vbar, - amrex::Vector& wbar, - amrex::Vector& thetabar, - amrex::Geometry const& geom) override +erf_init_rayleigh (amrex::Vector& tau, + amrex::Vector& ubar, + amrex::Vector& vbar, + amrex::Vector& wbar, + amrex::Vector& thetabar, + amrex::Geometry const& geom) override { const auto ztop = geom.ProbHi()[2]; amrex::Print() << "Rayleigh damping (coef="<= 2) { diff --git a/Source/prob_common.H b/Source/prob_common.H index 33d7678ba..9f6c874eb 100644 --- a/Source/prob_common.H +++ b/Source/prob_common.H @@ -175,13 +175,13 @@ protected: * Function to update default base parameters, currently only used for * init_type=='uniform' */ - void init_base_parms(amrex::Real rho_0, amrex::Real T_0) { + void init_base_parms (amrex::Real rho_0, amrex::Real T_0) { base_parms.rho_0 = rho_0; base_parms.T_0 = T_0; } // descriptor for problem definition - virtual std::string name() = 0; + virtual std::string name () = 0; }; @@ -189,8 +189,7 @@ protected: * Function to init the physical bounds of the domain * and instantiate a Problem derived from ProblemBase */ -std::unique_ptr amrex_probinit ( - const amrex_real* problo, - const amrex_real* probhi); +std::unique_ptr amrex_probinit (const amrex_real* problo, + const amrex_real* probhi); #endif