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

tetmesh: fixed a bug when computing ref levels

This commit is contained in:
Oliver Hahn 2013-10-24 20:11:46 +02:00
parent ace5dde0af
commit 27a6ed893e

View file

@ -324,7 +324,7 @@ void init_base_grid( int ilevel, size_t prealloc_particles = 0 )
size_t nbase = 1<<ilevel;//, lid;
TetRefinementIDFactor = 20-ilevel;
tetgrid_baselevel = nbase;
tetgrid_baselevel = ilevel;
prealloc_particles = std::max( prealloc_particles, nbase*nbase*nbase );
P = (particle*)malloc( sizeof(particle) * prealloc_particles );