Skip to content

Commit

Permalink
Updating prob.H with host device macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh Natarajan committed Nov 29, 2023
1 parent 43fd358 commit 07e01e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Exec/SquallLine_2D/prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ 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& 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,
Expand Down
2 changes: 1 addition & 1 deletion Exec/SquallLine_2D/prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ 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 height = 1200.0;
Real height = parms.height;
Real p_s = compute_saturation_pressure(T_b);
Real p_v = compute_vapor_pressure(p_s, RH);

Expand Down

0 comments on commit 07e01e9

Please sign in to comment.