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:
parent
6595ba53c4
commit
a80fbf13d1
1 changed files with 1 additions and 0 deletions
|
@ -790,6 +790,7 @@ protected:
|
||||||
{
|
{
|
||||||
if( itype == bndparticletype_ ) continue;
|
if( itype == bndparticletype_ ) continue;
|
||||||
np_per_type_[bndparticletype_] += np_per_type_[itype];
|
np_per_type_[bndparticletype_] += np_per_type_[itype];
|
||||||
|
if( !bmorethan2bnd_ ) header_.mass[bndparticletype_] += header_.mass[itype];
|
||||||
np_per_type_[itype] = 0;
|
np_per_type_[itype] = 0;
|
||||||
header_.mass[itype] = 0.;
|
header_.mass[itype] = 0.;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue