Changeset 2564


Ignore:
Timestamp:
Sep 21, 2021, 2:55:36 PM (3 years ago)
Author:
emillour
Message:

Common dynamics:
Check that there is indeed a run.def file to get options, flags, etc. from.
Stop if there isn't, as most likely the defaults won't do.
EM

Location:
trunk/LMDZ.COMMON/libf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3d/gcm.F90

    r2507 r2564  
    137137  REAL :: heure
    138138  logical use_filtre_fft
     139  logical :: present
    139140
    140141!-----------------------------------------------------------------------
     
    151152
    152153!----------------------------------------------------------------------
    153 lecture des fichiers gcm.def ou run.def
     154Load flags and options from run.def
    154155!  ---------------------------------------
    155156!
     157! Start by checking that there indeed is a run.def file
     158  INQUIRE(file="run.def", EXIST=present)
     159  IF(.not. present) then
     160    CALL abort_gcm("gcm", "file run.def not found, Aborting!",1)
     161  ENDIF
     162
    156163  CALL conf_gcm( 99, .TRUE. )
    157164  if (mod(iphysiq, iperiod) /= 0) call abort_gcm("conf_gcm", &
  • trunk/LMDZ.COMMON/libf/dyn3dpar/gcm.F

    r2507 r2564  
    138138      REAL :: heure
    139139
     140      logical :: present
    140141
    141142c-----------------------------------------------------------------------
     
    165166
    166167c----------------------------------------------------------------------
    167 lecture des fichiers gcm.def ou run.def
     168Load flags and options from run.def
    168169c  ---------------------------------------
    169170c
    170 ! Ehouarn: dump possibility of using defrun
    171 !#ifdef CPP_IOIPSL
     171      ! Start by checking that there indeed is a run.def file
     172      INQUIRE(file="run.def", EXIST=present)
     173      IF(.not. present) then
     174        CALL abort_gcm("gcm", "file run.def not found, Aborting!",1)
     175      ENDIF
     176
    172177      CALL conf_gcm( 99, .TRUE. )
    173178      if (mod(iphysiq, iperiod) /= 0) call abort_gcm("conf_gcm",
    174179     s "iphysiq must be a multiple of iperiod", 1)
    175 !#else
    176 !      CALL defrun( 99, .TRUE. , clesphy0 )
    177 !#endif
    178180c
    179181c
Note: See TracChangeset for help on using the changeset viewer.