Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
9639809
Add the dYedt field
hfhsieh Feb 19, 2023
bd0993a
Add option LEAKAGE for the compiler macro NEUTRINO_SCHEME
hfhsieh Feb 19, 2023
e91fb2d
Support the leakage scheme
hfhsieh Feb 19, 2023
ca00bd0
[Bugfix] Declare IsInit_dEdt_Nu as an array
hfhsieh Feb 19, 2023
d1551f9
Update the CCSN test problem template
hfhsieh Feb 19, 2023
625464d
Minor update
hfhsieh Feb 19, 2023
1dcafed
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Feb 20, 2023
8e147d3
Add Flag_Region() for CCSN
hfhsieh Feb 20, 2023
91d3af1
Record the leakage info
hfhsieh Feb 20, 2023
583a021
Minor update
hfhsieh Feb 21, 2023
49102f8
Minor update
hfhsieh Feb 21, 2023
2ee2f68
Use interpolation to obtain accurate data at neutrino sphere
hfhsieh Feb 26, 2023
345a9d1
Minor updates
hfhsieh Mar 7, 2023
05ea76d
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Mar 7, 2023
cc213b6
Fixed incorrect index when constructing the leakage ray
hfhsieh Mar 21, 2023
5a3b2ce
Minor update
hfhsieh Mar 21, 2023
3654a93
Optimize the leakage scheme
hfhsieh Apr 4, 2023
82df6d6
[Bugfix] fix incorrect index and avoid zero division
hfhsieh Apr 4, 2023
c03c98b
Always record related parameters when NEUTRINO_SCHEME is set
hfhsieh Apr 23, 2023
d6cc497
Merge branch 'ccsn' into ccsn_leakage
hfhsieh May 1, 2023
c03ff20
Update Input__Parameter
hfhsieh May 5, 2023
3e966aa
Add runtime parameter CCSN_REF_RBase for CCSN test problem
hfhsieh May 10, 2023
4b6d1ed
Ensure the Eint and Ye updated in leakage scheme are valid
hfhsieh May 10, 2023
0b5ac2b
Use the stored dEdt_Nu to estimate timestep in restart runs
hfhsieh Jun 1, 2023
62b1dc9
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Jun 1, 2023
f79f6ba
[BugFix] Avoid obsolete syntax of VL arrays
hfhsieh Jun 17, 2023
872c132
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Jun 17, 2023
e804bcd
Disable deleptonization when initializing dEdt_Nu
hfhsieh Jun 17, 2023
1b349da
Initialize the dEdt_Nu field when core bounce occurs
hfhsieh Jun 17, 2023
26ca2bd
Update the Mis_GetTimeStep_Leakage()
hfhsieh Jun 17, 2023
53e02a6
Remove obsolete IsInit_dEdt_Nu
hfhsieh Jun 17, 2023
ae32c43
Update VLA-related code in Src_Leakage_ComputeLeak()
hfhsieh Jun 18, 2023
92e5f59
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Jun 22, 2023
ca3ca8d
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Sep 5, 2023
0afc626
Fixed issue that timestep could be overestimated
hfhsieh Sep 5, 2023
1162cf0
Fixed bugs in Src_Leakage_ComputeTau()
hfhsieh Sep 11, 2023
f175da0
Fixed typos
hfhsieh Sep 20, 2023
e83207b
Exclude non-leaf patches when estimating the source term time-step
hfhsieh Oct 24, 2023
05e3803
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Oct 31, 2023
012e454
Improve reproducibility for the leakage scheme
hfhsieh Nov 5, 2023
b730194
Improve stability of the leakage scheme
hfhsieh Nov 6, 2023
f74e37a
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Nov 15, 2023
1c5ff5d
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Dec 9, 2023
fa4f62f
Ensure data monotonicity when evaluating shock radius
hfhsieh Dec 11, 2023
9a673ea
[BugFix] Correct termination condition in the leakage scheme
hfhsieh Dec 12, 2023
b96d8a2
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Dec 17, 2023
a2b2933
Add a runtime parameter for time-step constrained by Ye
hfhsieh Dec 26, 2023
5bf27f5
Record shock radius using different weights
hfhsieh Jan 11, 2024
4d1fad5
[BugFix] Correct minimum temperature in the leakage scheme
hfhsieh Jan 17, 2024
d52cf50
Support recording the neutrino heating rate with correct signs
hfhsieh Dec 9, 2024
3b55ee8
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Dec 23, 2024
fd641e9
Update configure.py, Makefile_base, and ncts.config
hfhsieh Dec 24, 2024
b2f227c
Fixed incompatible code
hfhsieh Dec 25, 2024
0a0d2c9
Set TESTPROB_ID to 50 for CCSN simulations
hfhsieh Dec 25, 2024
bc59828
Revise the leakage scheme
hfhsieh Dec 25, 2024
a402acd
[BugFix] CCSN_MaxRefine_Rad must take priority over CCSN_AngRes_Max
hfhsieh Dec 26, 2024
edf3ba6
Update the functionality of CCSN_REF_RBase
hfhsieh Dec 26, 2024
b3883ca
Update the sanity check of leakage parameters
hfhsieh Dec 30, 2024
c0987ca
Update the data recording format
hfhsieh Dec 30, 2024
79564d7
Rename Flag_Lightbulb() to Flag_PostBounce()
hfhsieh Dec 30, 2024
64e1317
Merge Mis_GetTimeStep_Lightbulb and Mis_GetTimeStep_Leakage functions
hfhsieh Dec 31, 2024
6e56ee1
Refactory Aux_ComputeRay()
hfhsieh Jan 20, 2025
9073cdf
Disable squential ray mapping
hfhsieh Jan 20, 2025
83d46d8
Support energy mode for temperature profile of the leakage scheme
hfhsieh Jan 21, 2025
b131940
Minor
hfhsieh Jan 22, 2025
362a265
Correct the integration in the leakage scheme
hfhsieh Jan 26, 2025
abc949e
Fixed compilation error
hfhsieh Jan 26, 2025
9a41e42
[Bugfix] Correct termination condition
hfhsieh Feb 5, 2025
04462df
[Bugfix] Correct selection condition in Aux_ComputeRay()
hfhsieh Feb 14, 2025
241f711
Disable heating rate checks to prevent runtime errors
hfhsieh Feb 14, 2025
002137a
Minor
hfhsieh Feb 18, 2025
c1efcc6
[Bugfix] Adjust the bin number if there are no leakage bins in the lo…
hfhsieh Feb 24, 2025
0cc0619
Minor
hfhsieh Feb 25, 2025
5567185
Minor
hfhsieh Feb 26, 2025
fe6f763
Fixed incorrect condition in Flag_CCSN()
hfhsieh Mar 3, 2025
366ecb7
Handle overflow and underflow in Compute_FermiIntegral()
hfhsieh Mar 24, 2025
d720073
Disable heating rate checks in other modes of Hydro_IsUnphysical()
hfhsieh Mar 27, 2025
c64a5e2
Merge branch 'ccsn' into ccsn_leakage
hfhsieh May 30, 2025
666229b
Compatible with the main branch
hfhsieh May 30, 2025
0ed9b52
Minor
hfhsieh Jul 2, 2025
240ddb7
Minor
hfhsieh Jul 4, 2025
836f61d
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Jan 9, 2026
d2378fa
Merge branch 'ccsn' into ccsn_leakage
hfhsieh Jan 10, 2026
1ba5a76
Remove obsolete OPT__OUTPUT_LEAKAGE functionality
hfhsieh Jan 11, 2026
5531648
Initialize the neturino heating rato to 0.0
hfhsieh Jan 11, 2026
a2f1780
Store the actual heating rate in the lightbulb scheme
hfhsieh Jan 11, 2026
f21930a
Update the timestep constrain based on Ye
hfhsieh Jan 11, 2026
d5c9715
Add gpu_regcount_flu to generate_make.sh in CCSN
hfhsieh Jan 11, 2026
486d4f1
[BugFix] Fix obsolete parameters in PRINT_RESET_PARA() in CCSN
hfhsieh Jan 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions configs/ncts.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# NCTS (default: openmpi-intel)
CUDA_PATH /cluster/cuda-11.6
CUDA_PATH /cluster/cuda-12.4
FFTW2_PATH /cluster/intel-2022.1/fftw-2.1.5_openmpi4
MPI_PATH /cluster/intel-2022.1/openmpi-4.1.2
HDF5_PATH /cluster/intel-2022.1/hdf5-1.10.8
GSL_PATH /usr
GRACKLE_PATH
GSL_PATH
LIBYT_PATH

