From f058575fb902f5c21e33a1855fb5330f0cb89465 Mon Sep 17 00:00:00 2001 From: Mahesh Natarajan Date: Wed, 29 Nov 2023 09:12:44 -0800 Subject: [PATCH] Correcting argument list --- Exec/SquallLine_2D/prob.H | 22 +++++++++++----------- Exec/SquallLine_2D/prob.cpp | 8 ++++---- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Exec/SquallLine_2D/prob.H b/Exec/SquallLine_2D/prob.H index 3040122e6..0d7a7809d 100644 --- a/Exec/SquallLine_2D/prob.H +++ b/Exec/SquallLine_2D/prob.H @@ -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, @@ -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, @@ -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"; } diff --git a/Exec/SquallLine_2D/prob.cpp b/Exec/SquallLine_2D/prob.cpp index 2acb16208..a8b3a8f54 100644 --- a/Exec/SquallLine_2D/prob.cpp +++ b/Exec/SquallLine_2D/prob.cpp @@ -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; @@ -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); @@ -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;