Ignore:
Timestamp:
Dec 15, 2021, 11:18:49 PM (2 years ago)
Author:
dcugnet
Message:

First commit for new tracers.

  • parser routines readTracFiles, strings_mod and tracer_types added in misc using revision 4 of https://svn.lmd.jussieu.fr/tracers-parser
  • tested in sequential and parallel mode using ioipsl.
  • for now, only two fields of "tracers(:)" derived type vector are used: "name" and "longName".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/phyredem.F90

    r4035 r4046  
    3535  USE iostart, ONLY: open_restartphy, close_restartphy, enddef_restartphy, put_field, put_var
    3636  USE traclmdz_mod, ONLY : traclmdz_to_restart
    37   USE infotrac_phy, ONLY: type_trac, niadv, tname, nbtr, nqo
     37  USE infotrac_phy, ONLY: type_trac, niadv, tracers, nbtr, nqo
    3838  USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send
    3939  USE indice_sol_mod, ONLY: nbsrf, is_oce, is_sic, is_ter, is_lic, epsfra
     
    329329!!        iiq=niadv(it+2)                                                           ! jyg
    330330          iiq=niadv(it+nqo)                                                           ! jyg
    331           CALL put_field(pass,"trs_"//tname(iiq), "", trs(:, it))
     331          CALL put_field(pass,"trs_"//tracers(iiq)%name, "", trs(:, it))
    332332       END DO
    333333    END IF
     
    380380    IF (pass==1) CALL enddef_restartphy
    381381    IF (pass==2) CALL close_restartphy
    382  ENDDO
     382  ENDDO ! DO pass=1,2   ! pass=1 netcdf definition ; pass=2 netcdf write
    383383 
    384384  !$OMP BARRIER
Note: See TracChangeset for help on using the changeset viewer.