# compilers
CXX icpc
Expand All @@ -26,6 +28,7 @@ NVCCFLAG_COM -O3
NVCCFLAG_FLU -Xptxas -dlcm=ca -prec-div=false -ftz=true
NVCCFLAG_POT -Xptxas -dlcm=ca

#gpu
GPU_COMPUTE_CAPABILITY 860 # RTX A6000
#GPU_COMPUTE_CAPABILITY 750 # Quadro RTX 6000
# gpu
GPU_COMPUTE_CAPABILITY 750 # Quadro RTX 6000 (gpuserver01 and 02)
#GPU_COMPUTE_CAPABILITY 860 # RTX A6000 (gpuserver03 and 04)
#GPU_COMPUTE_CAPABILITY 890 # L40S (gpuserver05 and 06)
10 changes: 10 additions & 0 deletions example/test_problem/Hydro/CCSN/Input__Flag_Lohner.Leakage
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Level Threshold_Refine Threshold_Derefine Filter Soften MinDensity
0 0.80 0.80 0.01 0.00 0.00
1 0.80 0.80 0.01 0.00 0.00
2 0.80 0.80 0.01 0.00 0.00
3 0.80 0.80 0.01 0.00 0.00
4 0.80 0.80 0.01 0.00 0.00
5 0.80 0.80 0.01 0.00 0.00
6 0.80 0.80 0.01 0.00 0.00
7 0.80 0.80 0.01 0.00 0.00
8 0.80 0.80 0.01 0.00 0.00
10 changes: 10 additions & 0 deletions example/test_problem/Hydro/CCSN/Input__Flag_User.Leakage
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Level Density
0 3.0e-9
1 1.0e-8
2 3.0e-8
3 1.0e-7
4 3.0e-7
5 3.0e-7
6 3.0e-7
7 3.0e-7
8 3.0e-7
4 changes: 2 additions & 2 deletions example/test_problem/Hydro/CCSN/Input__Parameter.CoreCollapse
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ END_STEP -1 # end step (<0=auto -> must be set by


# test problems
TESTPROB_ID 24 # test problem ID [0]
# 24: HYDRO CCSN (+GRAVITY & GREP & EOS_NUCLEAR) [+MHD]
TESTPROB_ID 50 # test problem ID [0]
# 50: HYDRO CCSN (+GRAVITY & GREP & EOS_NUCLEAR) [+MHD]


# code units (in cgs)
Expand Down
351 changes: 351 additions & 0 deletions example/test_problem/Hydro/CCSN/Input__Parameter.Leakage

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions example/test_problem/Hydro/CCSN/Input__Parameter.Lightbulb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ END_STEP -1 # end step (<0=auto -> must be set by


# test problems
TESTPROB_ID 24 # test problem ID [0]
# 24: HYDRO CCSN (+GRAVITY & GREP & EOS_NUCLEAR) [+MHD]
TESTPROB_ID 50 # test problem ID [0]
# 50: HYDRO CCSN (+GRAVITY & GREP & EOS_NUCLEAR) [+MHD]


# code units (in cgs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ END_STEP -1 # end step (<0=auto -> must be set by


# test problems
TESTPROB_ID 24 # test problem ID [0]
# 24: HYDRO CCSN (+GRAVITY & GREP & EOS_GAMMA) [+MHD]
TESTPROB_ID 50 # test problem ID [0]
# 50: HYDRO CCSN (+GRAVITY & GREP & EOS_GAMMA) [+MHD]


