Changeset 4429


Ignore:
Timestamp:
Feb 10, 2023, 2:35:11 PM (15 months ago)
Author:
dcugnet
Message:

Fix for old tracers files and inca: all the keys must be accessible using "getKey", even
the "explicit" keys from "tracers" accessible withe the "%" sign. "parent" was missing.

Location:
LMDZ6/trunk/libf
Files:
2 edited

Legend:

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

    r4403 r4429  
    161161   TYPE(trac_type), ALLOCATABLE, TARGET :: ttr(:)
    162162   TYPE(trac_type), POINTER             :: t1, t(:)
     163   TYPE(keys_type), POINTER :: k
    163164   INTEGER :: ierr
    164165
     
    243244      vadv(1:nqo+nqCO2) = vad(:); vadv(1+nqo+nqCO2:nqtrue) = vadv_inca
    244245      CALL MOVE_ALLOC(FROM=ttr, TO=tracers)
     246      DO iq = 1, nqtrue
     247         t1 => tracers(iq)
     248         CALL addKey_1('name',      t1%name,      t1%keys)
     249         CALL addKey_1('component', t1%component, t1%keys)
     250         CALL addKey_1('parent',    t1%parent,    t1%keys)
     251         CALL addKey_1('phase',     t1%phase,     t1%keys)
     252      END DO
    245253      IF(setGeneration(tracers)) CALL abort_gcm(modname,'See above',1) !- SET FIELDS %iGeneration, %gen0Name
    246254      DEALLOCATE(had, hadv_inca, vad, vadv_inca, conv_flg_inca, pbl_flg_inca, solsym_inca)
     
    263271   !---------------------------------------------------------------------------------------------------------------------------
    264272
     273#ifdef REPROBUS
    265274   !--- Transfert the number of tracers to Reprobus
    266 #ifdef REPROBUS
    267275   CALL Init_chem_rep_trac(nbtr, nqo, tracers(:)%name)
    268 #endif
    269 
     276
     277#endif
    270278!==============================================================================================================================
    271279! 2) Calculate nqtot, number of tracers needed (greater if advection schemes 20 or 30 have been chosen).
  • LMDZ6/trunk/libf/phylmd/infotrac_phy.F90

    r4403 r4429  
    271271      vadv(1:nqo+nqCO2) = vad(:); vadv(1+nqo+nqCO2:nqtrue) = vadv_inca
    272272      CALL MOVE_ALLOC(FROM=ttr, TO=tracers)
     273      DO iq = 1, nqtrue
     274         t1 => tracers(iq)
     275         CALL addKey_1('name',      t1%name,      t1%keys)
     276         CALL addKey_1('component', t1%component, t1%keys)
     277         CALL addKey_1('parent',    t1%parent,    t1%keys)
     278         CALL addKey_1('phase',     t1%phase,     t1%keys)
     279      END DO
    273280      IF(setGeneration(tracers)) CALL abort_gcm(modname,'See below',1) !- SET FIELDS %iGeneration, %gen0Name
    274281      DEALLOCATE(had, hadv_inca, vad, vadv_inca, conv_flg_inca, pbl_flg_inca, solsym_inca)
Note: See TracChangeset for help on using the changeset viewer.