Comments with # in config.info file
I realised that one cannot use comments with #
in the config.info file in the line where a tracker is defined. For example:
orbital_elements_txt_logger { # <a comment>
ofile_fmt ./orbit%1%.dat
}
If I then run <...>/fargoInit . config.info --gas-from <disc>
, the code either stalls or gives the error
[bachelor-login:132883] *** Process received signal ***
[bachelor-login:132883] Signal: Aborted (6)
[bachelor-login:132883] Signal code: (-6)
[bachelor-login:132883] [ 0] /lib64/libpthread.so.0(+0xf630)[0x7f1a5d258630]
[bachelor-login:132883] [ 1] /lib64/libc.so.6(gsignal+0x37)[0x7f1a5ceb1387]
[bachelor-login:132883] [ 2] /lib64/libc.so.6(abort+0x148)[0x7f1a5ceb2a78]
[bachelor-login:132883] [ 3] /lib64/libc.so.6(+0x78ed7)[0x7f1a5cef3ed7]
[bachelor-login:132883] [ 4] /lib64/libc.so.6(__libc_fatal+0x1e)[0x7f1a5cef3fbe]
[bachelor-login:132883] [ 5] /lib64/libc.so.6(+0x79333)[0x7f1a5cef4333]
[bachelor-login:132883] [ 6] /lib64/libc.so.6(__overflow+0x54)[0x7f1a5cef7964]
[bachelor-login:132883] [ 7] /lib64/libc.so.6(_IO_putc+0xb9)[0x7f1a5cef2b49]
[bachelor-login:132883] [ 8] /usr/local2/misc/hdf5/hdf5-1.12.0/build/lib/libhdf5.so.200(HDfprintf+0x10d)[0x7f1a5eb59a45]
[bachelor-login:132883] [ 9] /usr/local2/misc/hdf5/hdf5-1.12.0/build/lib/libhdf5.so.200(+0x14e553)[0x7f1a5ec54553]
[bachelor-login:132883] [10] /usr/local2/misc/hdf5/hdf5-1.12.0/build/lib/libhdf5.so.200(H5E__walk+0x3cc)[0x7f1a5ec555b6]
[bachelor-login:132883] [11] /usr/local2/misc/hdf5/hdf5-1.12.0/build/lib/libhdf5.so.200(H5E__print+0x1a5)[0x7f1a5ec557fc]
[bachelor-login:132883] [12] /usr/local2/misc/hdf5/hdf5-1.12.0/build/lib/libhdf5.so.200(H5Eprint2+0x23b)[0x7f1a5ec4ddff]
[bachelor-login:132883] [13] /usr/local2/misc/hdf5/hdf5-1.12.0/build/lib/libhdf5.so.200(H5E_dump_api_stack+0x97)[0x7f1a5ec55ead]
[bachelor-login:132883] [14] /usr/local2/misc/hdf5/hdf5-1.12.0/build/lib/libhdf5.so.200(H5Tset_size+0x588)[0x7f1a5ee98352]
[bachelor-login:132883] [15] /usr/local2/misc/hdf5/hdf5-1.12.0/build/lib/libhdf5_cpp.so.200(_ZNK2H58AtomType7setSizeEm+0x2a)[0x7f1a5f2d583e]
[bachelor-login:132883] [16] /usr/local2/misc/hdf5/hdf5-1.12.0/build/lib/libhdf5_cpp.so.200(_ZN2H57StrTypeC2ERKNS_8PredTypeERKm+0x5c)[0x7f1a5f2dcf9e]
[bachelor-login:132883] [17] /mnt/beegfs/bachelor/groups/bitsch/users/pichierri/fargOCA/dbg/src/libfargort.so(_ZN7fargOCA2h514writeAttributeERN2H58H5ObjectERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_+0x59)[0x7f1a60c64689]
[bachelor-login:132883] [18] /mnt/beegfs/bachelor/groups/bitsch/users/pichierri/fargOCA/dbg/src/libfargort.so(_ZNK7fargOCA14TrackingConfig7writeH5EN2H55GroupE+0x70)[0x7f1a60cd4aa0]
[bachelor-login:132883] [19] /mnt/beegfs/bachelor/groups/bitsch/users/pichierri/fargOCA/dbg/src/libfargort.so(_ZNK7fargOCA10Simulation7writeH5EN5boost8optionalIN2H55GroupEEE+0x338)[0x7f1a60cc4d78]
[bachelor-login:132883] [20] ../../../fargOCA/dbg/fargoInit[0x414de4]
[bachelor-login:132883] [21] ../../../fargOCA/dbg/fargoInit[0x41730d]
[bachelor-login:132883] [22] ../../../fargOCA/dbg/fargoInit[0x414143]
[bachelor-login:132883] [23] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f1a5ce9d555]
[bachelor-login:132883] [24] ../../../fargOCA/dbg/fargoInit[0x414407]
[bachelor-login:132883] *** End of error message ***
Aborted
Instead, if I have for example
Sectors 360 #<a comment>
then there is no problem.
It might be a good idea, before fargoInit actually reads the content of the config.info file, to truncate each line of config.info up until an occurrence of the #
character, so that comments can be placed anywhere without problems. I don't know how fargoInit reads the config.info files at the moment.