# code units (in cgs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CCSN_CC_MaxRefine_Dens1 1.0e11 # central density threshold t
CCSN_CC_MaxRefine_Dens2 1.0e12 # central density threshold that reduces the maximum refinement level 2 [1.0e12]
CCSN_CC_CentralDensFac 1.0e13 # factor that reduces the dt constrained by the central density (in cgs) during the core collapse [1.0e13]
CCSN_CC_Red_DT 1.0e-5 # reduced time step (in s) when the central density exceeds CCSN_CC_CentralDensFac before bounce [1e-5]
CCSN_LB_TimeFac 0.10 # factor that scales the dt constrained by lightbulb scheme [0.1]
CCSN_NuHeat_TimeFac 0.10 # factor that scales the dt constrained by the lightbulb/leakage scheme [0.1]

CCSN_CC_Rot 2 # mode for rotational profile (0:off, 1:analytical, 2:table) [2]
# --> analytical formula: Omega(r)=Omega_0*[R_0^2/(r^2+R_0^2)], where r is the spherical radius
Expand Down
51 changes: 51 additions & 0 deletions example/test_problem/Hydro/CCSN/Input__TestProb.Leakage
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# problem-specific runtime parameters
CCSN_Prob 2 # target CCSN problem
# 0 : GREP migration test
# 1 : Post bounce test
# 2 : Core collapse test

CCSN_Prof_File IC/s20_W2007 # filename of input profile

CCSN_Mag 1 # target magnetic field profile [1]
# ( 0: Ap = B0* varpi^2 * (1 - rho / rho_max)^np * (P / P_max)
# 1: Ap = 0.5 * B0 * ( R0^3 / (r^3 + R0^3) ) * r * sin(theta) )
CCSN_Mag_B0 1.0e14 # magnetic field strength (in gauss) [1.e14]
CCSN_Mag_np 0.0 # dependence of magnetic field on density [0.0]
CCSN_Mag_R0 1.0e8 # characteristic radius of magnetic field (in cm) [1.0e8]

CCSN_GW_OUTPUT 1 # output GW signal (0=off, 1=on) [0]
CCSN_GW_DT 0.1 # output interval of GW signal [1.0]

CCSN_Eint_Mode 1 # Mode of obtaining internal energy in SetGridIC() [2]
# ( 1=Temp Mode: Eint(dens, temp, [Ye])
# 2=Pres Mode: Eint(dens, pres, [Ye]) )

CCSN_CC_MaxRefine_Flag1 1 # enable limiting maximum refinement level 1 [0]
CCSN_CC_MaxRefine_Flag2 1 # enable limiting maximum refinement level 2 [0]
CCSN_CC_MaxRefine_LV1 6 # reduced maximum refinement level 1 to this value [MAX_LEVEL-2]
CCSN_CC_MaxRefine_LV2 7 # reduced maximum refinement level 2 to this value [MAX_LEVEL-1]
CCSN_CC_MaxRefine_Dens1 1.0e11 # central density threshold that reduces the maximum refinement level 1 [1.0e11]
CCSN_CC_MaxRefine_Dens2 1.0e12 # central density threshold that reduces the maximum refinement level 2 [1.0e12]
CCSN_CC_CentralDensFac 1.0e13 # factor that reduces the dt constrained by the central density (in cgs) during the core collapse [1.0e13]
CCSN_CC_Red_DT 1.0e-5 # reduced time step (in s) when the central density exceeds CCSN_CC_CentralDensFac before bounce [1e-5]
CCSN_NuHeat_TimeFac 0.01 # factor that scales the dt constrained by the lightbulb/leakage scheme [0.1]

