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

fixed bug in add_constant_value

This commit is contained in:
Oliver Hahn 2023-02-10 10:31:41 -08:00
parent 85dfd7d784
commit 4aeb06b1d5

View file

@ -289,7 +289,7 @@ void add_constant_value( grid_hierarchy &u, const double val )
for (int iy = 0; iy < (int)(*u.get_grid(ilvl)).size(1); ++iy)
for (int iz = 0; iz < (int)(*u.get_grid(ilvl)).size(2); ++iz)
{
(*u.get_grid(u.levelmax()))(ix, iy, iz) += val;
(*u.get_grid(ilvl))(ix, iy, iz) += val;
}
}
}