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:
parent
ace5dde0af
commit
27a6ed893e
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue