Skip to content

Photon out of range error #52

@hvbish

Description

@hvbish

I have encountered an error which only seems to happen when repeating boundary conditions are turned on. Most often this will occur many hours into a long run with >1e8 photons, but has occasionally happened as soon as 50 minutes into a run. There is nothing in the .err file, but the run fails and the .out file looks something like this:

Result of optional subdivide overdense cells
total number of cells = 86908736
number of orig cells = 86908736
number of orig subdiv cells = 8001
number of new subdiv cells = 0
working on wavelength [micron] = 1565
tau = 1 albedo = 0.6 g = 0.7 
frac_miss-- = 2.77556e-17
frac_miss++ = 1.11022e-16
frac_miss++ = 1.11022e-16
frac_miss++ = 1.11022e-16
frac_miss-- = 1.11022e-16
frac_miss++ = 5.55112e-17
frac_miss++ = 4.33681e-19
frac_miss-- = 1.11022e-16
frac_miss++ = 1.11022e-16
frac_miss++ = 5.55112e-17
frac_miss-- = 1.11022e-16
frac_miss-- = 5.55112e-17
frac_miss-- = 3.46945e-18
frac_miss++ = 1.11022e-16
frac_miss++ = 4.33681e-19
frac_miss-- = 1.73472e-18
frac_miss++ = 1.11022e-16
out_of_range Matrix::operator(), element 1
photon # = 1983267
num scat = 1
classify_scattered_photon - out of range.

I have found that using a different random number seed often solves the issue - but sometimes I need to try several different seeds before finding one that doesn't result in the error.

Attaching example param file here:
edenhofer_repeatbounds_star1_params_1.txt

Example input grids can be retrieved here:
https://www.dropbox.com/scl/fi/h2d9m74ffzaa2rlh9g34z/DIRTY_Edenhofer_output_grid_pos_edenhofer_March2025.fits
https://www.dropbox.com/scl/fi/yi0jo9s38di0uc1a4td8w/DIRTY_Edenhofer_output_grid_tau_ref_per_pc_edenhofer_March2025.fits

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions