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:
parent
85dfd7d784
commit
4aeb06b1d5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue