1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00

added a dummy smoothing length (2 mean particle spacings) to the Swift ICs

This commit is contained in:
Oliver Hahn 2020-08-26 15:18:42 +02:00
parent 5b70bd86ff
commit abf8d0ec9a

View file

@ -151,6 +151,10 @@ public:
std::vector<write_real_t> data( npart_[0], ceint );
HDFWriteDataset(this_fname_, "PartType0/InternalEnergy", data);
data.assign( npart_[0], boxlength_ / cf_.get_value<double>("setup","GridRes") );
HDFWriteDataset(this_fname_, "PartType0/SmoothingLength", data);
}
music::ilog << "Wrote SWIFT IC file(s) to " << this_fname_ << std::endl;