mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
Print the initial energy as well as the initial temperature to the screen
This commit is contained in:
parent
012c306e30
commit
cf7060dc1a
1 changed files with 2 additions and 1 deletions
|
@ -159,7 +159,8 @@ public:
|
|||
const double mu = (Tini > 1.e4) ? 4.0 / (8. - 5. * YHe) : 4.0 / (1. + 3. * (1. - YHe));
|
||||
const double ceint = 1.3806e-16 / 1.6726e-24 * Tini * npol / mu / unitv / unitv;
|
||||
|
||||
music::ilog.Print("Swift : set initial gas temperature to %.2f K/mu", Tini / mu);
|
||||
music::ilog.Print("Swift : Calculated initial gas temperature: %.2f K/mu", Tini / mu);
|
||||
music::ilog.Print("Swift : set initial internal energy to %.2e km^2/s^2", ceint);
|
||||
|
||||
std::vector<write_real_t> data( npart_[0], ceint );
|
||||
HDFWriteDataset(this_fname_, "PartType0/InternalEnergy", data);
|
||||
|
|
Loading…
Reference in a new issue