Skip to content

Commit

Permalink
Format function definitions and declarations. (#1269)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi authored Oct 17, 2023
1 parent c1466aa commit c528924
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 31 deletions.
8 changes: 4 additions & 4 deletions Source/Prob/init_constant_density_hse.H
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
void
erf_init_dens_hse(amrex::MultiFab& rho_hse,
std::unique_ptr<amrex::MultiFab>&,
std::unique_ptr<amrex::MultiFab>&,
amrex::Geometry const&) override
erf_init_dens_hse (amrex::MultiFab& rho_hse,
std::unique_ptr<amrex::MultiFab>&,
std::unique_ptr<amrex::MultiFab>&,
amrex::Geometry const&) override
{
amrex::Real rho_0 = parms.rho_0;
for ( amrex::MFIter mfi(rho_hse, amrex::TilingIfNotGPU()); mfi.isValid(); ++mfi )
Expand Down
9 changes: 4 additions & 5 deletions Source/Prob/init_density_hse_dry.H
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
* this point.
*/
void
erf_init_dens_hse(
amrex::MultiFab& rho_hse,
std::unique_ptr<amrex::MultiFab>& z_phys_nd,
std::unique_ptr<amrex::MultiFab>& z_phys_cc,
amrex::Geometry const& geom) override
erf_init_dens_hse (amrex::MultiFab& rho_hse,
std::unique_ptr<amrex::MultiFab>& z_phys_nd,
std::unique_ptr<amrex::MultiFab>& z_phys_cc,
amrex::Geometry const& geom) override
{
const amrex::Real prob_lo_z = geom.ProbLo()[2];
const amrex::Real dz = geom.CellSize()[2];
Expand Down
9 changes: 4 additions & 5 deletions Source/Prob/init_density_hse_dry_noterrain.H
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
* used at this point.
*/
void
erf_init_dens_hse(
amrex::MultiFab& rho_hse,
std::unique_ptr<amrex::MultiFab>& z_phys_nd,
std::unique_ptr<amrex::MultiFab>& z_phys_cc,
amrex::Geometry const& geom) override
erf_init_dens_hse (amrex::MultiFab& rho_hse,
std::unique_ptr<amrex::MultiFab>& z_phys_nd,
std::unique_ptr<amrex::MultiFab>& z_phys_cc,
amrex::Geometry const& geom) override
{
const amrex::Real prob_lo_z = geom.ProbLo()[2];
const amrex::Real dz = geom.CellSize()[2];
Expand Down
9 changes: 4 additions & 5 deletions Source/Prob/init_density_hse_dry_terrain.H
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
* used at this point.
*/
void
erf_init_dens_hse(
amrex::MultiFab& rho_hse,
std::unique_ptr<amrex::MultiFab>& z_phys_nd,
std::unique_ptr<amrex::MultiFab>& z_phys_cc,
amrex::Geometry const& geom) override
erf_init_dens_hse (amrex::MultiFab& rho_hse,
std::unique_ptr<amrex::MultiFab>& z_phys_nd,
std::unique_ptr<amrex::MultiFab>& z_phys_cc,
amrex::Geometry const& geom) override
{
const int khi = geom.Domain().bigEnd()[2];

Expand Down
12 changes: 6 additions & 6 deletions Source/Prob/init_rayleigh_damping.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* on Durran and Klemp 1983
*/
void
erf_init_rayleigh(amrex::Vector<amrex::Real>& tau,
amrex::Vector<amrex::Real>& ubar,
amrex::Vector<amrex::Real>& vbar,
amrex::Vector<amrex::Real>& wbar,
amrex::Vector<amrex::Real>& thetabar,
amrex::Geometry const& geom) override
erf_init_rayleigh (amrex::Vector<amrex::Real>& tau,
amrex::Vector<amrex::Real>& ubar,
amrex::Vector<amrex::Real>& vbar,
amrex::Vector<amrex::Real>& wbar,
amrex::Vector<amrex::Real>& thetabar,
amrex::Geometry const& geom) override
{
const auto ztop = geom.ProbHi()[2];
amrex::Print() << "Rayleigh damping (coef="<<parms.dampcoef<<") between "
Expand Down
2 changes: 1 addition & 1 deletion Source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void add_par () {
* Main driver -- creates the ERF object, calls ERF.InitData() and ERF.Evolve()
* Also includes the multiblock interface in the case where there is more than one ERF object
*/
int main(int argc, char* argv[])
int main (int argc, char* argv[])
{
// Check to see if the command line contains --describe
if (argc >= 2) {
Expand Down
9 changes: 4 additions & 5 deletions Source/prob_common.H
Original file line number Diff line number Diff line change
Expand Up @@ -175,22 +175,21 @@ 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;
};


/**
* Function to init the physical bounds of the domain
* and instantiate a Problem derived from ProblemBase
*/
std::unique_ptr<ProblemBase> amrex_probinit (
const amrex_real* problo,
const amrex_real* probhi);
std::unique_ptr<ProblemBase> amrex_probinit (const amrex_real* problo,
const amrex_real* probhi);

#endif

0 comments on commit c528924

Please sign in to comment.