From 56c51e53150b169eb699895f58474ea4572e1b14 Mon Sep 17 00:00:00 2001 From: JackHsu Date: Tue, 13 Aug 2019 18:36:12 +0800 Subject: [PATCH] fixed the undefined error in compilation. --- acc/mhd_solver/stencil_process.sps | 1 + 1 file changed, 1 insertion(+) diff --git a/acc/mhd_solver/stencil_process.sps b/acc/mhd_solver/stencil_process.sps index 7074a4b..440ffe3 100644 --- a/acc/mhd_solver/stencil_process.sps +++ b/acc/mhd_solver/stencil_process.sps @@ -118,6 +118,7 @@ accretion_profile(int3 globalVertexIdx, in Scalar lnrho){ // multiplying the truelove density by a wave function to avoid step-function like accretion profile. const Scalar weight = exp(-(accretion_distance/profile_range)); + const Scalar sink_mass = DCONST_REAL(AC_M_sink); // const Scalar rate = truelove_density(lnrho); const Scalar B = Scalar(3.0); const Scalar k = Scalar(2.0);