FAQ and troubleshootingΒΆ
Below are some commonly asked questions and explanations.
I get an error hdf5 error message about a locked file
In either SPARTA or MORIA, you may get an error message that looks something like this:
#006: H5FDsec2.c line 959 in H5FD_sec2_lock(): unable to lock file, errno = 35, error message = 'Resource temporarily unavailable'
major: File accessibility
minor: Bad file ID accessed
************************************* ERROR *************************************
[ 0] FILE ../tools/moria/moria_io.c, FUNCTION outputHDF5Catalog, LINE 276:
HDF5 return value -1 indicates error when creating catalog file.
***************************************************************************************************
This error is thrown by hdf5 if the output file (or, more generally, any hdf5 file the code is trying to write to) is open in another application. For example, if you were inspecting the output of your code using the HDF5View application and run the code again, it will likely throw this error. Simply close the file in the viewer and try again.
MORIA: Error when setting a zero-baryon cosmology
When setting a cosmology with \(\Omega_{\rm b} = 0\), as in cosmo_omega_b 0.0
in the
config file, I get the following error:
************************************* ERROR *************************************
[ 0] FILE ../src/cosmology.c, FUNCTION transferFunctionEH98, LINE 630:
Found Omega_b = 0.000e+00, must be greater than zero when using EH98 transfer function.
***************************************************************************************************
The Eisenstein & Hu 1998 approximation to the transfer function is used to calculate peak heights in
MORIA. If you want a zero-baryon cosmology, you can set cosmo_omega_b 1E-7
. In Einstein-de Sitter
cosmologies with a power-law power spectrum, zero baryons are allowed.
MORIA: hdf5 error where object already exists
When running MORIA, I get an error like this:
#009: H5L.c line 1840 in H5L__link_cb(): name already exists
major: Links
minor: Object already exists
************************************* ERROR *************************************
[ 0] FILE ../src/io/io_hdf5.c, FUNCTION hdf5DatasetFixed, LINE 426:
HDF5 return value -1 indicates error when creating 1D fixed dataset id.
***************************************************************************************************
This message from the hdf5 library is saying that the code was trying to write the dataset id
twice, and that the second time naturally failed. This happens when a field is added to
output_cat_fields
that is being output automatically. These fields include id
, pid
, x
,
and v
; please do not add these fields to the output manually.
MORIA: cannot find a halo definition
If you get error messages like this:
************************************* ERROR *************************************
[ 0] FILE ../tools/moria/moria_config.c, FUNCTION processMoriaConfig, LINE 707:
Could not find halo definition Msp-apr-p50_spa in SPARTA Rsp analysis.
***************************************************************************************************
they are often simple errors or omissions in either the SPARTA or MORIA config file. Open the SPARTA file in the HDF5View application (or another tool) and check that the desired field really exists!