Changeset 22 for readTracFiles_mod.f90


Ignore:
Timestamp:
Sep 9, 2022, 5:20:56 PM (2 years ago)
Author:
dcugnet
Message:

Fix needed for gfortran 4.8.5 compiler (JYG)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • readTracFiles_mod.f90

    r21 r22  
    175175  END SELECT
    176176  !++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     177
    177178
    178179  IF(ALL([2,3] /= fType)) RETURN
     
    613614!------------------------------------------------------------------------------------------------------------------------------
    614615  TYPE(trac_type), ALLOCATABLE, INTENT(INOUT) :: tr(:)         !--- Tracer derived type vector
    615   INTEGER,         ALLOCATABLE :: iy(:), iz(:)
    616   INTEGER :: ig, ng, iq, jq, ip, nq, n, ix(SIZE(tr)), k
     616!------------------------------------------------------------------------------------------------------------------------------
     617  TYPE(trac_type), ALLOCATABLE        :: tr2(:)
     618  INTEGER,         ALLOCATABLE        :: iy(:), iz(:)
     619  INTEGER                             :: ig, ng, iq, jq, ip, nq, n, ix(SIZE(tr)), k
     620  INTEGER                             :: it
     621!  tr2 is introduced in order to cope with a bug in gfortran 4.8.5 compiler
    617622!------------------------------------------------------------------------------------------------------------------------------
    618623  nq = SIZE(tr)
     
    620625    iq = strIdx(tr(:)%name, addPhase('H2O', ip))
    621626    IF(iq == 0) CYCLE
    622     tr = [tr(iq), tr(1:iq-1), tr(iq+1:nq)]
     627    tr2 = tr(:)
     628    tr = [tr2(iq), tr2(1:iq-1), tr2(iq+1:nq)]
    623629  END DO
    624630  IF(lSortByGen) THEN
Note: See TracChangeset for help on using the changeset viewer.