CCSN_CC_Rot 0 # mode for rotational profile (0:off, 1:analytical, 2:table) [2]
# --> analytical formula: Omega(r)=Omega_0*[R_0^2/(r^2+R_0^2)], where r is the spherical radius
CCSN_CC_Rot_R0 1.0e8 # characteristic radius R_0 (in cm) in the analytical rotational profile [2.0e8]
CCSN_CC_Rot_Omega0 0.0 # central angular frequency Omega_0 (in rad/s) in the analytical rotational profile [0.5]
CCSN_CC_Rot_Fac -1.0 # multiplication factor for the tabular rotational profile (<=0 -> off) [-1.0]

CCSN_REF_RBase -1.0; # reference distance for determining a maximum refinement level based on distance from the box center (in cm) [1.25e7]

CCSN_Is_PostBounce 0 # boolean that indicates whether core bounce has occurred [0]

CCSN_DT_YE 1 # dt criterion on Ye (1=Ye-Ye_min/Ye_max, 2=Ye, 3=none) [1]

CCSN_MaxRefine_Rad 3.0e6 # radius in cm within which to refine to the maximum allowed level [3.0e6]
CCSN_AngRes_Min -1.0 # minimum angular resolution in degrees (<=0=off) [-1.0]
CCSN_AngRes_Max -1.0 # maximum angular resolution in degrees (<=0=off) [-1.0]

CCSN_Shock_ThresFac_Pres 0.5 # pressure threshold factor for detecting postbounce shock [0.5]
CCSN_Shock_ThresFac_Vel 0.1 # velocity threshold facotr for detecting postbounce shock [0.1]
CCSN_Shock_Weight 2 # weighting method of the averaged shock radius (1:volume, 2:1/volume) [2]
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/CCSN/Input__TestProb.Lightbulb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CCSN_Eint_Mode 1 # Mode of obtaining internal
# ( 1=Temp Mode: Eint(dens, temp, [Ye])
# 2=Pres Mode: Eint(dens, pres, [Ye]) )

CCSN_LB_TimeFac 0.10 # factor that scales the dt constrained by lightbulb scheme [0.1]
CCSN_NuHeat_TimeFac 0.10 # factor that scales the dt constrained by the lightbulb/leakage scheme [0.1]

CCSN_Is_PostBounce 0 # boolean that indicates whether core bounce has occurred [0]

Expand Down
6 changes: 6 additions & 0 deletions example/test_problem/Hydro/CCSN/README
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@ Default setup:
4. For Lightbulb:
--> OPT__DT_USER = 1
--> OPT__RESET_FLUID = 1
--> NEUTRINO_SCHEME = LIGHTBULB

5. For Core collapse:
--> MAX_LEVEL = 9
--> OPT__RESET_FLUID = 1

6. For Leakage:
--> OPT__DT_USER = 1
--> OPT__RESET_FLUID = 1
--> NEUTRINO_SCHEME = LEAKAGE

Note:
========================================
1. A suite of test problems for core-collapse supernova simulations
Expand Down
3 changes: 2 additions & 1 deletion example/test_problem/Hydro/CCSN/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Du
Diag* Box* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance \
GRACKLE_INFO Record__DivB Record__CentralQuant Record__QuadMom_2nd GREP_Lv*
GRACKLE_INFO Record__DivB Record__Center \
Record__CentralQuant Record__QuadMom_2nd Leakage_Lum_* GREP_Lv*
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/CCSN/generate_make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

PYTHON=python3

