Ignore:
Timestamp:
Jan 29, 2022, 7:22:11 PM (3 years ago)
Author:
dcugnet
Message:

FIx for last version: function version of strReduce crashes with gfortran (but not for ifort) => back to subroutine version.

File:
1 edited

Legend:

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

    r4067 r4068  
    33MODULE infotrac
    44
    5    USE       strings_mod, ONLY: msg, find, strIdx,  strFind, strParse, dispTable,  int2str,  reduceExpr, &
    6                           cat, fmsg, test, strTail, strHead, strStack, strReducef, bool2str, maxlen, testFile
     5   USE       strings_mod, ONLY: msg, find, strIdx,  strFind, strParse, dispTable, int2str,  reduceExpr, &
     6                          cat, fmsg, test, strTail, strHead, strStack, strReduce, bool2str, maxlen, testFile
    77   USE readTracFiles_mod, ONLY: trac_type, readTracersFiles, addPhase,  phases_sep,  nphases, ancestor,  &
    88                                isot_type, readIsotopesFile, delPhase,   old_phases, getKey_init, tran0, &
     
    823823   ALLOCATE(i%keys(i%niso))
    824824   mask = t%type=='tracer' .AND. delPhase(t%gen0Name)=='H2O' .AND. t%phase == 'g' .AND. t%iGeneration==1
    825    i%keys(:)%name = strReducef(strTail(PACK(delPhase(t%name), MASK = mask), '_'))
     825   str = strTail(PACK(delPhase(t%name), MASK=mask), '_')
     826   CALL strReduce(str)
     827   i%keys(:)%name = str
    826828
    827829   !--- Full isotopes list, with isotopes tagging tracers (if any) following the previous list
    828    i%ntiso = ntiso; ALLOCATE(i%trac(i%ntiso))
     830   i%ntiso = ntiso
     831   ALLOCATE(i%trac(i%ntiso))
    829832   mask = t%type=='tag'    .AND. delPhase(t%gen0Name)=='H2O' .AND. t%phase == 'g' .AND. t%iGeneration==2
    830    i%trac(:) = [i%keys(:)%name, strReducef(PACK(delPhase(t%name), MASK = mask))]
     833   str = PACK(delPhase(t%name), MASK=mask)
     834   CALL strReduce(str)
     835   i%trac(:) = [i%keys(:)%name, str]
    831836
    832837   !--- Tagging zones names list
Note: See TracChangeset for help on using the changeset viewer.