mirror of
https://github.com/cosmo-sims/MUSIC.git
synced 2024-09-19 17:03:46 +02:00
Fixed a bug that caused Poisson solver not to converge for baryons and some fields
to have wrong size when using baryons. Fixes bug #2 and #3
This commit is contained in:
parent
5e0cbcbae8
commit
f9e6a8faca
1 changed files with 4 additions and 0 deletions
4
main.cc
4
main.cc
|
@ -475,6 +475,10 @@ int main (int argc, const char * argv[])
|
|||
if( do_baryons )
|
||||
{
|
||||
GenerateDensityHierarchy( cf, the_transfer_function_plugin, total , rh_TF, f, true );
|
||||
|
||||
coarsen_density(rh_Poisson, f);
|
||||
normalize_density(f);
|
||||
|
||||
u = f; u.zero();
|
||||
err = the_poisson_solver->solve(f, u);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue