1414#include < nse_solver.H>
1515
1616
17- AMREX_GPU_HOST_DEVICE AMREX_INLINE
17+ AMREX_GPU_DEVICE AMREX_INLINE
1818void check_nse_molar (const amrex::Array1D<amrex::Real, 1 , NumSpec>& Y,
1919 const amrex::Array1D<amrex::Real, 1 , NumSpec>& Y_nse,
2020 bool & nse_check) {
@@ -65,7 +65,7 @@ void check_nse_molar(const amrex::Array1D<amrex::Real, 1, NumSpec>& Y,
6565}
6666
6767
68- AMREX_GPU_HOST_DEVICE AMREX_INLINE
68+ AMREX_GPU_DEVICE AMREX_INLINE
6969int get_root_index (const int nuc_idx, amrex::Array1D<int , 1 , NumSpec>& group_idx) {
7070 // Returns the root index of the nuclei given the nuclei index [1, NumSpec]
7171 // Also updates all parent indices to point to the root index in group_idx
@@ -95,7 +95,7 @@ int get_root_index(const int nuc_idx, amrex::Array1D<int, 1, NumSpec>& group_idx
9595}
9696
9797
98- AMREX_GPU_HOST_DEVICE AMREX_INLINE
98+ AMREX_GPU_DEVICE AMREX_INLINE
9999void nse_union (const int nuc_idx_a, const int nuc_idx_b,
100100 amrex::Array1D<int , 1 , NumSpec>& group_idx,
101101 amrex::Array1D<int , 1 , NumSpec>& group_size) {
@@ -126,7 +126,7 @@ void nse_union(const int nuc_idx_a, const int nuc_idx_b,
126126}
127127
128128
129- AMREX_GPU_HOST_DEVICE AMREX_INLINE
129+ AMREX_GPU_DEVICE AMREX_INLINE
130130bool in_single_group (amrex::Array1D<int , 1 , NumSpec>& group_idx) {
131131
132132 // This function checks whether all isotopes are either in the LIG group
@@ -146,7 +146,7 @@ bool in_single_group(amrex::Array1D<int, 1, NumSpec>& group_idx) {
146146
147147
148148template <typename T>
149- AMREX_GPU_HOST_DEVICE AMREX_INLINE
149+ AMREX_GPU_DEVICE AMREX_INLINE
150150void fill_reaction_timescale (amrex::Array1D<T, 1 , NSE_INDEX ::NumNSERatePairs>& reaction_timescales,
151151 const int current_rate_pair, const amrex::Real rho,
152152 const amrex::Array1D<amrex::Real, 1 , NumSpec>& Y,
@@ -238,7 +238,7 @@ void fill_reaction_timescale(amrex::Array1D<T, 1, NSE_INDEX::NumNSERatePairs>& r
238238}
239239
240240
241- AMREX_GPU_HOST_DEVICE AMREX_INLINE
241+ AMREX_GPU_DEVICE AMREX_INLINE
242242void fill_merge_indices (int & merge_idx1, int & merge_idx2,
243243 const int current_rate_pair,
244244 amrex::Array1D<int , 1 , NumSpec>& group_idx) {
@@ -288,7 +288,7 @@ void fill_merge_indices(int& merge_idx1, int& merge_idx2,
288288}
289289
290290
291- AMREX_GPU_HOST_DEVICE AMREX_INLINE
291+ AMREX_GPU_DEVICE AMREX_INLINE
292292void nse_grouping (amrex::Array1D<int , 1 , NumSpec>& group_idx, const amrex::Real rho,
293293 const amrex::Array1D<amrex::Real, 1 , NumSpec>& Y,
294294 const amrex::Array1D<amrex::Real, 1 , Rates::NumRates>& screened_rates,
@@ -374,7 +374,7 @@ void nse_grouping(amrex::Array1D<int, 1, NumSpec>& group_idx, const amrex::Real
374374}
375375
376376
377- AMREX_GPU_HOST_DEVICE AMREX_INLINE
377+ AMREX_GPU_DEVICE AMREX_INLINE
378378bool in_nse (burn_t & current_state, bool skip_molar_check=false ) {
379379
380380 // This function returns the boolean that tells whether we're in nse or not
0 commit comments