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:
parent
5b70bd86ff
commit
abf8d0ec9a
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue