Skip to content

Commit

Permalink
Correcting argument list
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh Natarajan committed Nov 29, 2023
1 parent 07e01e9 commit f058575
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions Exec/SquallLine_2D/prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,23 @@ public:

AMREX_FORCE_INLINE
AMREX_GPU_HOST_DEVICE
amrex::Real compute_relative_humidity (const amrex::Real& z,
const amrex::Real& p_b,
const amrex::Real& T_b);
amrex::Real compute_relative_humidity (const amrex::Real z,
const amrex::Real p_b,
const amrex::Real T_b);

AMREX_FORCE_INLINE
AMREX_GPU_HOST_DEVICE
amrex::Real vapor_mixing_ratio (const amrex::Real& z,
const amrex::Real& p_b,
const amrex::Real& T_b,
const amrex::Real& RH);
amrex::Real vapor_mixing_ratio (const amrex::Real z,
const amrex::Real p_b,
const amrex::Real T_b,
const amrex::Real RH);

amrex::Real compute_p_k (amrex::Real& p_k,
const amrex::Real p_k_minus_1,
amrex::Real& theta_k,
amrex::Real& rho_k,
amrex::Real& q_v_k,
amrex::Real& T_dp,
amrex::Real& T_dp,
amrex::Real& T_b,
const amrex::Real dz,
const amrex::Real z,
Expand All @@ -113,7 +113,7 @@ public:
amrex::Real &theta_k,
amrex::Real& rho_k,
amrex::Real& q_v_k,
amrex::Real& T_dp,
amrex::Real& T_dp,
amrex::Real& T_b,
const amrex::Real& dz,
const amrex::Real& z,
Expand All @@ -131,9 +131,9 @@ public:
amrex::Real* r,
amrex::Real* p,
amrex::Real *q_v,
const amrex::Real& dz,
const amrex::Real& dz,
const amrex::Real& prob_lo_z,
const int& khi);
const int& khi);

protected:
std::string name () override { return "Supercell"; }
Expand Down
8 changes: 4 additions & 4 deletions Exec/SquallLine_2D/prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Real compute_saturation_pressure (const Real T_b)

AMREX_FORCE_INLINE
AMREX_GPU_HOST_DEVICE
Real Problem::compute_relative_humidity (const Real& z, const Real& p_b, const Real& T_b)
Real Problem::compute_relative_humidity (const Real z, const Real p_b, const Real T_b)
{
Real height = parms.height;
Real z_tr = parms.z_tr;
Expand All @@ -80,7 +80,7 @@ Real compute_vapor_pressure (const Real p_s, const Real RH)

AMREX_FORCE_INLINE
AMREX_GPU_HOST_DEVICE
Real Problem::vapor_mixing_ratio (const Real& z, const Real& p_b, const Real& T_b, const Real& RH)
Real Problem::vapor_mixing_ratio (const Real z, const Real p_b, const Real T_b, const Real RH)
{
Real height = parms.height;
Real p_s = compute_saturation_pressure(T_b);
Expand All @@ -97,14 +97,14 @@ Real Problem::vapor_mixing_ratio (const Real& z, const Real& p_b, const Real& T_

AMREX_FORCE_INLINE
AMREX_GPU_HOST_DEVICE
Real compute_temperature (const Real& p_b, const Real& theta_b)
Real compute_temperature (const Real p_b, const Real theta_b)
{
return theta_b*std::pow(p_b/p_0,R_d/Cp_d);
}

AMREX_FORCE_INLINE
AMREX_GPU_HOST_DEVICE
Real compute_dewpoint_temperature (const Real& T_b, const Real& RH)
Real compute_dewpoint_temperature (const Real T_b, const Real RH)
{

Real T_dp, gamma, T;
Expand Down

0 comments on commit f058575

Please sign in to comment.