Ignore:
Timestamp:
Feb 2, 2022, 11:24:54 AM (3 years ago)
Author:
acozic
Message:

Made some correction to allow compilation with inca (Anne)

File:
1 edited

Legend:

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

    r4071 r4073  
    205205   INTEGER :: nqtrue                                                 !--- Tracers nb from tracer.def (no higher order moments)
    206206   INTEGER :: iad                                                    !--- Advection scheme number
    207    INTEGER :: ic, ip, np, iq, jq, it, nt, im, nm, ix, iz, nz         !--- Indexes and temporary variables
     207   INTEGER :: ic, ip, np, iq, jq, it, nt, im, nm, ix, iz, nz, k      !--- Indexes and temporary variables
    208208   LOGICAL :: lerr, ll
    209209   CHARACTER(LEN=1) :: p
     
    298298      nbtr = nqINCA + nqCO2
    299299      nqtrue = nbtr + nqo
    300       IF(ALL([2,3] /= nqo) CALL abort_gcm(modname, 'Only 2 or 3 water phases allowed ; found nqo='//TRIM(int2str(nqo)), 1)
     300      IF(ALL([2,3] /= nqo)) CALL abort_gcm(modname, 'Only 2 or 3 water phases allowed ; found nqo='//TRIM(int2str(nqo)), 1)
    301301      CALL msg('nqo    = '//TRIM(int2str(nqo)),    modname)
    302302      CALL msg('nbtr   = '//TRIM(int2str(nbtr)),   modname)
     
    310310      conv_flg = [(  1,        ic=1, nqCO2),conv_flg_inca]
    311311       pbl_flg = [(  1,        ic=1, nqCO2), pbl_flg_inca]
    312        solsym  = [('CO2     ', ic=1, nqCO2)  solsym_inca]
    313       DEALLOCATE(conv_flg_inca, pbl_flg_inca, solsym_inca)
     312       solsym  = [('CO2     ', ic=1, nqCO2), solsym_inca]
     313      DEALLOCATE(conv_flg_inca, pbl_flg_inca,solsym_inca)
    314314#endif
    315315   ELSE
     
    402402      nbtr = nqINCA + nqCO2                                          !--- Number of tracers passed to phytrac
    403403      nqtrue = nbtr + nqo                                            !--- Total number of "true" tracers
    404       IF(ALL([2,3] /= nqo) CALL abort_gcm(modname, 'Only 2 or 3 water phases allowed ; found nqo='//TRIM(int2str(nqo)), 1)
     404      IF(ALL([2,3] /= nqo)) CALL abort_gcm(modname, 'Only 2 or 3 water phases allowed ; found nqo='//TRIM(int2str(nqo)), 1)
    405405      CALL msg('nqo    = '//TRIM(int2str(nqo)),    modname)
    406406      CALL msg('nbtr   = '//TRIM(int2str(nbtr)),   modname)
     
    412412      CALL init_transport(hadv_inca, vadv_inca, conv_flg_inca, pbl_flg_inca, solsym_inca)
    413413      ! DC passive CO2 tracer is at position 1: H2O was removed ; nqCO2/=0 in "inco" case only
    414       conv_flg = [(  1,        k=1, nqCO2), conv_flg_inca]
    415        pbl_flg = [(  1,        k=1, nqCO2), pbl_flg_inca]
    416        solsym  = [('CO2     ', k=1, nqCO2)    solsym_inca]
     414      conv_flg = [(  1       , k=1, nqCO2), conv_flg_inca]
     415      pbl_flg  = [(  1       , k=1, nqCO2), pbl_flg_inca]
     416      solsym   = [('CO2     ', k=1, nqCO2), solsym_inca]
    417417      DEALLOCATE(conv_flg_inca, pbl_flg_inca, solsym_inca)
    418418      ALLOCATE(ttr(nqtrue))
Note: See TracChangeset for help on using the changeset viewer.