Changeset 5582 for LMDZ6


Ignore:
Timestamp:
Mar 21, 2025, 3:26:37 PM (3 months ago)
Author:
Laurent Fairhead
Message:

Another THREADPRIVATE statement that should not be defined and added comments

Location:
LMDZ6/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified LMDZ6/trunk/libf/phylmd/iophy.F90

    r5569 r5582  
    1212  INTEGER, ALLOCATABLE, DIMENSION(:), SAVE :: nptabij
    1313  INTEGER, SAVE :: itau_iophy
     14  !! WARNING, only itau_iophy needs to be put in a THREADPRIVATE statement,
     15  !!          io_lat,io_lon,phys_domain_id,npstn,nptabij are shared between OMP tasks
    1416  LOGICAL :: check_dim = .false.
    1517!$OMP THREADPRIVATE(itau_iophy)
     
    971973  REAL, ALLOCATABLE, DIMENSION(:) :: fieldok
    972974  logical, save :: is_active = .true.
     975  !! WARNING, is_active is shared between OMP tasks and should not be put in a THREADPRIVATE statement
    973976
    974977  IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite2d_phy for ',trim(var%name)
  • TabularUnified LMDZ6/trunk/libf/phylmd/oasis.F90

    r5483 r5582  
    137137    CHARACTER (len = 20)               :: modname = 'inicma'
    138138    CHARACTER (len = 80)               :: abort_message
     139    !! WARNING: cpl_current_omp should NOT be put in a THREADPRIVATE statement, it is shared between tasks
    139140    LOGICAL, SAVE                      :: cpl_current_omp
    140141    INTEGER, DIMENSION(klon_mpi)       :: ind_cell_glo_mpi
    141 
    142     !$OMP THREADPRIVATE(cpl_current_omp)
    143142
    144143
Note: See TracChangeset for help on using the changeset viewer.