It seems that Pecube cannot read the age data file without a directory called tmp in the base folder when a model is run. The file(s) created in tmp containing the names of the age data files cannot be created if the directory does not exist (at least based on my tests on macOS). The code continues execution, but gives an error about not being able to find the file with the list of age data files (see below). Creating the directory beforehand resolves the issue, but perhaps another option would be preferable (using system /tmp, for example).
Error message when running without tmp directory:
---------------------------------------------------------------------------------
-------------------------------Pecube--------------------------------------------
---------------------------------------------------------------------------------
version:4.2.0
---------------------------------------------------------------------------------
-----------------------Echoing input parameters----------------------------------
---------------------------------------------------------------------------------
echo_input_file - Value read is: 1
...
---------------------------------------------------------------------------------
-----------------------------Reading data----------------------------------------
---------------------------------------------------------------------------------
sh: tmp/data_lst0000.txt: No such file or directory
Reading data from folder: EXMP6/data/KGHelium
Number of Age Samples: 0
...
It seems that Pecube cannot read the age data file without a directory called
tmp
in the base folder when a model is run. The file(s) created intmp
containing the names of the age data files cannot be created if the directory does not exist (at least based on my tests on macOS). The code continues execution, but gives an error about not being able to find the file with the list of age data files (see below). Creating the directory beforehand resolves the issue, but perhaps another option would be preferable (using system/tmp
, for example).Error message when running without
tmp
directory: