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 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:
Oliver Hahn 2010-07-25 11:40:44 -07:00
parent 5e0cbcbae8
commit f9e6a8faca

View file

@ -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);
}