Error when changing fundamental.hpp
Hi,
I wanted to change
real constexpr R0 = 5.2*AU;
into
real constexpr R0 = 1.*AU;
(because it's sometimes very frustrating to have to deal with crazy units like that).
The code seems to build alright, except some errors on the tests since all units are changed, which should be expected:
$ make
[...]
[ 26%] Linking CXX executable seq_fargOCA
[ 26%] Built target seq_fargOCA
[...]
[ 43%] Linking CXX executable fargOCA
[ 43%] Built target fargOCA
[ 43%] Building CXX object CMakeFiles/fargoInit.dir/mainInit.cpp.o
[ 43%] Linking CXX executable fargoInit
[ 43%] Built target fargoInit
[ 44%] Building CXX object CMakeFiles/seq_fargoInit.dir/mainInit.cpp.o
[ 44%] Linking CXX executable seq_fargoInit
[ 44%] Built target seq_fargoInit
[...]
[100%] Built target 3D_accreting_bywind_config_pdf
FATAL: Your initial density for required accretion rate should be: 0.000112603
You have:0.00133
Restart with: 0.000112603
Or remove star accretion parameters from config file (gas accretion will occur at rate: 2pi*r*v_r*Sigma)
make[2]: *** [examples/2D_isothermal/CMakeFiles/2D_isothermal_config_tex.dir/build.make:71: examples/2D_isothermal/CMakeFiles/2D_isothermal_config_tex] Error 78
make[1]: *** [CMakeFiles/Makefile2:4870: examples/2D_isothermal/CMakeFiles/2D_isothermal_config_tex.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
However fargoInit
gives this error on a config file which was ok with the original R0 = 5.2*AU
:
HDF5-DIAG: Error detected in HDF5 (1.12.0) thread 0:
#000: ../../src/H5T.c line 2265 in H5Tset_size(): size must be positive
major: Invalid arguments to routine
minor: Bad value
terminate called after throwing an instance of 'H5::DataTypeIException'
Aborted (core dumped)