Changeset 2627


Ignore:
Timestamp:
Feb 28, 2022, 12:23:15 PM (3 years ago)
Author:
romain.vande
Message:

LMDZ_MARS:
Small OpenMP fixes in conf_phys for reading radia.def with ifort
RV

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2617 r2627  
    36053605Open_MP : In co2condens_mod : Remove emisref from THREADPRIVATE as it is not a saved variable
    36063606
     3607== 28/02/2022 == RV
     3608Open_MP :Small OpenMP fixes in conf_phys for reading radia.def with ifort
     3609
  • trunk/LMDZ.MARS/libf/phymars/conf_phys.F

    r2561 r2627  
    5151     &                          dustscaling_mode
    5252      use aeropacity_mod, only: iddist, topdustref
     53      USE mod_phys_lmdz_transfert_para, ONLY: bcast
    5354      IMPLICIT NONE
    5455      include "callkeys.h"
     
    7879! --------------------------------------------------------------
    7980     
     81!$OMP MASTER
    8082      ! check that 'callphys.def' file is around
    8183      OPEN(99,file='callphys.def',status='old',form='formatted'
    8284     &     ,iostat=ierr)
    8385      CLOSE(99)
     86!$OMP END MASTER
     87      call bcast(ierr)
     88!       ierr=0
    8489     
    8590      IF(ierr.EQ.0) THEN
     
    11081113!     BUT people working hard on the LW may want to read them in 'radia.def'
    11091114!     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1110 
     1115!$OMP MASTER
    11111116      OPEN(99,file='radia.def',status='old',form='formatted'
    11121117     .     ,iostat=ierr)
     
    11551160      end if
    11561161      CLOSE(99)
     1162!$OMP END MASTER
     1163      call bcast(ch1)
     1164      call bcast(callemis)
     1165      call bcast(iradia)
     1166      call bcast(ilwd)
     1167      call bcast(ilwn)
     1168      call bcast(linear)
     1169      call bcast(ncouche)
     1170      call bcast(alphan)
     1171      call bcast(ilwb)
     1172      call bcast(callg2d)
     1173      call bcast(semi)
    11571174
    11581175      END
Note: See TracChangeset for help on using the changeset viewer.