Ignore:
Timestamp:
Jul 21, 2023, 10:42:49 AM (11 months ago)
Author:
acozic
Message:

Add a fix to homogenize type_trac between lmdz and dynamico
LMDZ had lost the backward compatibility of type_trac in list form. This commit makes it possible again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d_common/infotrac.F90

    r4523 r4638  
    162162   TYPE(trac_type), POINTER             :: t1, t(:)
    163163   INTEGER :: ierr
     164   CHARACTER(LEN=maxlen),   ALLOCATABLE :: types_trac(:)  !--- Keyword for tracers type(s), parsed version
    164165
    165166   CHARACTER(LEN=*), PARAMETER :: modname="init_infotrac"
     
    175176   CALL msg('type_trac = "'//TRIM(type_trac)//'"', modname)
    176177
     178   lerr=strParse(type_trac, '|', types_trac, n=nt)
     179   IF (nt .GT. 1) THEN
     180      IF (nt .GT. 2) CALL abort_gcm(modname, 'you need to modify type_trac, this version is not supported by lmdz', 1)
     181      if (nt .EQ. 2) type_trac=types_trac(2)
     182   ENDIF
     183
     184
     185   
    177186   !--- MESSAGE ABOUT THE CHOSEN CONFIGURATION
    178187   msg1 = 'For type_trac = "'//TRIM(type_trac)//'":'
Note: See TracChangeset for help on using the changeset viewer.