${PYTHON} configure.py --mpi=true --hdf5=true --fftw=FFTW3 --gpu=true --debug=false \
${PYTHON} configure.py --mpi=true --hdf5=true --fftw=FFTW3 --gpu=true --gpu_regcount_flu=255 --debug=false \
--model=HYDRO --flu_scheme=MHM_RP --slope=PPM --mhd=false --gravity=true --unsplit_gravity=false \
--eos=NUCLEAR --nuc_table=TEMP --nuc_solver=ORIG --neutrino=LIGHTBULB --grep=true "$@"
16 changes: 15 additions & 1 deletion example/test_problem/Template/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ TESTPROB_ID 0 # test problem ID [0]
# 20: HYDRO MHD Cosmic Ray Soundwave
# 21: HYDRO MHD Cosmic Ray Shocktube
# 23: HYDRO MHD Cosmic Ray Diffusion
# 24: HYDRO CCSN (+GRAVITY & GREP & EOS_GAMMA/EOS_NUCLEAR) [+MHD]
# 50: HYDRO CCSN (+GRAVITY & GREP & EOS_GAMMA/EOS_NUCLEAR) [+MHD]
# 100: HYDRO CDM cosmological simulation (+GRAVITY & COMOVING & PARTICLE)
# 101: HYDRO Zeldovich pancake collapse (+GRAVITY & COMOVING & PARTICLE)
# 1000: ELBDM external potential (+GRAVITY)
Expand Down Expand Up @@ -208,6 +208,18 @@ SRC_DELEP_YEC 0.0601082693 # deleptonization parameter Ye_c [
SRC_LIGHTBULB 0 # lightbulb scheme for neutrino heating and cooling [0] ##HYDRO ONLY##
SRC_LIGHTBULB_LNUE 4.0e52 # electron neutrino luminosity in erg/s [1e52] ##HYDRO ONLY##
SRC_LIGHTBULB_TNUE 4.0 # electron neutrino temperature in MeV [4.0] ##HYDRO ONLY##
SRC_LEAKAGE 0 # multiflavour neutrino leakage scheme [0]
SRC_LEAKAGE_NRADIUS 768 # number of bin in the radial direction [768]
SRC_LEAKAGE_NTHETA 1 # number of ray in the polar direction [1]
SRC_LEAKAGE_NPHI 1 # number of ray in the azimuthal direction [1]
# (must be 1 or a multiple of 2)
SRC_LEAKAGE_BINSIZE_RADIUS 1.0e5 # bin size of linear bins in radius in cm [1.0e5]
SRC_LEAKAGE_RADIUSMAX 3.0e8 # maximum radius in cm [3.0e8]
SRC_LEAKAGE_RADIUSMIN_LOG 3.0e7 # minimum radius of logarithmic bins in cm [3.0e7]
SRC_LEAKAGE_NUHEAT 1 # include a parameterized neutrino heating scheme [1]
SRC_LEAKAGE_NUHEAT_FAC 1.0 # rescale the parameterized heating rate by SRC_LEAKAGE_NUHEAT_FAC [1.0]
SRC_LEAKAGE_OPT_TEMP 2 # temperature computation scheme [2]
# (1=individual cell, 2=binned data)
SRC_USER 0 # user-defined source terms -> edit "Src_User.cpp" [0]
SRC_GPU_NPGROUP -1 # number of patch groups sent into the CPU/GPU source-term solver (<=0=auto) [-1]

