From 8cdac97ff80d18b30e92b0d8756b94ce9c5cc03e Mon Sep 17 00:00:00 2001 From: Ben Wibking Date: Mon, 27 Apr 2026 17:06:22 -0400 Subject: [PATCH] fix primordial_chem actual_rhs signature to take const burn_t& The actual_rhs function in the primordial_chem network took a mutable burn_t& state parameter, but the function does not modify state. This is incompatible with numerical_jac which passes const burn_t&. Change the signature to const burn_t& for consistency with other networks. --- networks/primordial_chem/actual_rhs.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networks/primordial_chem/actual_rhs.H b/networks/primordial_chem/actual_rhs.H index aa740f7e38..62003b3370 100644 --- a/networks/primordial_chem/actual_rhs.H +++ b/networks/primordial_chem/actual_rhs.H @@ -1202,7 +1202,7 @@ Real rhs_eint(const burn_t& state, AMREX_GPU_HOST_DEVICE AMREX_INLINE -void actual_rhs (burn_t& state, Array1D& ydot) +void actual_rhs (const burn_t& state, Array1D& ydot) { Real z = redshift;