Skip to content

Commit

Permalink
Correcting CUDA compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh Natarajan committed Nov 29, 2023
1 parent db8b0ba commit b5adfd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
16 changes: 0 additions & 16 deletions Exec/SquallLine_2D/prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,6 @@ public:

amrex::Real compute_theta (amrex::Real z);

AMREX_FORCE_INLINE
AMREX_GPU_HOST_DEVICE
amrex::Real compute_relative_humidity (const amrex::Real z,
const amrex::Real height,
const amrex::Real z_tr,
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 height,
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,
Expand Down
4 changes: 2 additions & 2 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 height, const Real z_tr, const Real p_b, const Real T_b)
Real compute_relative_humidity (const Real z, const Real height, const Real z_tr, const Real p_b, const Real T_b)
{
Real p_s = compute_saturation_pressure(T_b);

Expand All @@ -77,7 +77,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 height, const Real p_b, const Real T_b, const Real RH)
Real vapor_mixing_ratio (const Real z, const Real height, const Real p_b, const Real T_b, const Real RH)
{
Real p_s = compute_saturation_pressure(T_b);
Real p_v = compute_vapor_pressure(p_s, RH);
Expand Down

0 comments on commit b5adfd9

Please sign in to comment.