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

fixed a bug in the Gadget output plugin that caused masses not written to header when running with only one level of refinement

This commit is contained in:
Oliver Hahn 2014-08-17 19:35:31 +02:00
parent 6595ba53c4
commit a80fbf13d1

View file

@ -790,6 +790,7 @@ protected:
{
if( itype == bndparticletype_ ) continue;
np_per_type_[bndparticletype_] += np_per_type_[itype];
if( !bmorethan2bnd_ ) header_.mass[bndparticletype_] += header_.mass[itype];
np_per_type_[itype] = 0;
header_.mass[itype] = 0.;
}