Skip to content

Commit

Permalink
Bug fix: checking density at initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
cpinte committed May 30, 2024
1 parent 13e61a6 commit 23b5cae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/density.f90
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,6 @@ subroutine is_density_file_Voronoi()
write(*,*) "Found 1D density structure, using a Voronoi mesh"
lVoronoi = .true.
l3D = .true.

n_cells = naxes(1)
else
write(*,*) "Found a structured mesh"
Expand Down
2 changes: 0 additions & 2 deletions src/dust_transfer.f90
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ subroutine transfert_poussiere()

laffichage=.true.

if (ldensity_file) call is_density_file_Voronoi()

if (lVoronoi) then
if (lmhd_voronoi) then
call setup_mhd_to_mcfost() !uses sph_to_voronoi
Expand Down
4 changes: 3 additions & 1 deletion src/init_mcfost.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module init_mcfost
use parametres
use naleat
use grains, only : aggregate_file, mueller_aggregate_file
use density, only : species_removed, T_rm
use density, only : species_removed, T_rm, is_density_file_Voronoi
use molecular_emission
!$ use omp_lib
use benchmarks
Expand Down Expand Up @@ -1477,6 +1477,8 @@ subroutine initialisation_mcfost()
call read_para(para)
endif

if (ldensity_file) call is_density_file_Voronoi()

if (lfargo3d) then
l3D = .true.
if (n_zones > 1) call error("fargo3d mode only work with 1 zone")
Expand Down

0 comments on commit 23b5cae

Please sign in to comment.