Ignore:
Timestamp:
Sep 2, 2022, 4:04:28 PM (2 years ago)
Author:
emillour
Message:

Titan physics:
Fix some OpenMP typos and inconsistencies spoted when compiling (even without OpenMP) on Irene.
Some further run-time checking in debug mode might be needed to ensure everything is indeed OK for OpenMP.
EM

Location:
trunk/LMDZ.TITAN/libf/phytitan
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/callkeys_mod.F90

    r2366 r2793  
    1515!$OMP THREADPRIVATE(strictboundcorrk)
    1616      logical,save :: corrk_recombin
    17 !$OMP_THREADPRIVATE(corrk_recombin)
     17!$OMP THREADPRIVATE(corrk_recombin)
    1818      logical,save :: seashaze,uncoupl_optic_haze
    1919!$OMP THREADPRIVATE(seashaze,uncoupl_optic_haze)
  • trunk/LMDZ.TITAN/libf/phytitan/comchem_h.F90

    r2326 r2793  
    6363   INTEGER, SAVE :: nlaykim_up   ! Number of upper atm. layers for chemistry from GCM top to 4.5E-5 Pa (1300km)
    6464   INTEGER, SAVE :: nlaykim_tot  ! Number of total layers for chemistry from surface to 4.5E-5 Pa (1300km)
    65 !$OMP_THREADPRIVATE(nlaykim_up,nlay_kim_tot)
     65!$OMP THREADPRIVATE(nlaykim_up,nlaykim_tot)
    6666
    6767   ! NB : For the startfile we use nlaykim_up grid (upper atm) and for outputs we use nlaykim_tot grid (all layers)
     
    7878   REAL,SAVE,ALLOCATABLE,DIMENSION(:,:,:) :: ykim_tot     ! Total chemistry fields (mol/mol)
    7979   
    80 !$OMP_THREADPRIVATE(preskim,zlaykim,ykim_up)
    81 !$OMP_THREADPRIVATE(preskim_tot,zlaykim_tot,ykim_tot)
     80!$OMP THREADPRIVATE(preskim,zlaykim,ykim_up)
     81!$OMP THREADPRIVATE(preskim_tot,zlaykim_tot,ykim_tot)
    8282
    8383   ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • trunk/LMDZ.TITAN/libf/phytitan/iostart.F90

    r1889 r2793  
    1717    INTEGER,SAVE :: idim8 ! "upper_chemistry_layers" dimension
    1818    INTEGER,SAVE :: timeindex ! current time index (for time-dependent fields)
    19 !$OMP THREADPRIVATE(idim1,idim2,idim3,idim4,idim5,idim6,idim7,idim8,idim9,timeindex)
     19!$OMP THREADPRIVATE(idim1,idim2,idim3,idim4,idim5,idim6,idim7,idim8,timeindex)
    2020    INTEGER,PARAMETER :: length=100 ! size of tab_cntrl array
    2121   
  • trunk/LMDZ.TITAN/libf/phytitan/muphy_diag.F90

    r2675 r2793  
    2424  REAL(kind=8), ALLOCATABLE, DIMENSION(:,:)   :: mmd_rc_cld     !! Cloud drop radius (m).
    2525
    26   !$OMP THREADPRIVATE(mmd_aer_prec,mmd_ccnprec,mmd_aer_s_flux,mmd_aer_f_flux,mmd_ccn_flux,mmd_ice_fluxes)
     26  !$OMP THREADPRIVATE(mmd_aer_prec,mmd_ccn_prec,mmd_aer_s_flux,mmd_aer_f_flux,mmd_ccn_flux,mmd_ice_fluxes)
    2727  !$OMP THREADPRIVATE(mmd_gazs_sat,mmd_ice_prec,mmd_rc_sph,mmd_rc_fra,mmd_rc_cld)
    2828
  • trunk/LMDZ.TITAN/libf/phytitan/phys_state_var_mod.F90

    r2366 r2793  
    4646      real,dimension(:),allocatable,save :: fluxgrd     ! Surface conduction flux (W.m-2).
    4747      real,dimension(:,:),allocatable,save :: qsurf     ! Tracer on surface (e.g. kg.m-2).
    48 !$OMP THREADPRIVATE(emis,dtrad,fluxrad_sky,fluxrad,capcal,fluxgrd,qsurf,q2)
     48!$OMP THREADPRIVATE(emis,dtrad,fluxrad_sky,fluxrad,capcal,fluxgrd,qsurf)
    4949
    5050      ! FOR DIAGNOSTIC :
Note: See TracChangeset for help on using the changeset viewer.