Expand Down Expand Up @@ -261,6 +273,8 @@ MOLECULAR_WEIGHT 0.6 # mean molecular weight [0.6]
MU_NORM -1.0 # normalization of MOLECULAR_WEIGHT (<0=m_H, 0=amu, >0=input manually) [-1.0]
ISO_TEMP 1.0e4 # isothermal temperature in kelvin ##EOS_ISOTHERMAL ONLY##
NUC_TABLE LS220_eps.h5 # nuclear EoS table ##EOS_NUCLEAR ONLY##
NUC_INT_SCHEME_MAIN 1 # interpolation scheme for nuclear EoS table (1=linear, 2=cubic) [1] ##EOS_NUCLEAR ONLY##
NUC_INT_SCHEME_AUX 1 # interpolation scheme for auxiliary table (1=linear, 2=cubic) [1] ##EOS_NUCLEAR ONLY##
MINMOD_COEFF 1.5 # coefficient of the generalized MinMod limiter (1.0~2.0) [1.5]
MINMOD_MAX_ITER 0 # maximum number of iterations to reduce MINMOD_COEFF when data reconstruction fails (0=off) [0]
OPT__LR_LIMITER -1 # slope limiter of data reconstruction in the MHM/MHM_RP/CTU schemes:
Expand Down
2 changes: 2 additions & 0 deletions include/CUDA_ConstMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ SET_GLOBAL( __constant__ double c_Src_Dlep_AuxArray_Flt [SRC_NAUX_DLEP ]
SET_GLOBAL( __constant__ int c_Src_Dlep_AuxArray_Int [SRC_NAUX_DLEP ] );
SET_GLOBAL( __constant__ double c_Src_Lightbulb_AuxArray_Flt[SRC_NAUX_LIGHTBULB] );
SET_GLOBAL( __constant__ int c_Src_Lightbulb_AuxArray_Int[SRC_NAUX_LIGHTBULB] );
SET_GLOBAL( __constant__ double c_Src_Leakage_AuxArray_Flt [SRC_NAUX_LEAKAGE ] );
SET_GLOBAL( __constant__ int c_Src_Leakage_AuxArray_Int [SRC_NAUX_LEAKAGE ] );
#endif
SET_GLOBAL( __constant__ double c_Src_User_AuxArray_Flt [SRC_NAUX_USER ] );
SET_GLOBAL( __constant__ int c_Src_User_AuxArray_Int [SRC_NAUX_USER ] );
Expand Down
3 changes: 3 additions & 0 deletions include/Field.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ SET_GLOBAL( FieldIdx_t Idx_MomZ, Idx_Undefined );
SET_GLOBAL( FieldIdx_t Idx_Engy, Idx_Undefined );
#if ( EOS == EOS_NUCLEAR )
SET_GLOBAL( FieldIdx_t Idx_Ye, Idx_Undefined );
#if ( NEUTRINO_SCHEME == LEAKAGE )
SET_GLOBAL( FieldIdx_t Idx_dYedt_Nu, Idx_Undefined );
#endif
SET_GLOBAL( FieldIdx_t Idx_dEdt_Nu, Idx_Undefined );
#if ( NUC_TABLE_MODE == NUC_TABLE_MODE_TEMP )
SET_GLOBAL( FieldIdx_t Idx_Temp_IG, Idx_Undefined );
Expand Down
11 changes: 11 additions & 0 deletions include/Global.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ extern double Src_Dlep_AuxArray_Flt [SRC_NAUX_DLEP ];
extern int Src_Dlep_AuxArray_Int [SRC_NAUX_DLEP ];
extern double Src_Lightbulb_AuxArray_Flt[SRC_NAUX_LIGHTBULB];
extern int Src_Lightbulb_AuxArray_Int[SRC_NAUX_LIGHTBULB];
extern double Src_Leakage_AuxArray_Flt [SRC_NAUX_LEAKAGE ];
extern int Src_Leakage_AuxArray_Int [SRC_NAUX_LEAKAGE ];
#endif
extern double Src_User_AuxArray_Flt [SRC_NAUX_USER ];
extern int Src_User_AuxArray_Int [SRC_NAUX_USER ];
Expand Down Expand Up @@ -491,6 +493,15 @@ extern real (*h_Mag_Array_S_In [2])[NCOMP_MAG ][ SRC_NXT_P1*SQR(SRC_NXT) ]
#endif
extern double (*h_Corner_Array_S[2])[3];

#if ( MODEL == HYDRO )
extern real *h_SrcLeakage_Radius;
extern real *h_SrcLeakage_tau;
extern real *h_SrcLeakage_chi;
extern real *h_SrcLeakage_HeatFlux;
extern real *h_SrcLeakage_HeatERms;
extern real *h_SrcLeakage_HeatEAve;
#endif



// 4/5. GPU (device) global memory arrays and timers
Expand Down
Loading