mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
Merged in small_swift_changes (pull request #22)
Small swift changes Approved-by: Oliver Hahn
This commit is contained in:
commit
2fad483587
2 changed files with 5 additions and 3 deletions
|
@ -145,9 +145,11 @@ NumThreads = 8
|
||||||
# filename = ics_hacc
|
# filename = ics_hacc
|
||||||
|
|
||||||
##> SWIFT compatible HDF5 format. Format broadly similar to gadget_hdf5 but in a single
|
##> SWIFT compatible HDF5 format. Format broadly similar to gadget_hdf5 but in a single
|
||||||
##> file even when using MPI. No h-factors and no sqrt(a)-factor for the velocities.
|
##> file even when using MPI. No h-factors for position and masses and no sqrt(a)-factor for the velocities.
|
||||||
|
##> IDs are stored using 64-bits unless UseLongids is set to false.
|
||||||
# format = SWIFT
|
# format = SWIFT
|
||||||
# filename = ics_swift.hdf5
|
# filename = ics_swift.hdf5
|
||||||
|
# UseLongids = true
|
||||||
|
|
||||||
##> Generic HDF5 output format for testing or PT-based calculations
|
##> Generic HDF5 output format for testing or PT-based calculations
|
||||||
# format = generic
|
# format = generic
|
||||||
|
|
|
@ -74,7 +74,7 @@ public:
|
||||||
vunit_ = boxsize_; // final units will be in km/s
|
vunit_ = boxsize_; // final units will be in km/s
|
||||||
munit_ = rhoc * std::pow(boxsize_, 3) / hubble_param_; // final units will be in 1e10 M_sol
|
munit_ = rhoc * std::pow(boxsize_, 3) / hubble_param_; // final units will be in 1e10 M_sol
|
||||||
|
|
||||||
blongids_ = cf_.get_value_safe<bool>("output", "UseLongids", false);
|
blongids_ = cf_.get_value_safe<bool>("output", "UseLongids", true);
|
||||||
bdobaryons_ = cf_.get_value<bool>("setup","DoBaryons");
|
bdobaryons_ = cf_.get_value<bool>("setup","DoBaryons");
|
||||||
|
|
||||||
for (int i = 0; i < 7; ++i)
|
for (int i = 0; i < 7; ++i)
|
||||||
|
@ -369,7 +369,7 @@ public:
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
output_plugin_creator_concrete<swift_output_plugin<float>> creator1("SWIFT");
|
output_plugin_creator_concrete<swift_output_plugin<double>> creator1("SWIFT");
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue