Ticket #43 (closed defect - etc: fixed)

Opened 5 months ago

Last modified 5 months ago

grid crash with grains

Reported by: gary Assigned to: peter
Priority: blocker Milestone: C08.01
Component: grains Version:
Keywords: Cc: p.vanhoof@oma.be

Description

grid runs with grains now about due to not finding opacity files, after many dozens of grid points. here is the output.

Optimal command: HDEN=4.750000 Optimal command: COSMic rays LOG BACKGROUND=3.750000 ************************************************** HDEN=4.750000 COSMic rays LOG BACKGROUND=4.000000

Cloudy 07.12.16 www.nublado.org

**************************************07Dec16**************************************

  • *
  • title background cosmic ray ionization by suprathermal electrons only *
  • set temperature floor linear 5 K *
  • c *
  • c commands controlling continuum ========= *
  • init "continuum.ini" *
  • table read "extinguish.trn" *
  • nuF(nu) = -5.627087997 at 0.00982 Ryd *
  • c *
  • c commands for density & abundances ========= *
  • abundances ism no grains *
  • grains ism single *

Could not open graphite_ism_01.opc for reading

Although there may be other reasons you have received this error, the most likely reason is that the path has not been properly set. Please have a look at the file path.h in the source directory. Check how the variable LOCAL_DATA_PATH is set - it should give the location of the data files I need. These are the files in the data download from the web site. I bet that the path has not been set properly - I could not find what I expected to find. The path is c:\projects\cloudy\trunk\data\ Sorry.

[Stop in mie_read_opc]

Attachments

LOCSpectrum.zip (26.5 kB) - added by gary on 12/21/07 05:24:18.
contains input script and helper files

Change History

12/21/07 05:24:18 changed by gary

  • attachment LOCSpectrum.zip added.

contains input script and helper files

12/21/07 17:07:27 changed by peter

  • owner changed from Peter to peter.
  • status changed from new to assigned.

The problem is caused by the fact that the file auger_spectrum.dat is read on every grid point, but none of them are ever closed. Hence on a large grid, the code runs out of file descriptors and eventually a read of a file will fail. The main fix for the problem is r1710. However, while investigating this problem we found several other files that weren't closed either. These are only read once per core load, so that problem is not so severe. They will be fixed in upcoming commits.

12/21/07 20:20:20 changed by peter

  • status changed from assigned to closed.
  • resolution set to fixed.

The remaining files that were known not to be closed have now been closed in r1711.