Skip to content

Commit

Permalink
Upadting mol map symmetry flag when PA is not -90
Browse files Browse the repository at this point in the history
  • Loading branch information
cpinte committed Oct 23, 2023
1 parent 7caba76 commit bef1a93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/init_mcfost.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1765,9 +1765,12 @@ subroutine initialisation_mcfost()
write (*,'(" Sequential code")')
endif

if ((l_sym_ima).and.(abs(ang_disque) > 1e-6)) then
if ((l_sym_ima).and.(abs(ang_disque+90) > 1e-6)) then
call warning("PA different from zero: removing image symetry")
l_sym_ima=.false.
do imol=1,n_molecules
mol(imol)%l_sym_ima = .false.
enddo
endif

cmd = 'date'
Expand Down
2 changes: 1 addition & 1 deletion src/read_param.f90
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ subroutine read_para(para)
mol(imol)%vmin_center_rt = (mol(imol)%vmin_center_rt - v_syst) * km_to_m ! Conversion en m.s-1
mol(imol)%vmax_center_rt = (mol(imol)%vmax_center_rt - v_syst) * km_to_m ! Conversion en m.s-1
mol(imol)%l_sym_ima = .false.
if (l_sym_ima) then
if (l_sym_ima) then ! we check for PA later as this can be changed by command line
! Molecular maps are only symmetrical if velocity range is symmetrical around vsyst
if (abs(mol(imol)%vmax_center_rt + mol(imol)%vmin_center_rt) < 1e-5) mol(imol)%l_sym_ima = .true.
endif
Expand Down

0 comments on commit bef1a93

Please sign in to comment.