Skip to content

Commit

Permalink
fix compilation error when using NSE with null screening (#1579)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 authored Jun 5, 2024
1 parent 70f231a commit 16dfa43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nse_solver/nse_solver.H
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ T get_nonexponent_nse_state(const T& state) {
return nse_state;
}

#if SCREEN_METHOD == SCREEN_METHOD_chabrier1998
template <typename T>
AMREX_GPU_HOST_DEVICE AMREX_INLINE
void compute_coulomb_contribution(amrex::Array1D<amrex::Real, 1, NumSpec>& u_c,
Expand Down Expand Up @@ -134,7 +135,7 @@ void compute_coulomb_contribution(amrex::Array1D<amrex::Real, 1, NumSpec>& u_c,
u_c(n+1) = f;
}
}

#endif

template <typename T>
AMREX_GPU_HOST_DEVICE AMREX_INLINE
Expand Down

0 comments on commit 16dfa43

Please sign in to comment.