From abf8d0ec9a5ef6b705d6f8f16b4892bed6e62463 Mon Sep 17 00:00:00 2001 From: Oliver Hahn Date: Wed, 26 Aug 2020 15:18:42 +0200 Subject: [PATCH] added a dummy smoothing length (2 mean particle spacings) to the Swift ICs --- src/plugins/output_swift.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/output_swift.cc b/src/plugins/output_swift.cc index ccf8405..a6dd02d 100644 --- a/src/plugins/output_swift.cc +++ b/src/plugins/output_swift.cc @@ -151,6 +151,10 @@ public: std::vector data( npart_[0], ceint ); HDFWriteDataset(this_fname_, "PartType0/InternalEnergy", data); + + data.assign( npart_[0], boxlength_ / cf_.get_value("setup","GridRes") ); + HDFWriteDataset(this_fname_, "PartType0/SmoothingLength", data); + } music::ilog << "Wrote SWIFT IC file(s) to " << this_fname_ << std::endl;