Changeset 3975


Ignore:
Timestamp:
Nov 21, 2025, 7:20:50 PM (3 weeks ago)
Author:
lrosset
Message:

TITAN PCM :
Updating and fixing the 1D version of the model : can now run with all couplings activated + XIOS outputs added.
Documentation about 1D version updated in LMDZ.TITAN/DOC, and reference files added in deftank.
LR

Location:
trunk/LMDZ.TITAN
Files:
9 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/chimtitan/titan.h

    r2326 r3975  
    88#define R0    (double)(2575.0) /* Titan's radius */
    99#define NLEV  (int)(133)  /* Nbre de niv verticaux -> Need to be coherent with the vertical grid used !! */
    10 #define NLD   (int)(40)   /* Nbre de niv verticaux faits sans diff -> Need to be coherent with the vertical grid used !! */
    11 //#define NLD   (int)(0)  /* -> This is for 1D, diffusion on all column */
     10#ifdef CPP_1D
     11    #define NLD   (int)(0)  /* -> This is for 1D, diffusion on all column */
     12#else
     13    #define NLD   (int)(40)   /* Nbre de niv verticaux faits sans diff -> Need to be coherent with the vertical grid used !! */
     14#endif
    1215#define NLRT  (int)(650)  /* Nbre de niv verticaux dans table fmoy - aussi dans common_mod */
    1316
  • trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan/gr_kim_vervack.F90

    r2365 r3975  
    6363 
    6464  ! NB : At the top of the model we are in pure pressure coord. -> ap
    65   ! ( except for 1D where we have only bp )
    6665 
    67   IF (jjm.GT.1) THEN
    68     ptop = 2.0*aps(llm) - ap(llm)
    69   ELSE
    70     ptop = preff*(2.0*bps(llm) - bp(llm))
    71   ENDIF
     66  ptop = 2.0*aps(llm) - ap(llm)
    7267 
    7368  ! --------------------------------------------
  • trunk/LMDZ.TITAN/libf/phytitan/dyn1d/rcm1d.F

    r3318 r3975  
    3737      use phys_state_var_mod, only: phys_state_var_init
    3838      use physiq_mod, only: physiq
     39! For XIOS outputs:
     40      use mod_const_mpi, only: init_const_mpi
     41      use parallel_lmdz, only: init_parallel
    3942      implicit none
    4043
     
    135138c=======================================================================
    136139
     140! For XIOS outputs
     141#ifdef CPP_XIOS
     142      call init_const_mpi
     143      call init_parallel
     144#endif
     145
    137146      ! read nq from traceur.def
    138147      open(90,file='traceur.def',status='old',form='formatted',
     
    204213        write(*,*) 'Please remove the file and restart the run.'
    205214        write(*,*) 'Runtime parameters are supposed to be in rcm1d.def'
    206         stop
     215        !stop
    207216      else
    208         call system('touch run.def')
    209         call system("echo 'INCLUDEDEF=callphys.def' >> run.def")
    210         call system("echo 'INCLUDEDEF=rcm1d.def' >> run.def")
     217        ! call system('touch run.def')
     218        ! call system("echo 'INCLUDEDEF=callphys.def' >> run.def")
     219        ! call system("echo 'INCLUDEDEF=rcm1d.def' >> run.def")
    211220      endif
    212221
     
    217226      write(*,*) " tracer = ",tracer
    218227
    219 ! OK. now that run.def has been read once -- any variable is in memory.
    220 ! so we can dump the dummy run.def
    221 !      call system("rm -rf run.def") ! Ehouarn: delay this to after inifis
    222 
    223228! while we're at it, check if there is a 'traceur.def' file
    224 ! and preocess it, if necessary. Otherwise initialize tracer names
     229! and process it, if necessary. Otherwise initialize tracer names
    225230      if (tracer) then
    226231      ! load tracer names from file 'traceur.def'
     
    449454      iphysiq=1 ! in 1D model physics are called evry time step
    450455      ecritphy=day_step ! default value for ecritphy
    451       PRINT *,'Nunber of steps between writediagfi ?'
     456      PRINT *,'Number of steps between writediagfi ?'
    452457      call getin("ecritphy",ecritphy)
    453458      write(*,*) " ecritphy = ",ecritphy
     
    503508! At this point, both getin() and getin_p() functions have been used,
    504509! and the run.def file can be removed.
    505       call system("rm -rf run.def")
     510      ! call system("rm -rf run.def")
    506511
    507512!!! We check everything is OK.
     
    941946c    ========================================================
    942947      if(saveprofile)then
    943          OPEN(12,file='profile.out',form='formatted')
     948         OPEN(12,file='profile_T.out',form='formatted')
    944949         write(12,*) tsurf
    945950         DO ilayer=1,llm
     
    956961c    ========================================================
    957962      end                       !rcm1d
    958  
    959 
  • trunk/LMDZ.TITAN/libf/phytitan/profile.F

    r1150 r3975  
    178178      ! then profile of atmospheric temperature
    179179      ELSE IF(ichoice.GE.8) THEN
    180       OPEN(11,file='profile',status='old',form='formatted',err=101)
     180      OPEN(11,file='profile_T',status='old',form='formatted',err=101)
    181181      DO il=1,nlev
    182182        READ (11,*) temp(il)
     
    184184
    185185      GOTO 201
    186 101   STOP'fichier profile inexistant'
     186101   STOP'fichier profile_T inexistant'
    187187201   CONTINUE
    188188      CLOSE(10)
Note: See TracChangeset for help on using the changeset viewer.