Ignore:
Timestamp:
Mar 25, 2026, 11:19:02 AM (13 days ago)
Author:
jbclement
Message:

PEM:

  • Fix outputs "diagevo.nc" for 3D data.
  • Fix sign in computing exchanges due to adsorption/ice table and in balancing H2O flux from/into atmosphere.
  • Few cleanings.

JBC

Location:
trunk/LMDZ.COMMON/libf/evolution/deftank
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/README

    r4110 r4152  
    6262The PEM simulation generates the following files:
    6363    > the usual outputs of the PCM: "restartfi.nc", "restart.nc"/"restart1D.txt", "diagfi.nc", etc;
    64     > the XIOS outputs of the PCM: "Xoutdaily4pem*.nc"/"Xoutyearly4pem*.nc";
     64    > the XIOS outputs of the PCM: "xoutdaily4pem*.nc"/"xoutyearly4pem*.nc";
    6565    > the outputs of the chained simulation: "pem_workflow.log", "pem_workflow.sts" and possibly "kill_pem_workflow.sh";
    6666    > the usual outputs of the PEM: "restartevo.nc", "restartfi.nc", "restart.nc"/"restart1D.txt" and "diagevo.nc".
  • trunk/LMDZ.COMMON/libf/evolution/deftank/clean.sh

    r4110 r4152  
    1919rm -f start*.nc
    2020rm -f used_*
    21 rm -f Xout*4pem*.nc
     21rm -f xout*4pem*.nc
    2222rm -f xios_client_*
    2323rm -f diag*.nc
  • trunk/LMDZ.COMMON/libf/evolution/deftank/pcm_run.job

    r4110 r4152  
    6565k=0
    6666if [ $(echo "$k > 0" | bc) -eq 1 ]; then # Only the last 2 years are taken for the PEM
    67     cp Xoutdaily4pem.nc Xoutdaily4pem_Y${k}.nc
    68     cp Xoutyearly4pem.nc Xoutyearly4pem_Y${k}.nc
     67    cp xoutdaily4pem.nc xoutdaily4pem_y${k}.nc
     68    cp xoutyearly4pem.nc xoutyearly4pem_y${k}.nc
    6969fi
    70 mv Xoutdaily4pem.nc diags/Xoutdaily4pem${i_pcm_run}.nc
    71 mv Xoutyearly4pem.nc diags/Xoutyearly4pem${i_pcm_run}.nc
     70mv xoutdaily4pem.nc diags/xoutdaily4pem${i_pcm_run}.nc
     71mv xoutyearly4pem.nc diags/xoutyearly4pem${i_pcm_run}.nc
    7272cp restartfi.nc starts/restartfi${i_pcm_run}.nc
    7373mv restartfi.nc startfi.nc
  • trunk/LMDZ.COMMON/libf/evolution/deftank/pem_workflow_lib.sh

    r4117 r4152  
    498498    cleanup diags/diagfi .nc $i_resume
    499499    cleanup diags/diagsoil .nc $i_resume
    500     cleanup diags/Xoutdaily4pem .nc $i_resume
    501     cleanup diags/Xoutyearly4pem .nc $i_resume
     500    cleanup diags/xoutdaily4pem .nc $i_resume
     501    cleanup diags/xoutyearly4pem .nc $i_resume
    502502    cleanup logs/run_pcm .log $i_resume
    503503    cleanup starts/restart1D .txt $i_resume
     
    527527        fi
    528528        if [ $i_resume -eq $(($n_pcm_runs_ini - 1)) ]; then
    529             cp diags/Xoutdaily4pem${i_resume}.nc Xoutdaily4pem_Y1.nc
    530             cp diags/Xoutyearly4pem${i_resume}.nc Xoutyearly4pem_Y1.nc
     529            cp diags/xoutdaily4pem${i_resume}.nc xoutdaily4pem_y1.nc
     530            cp diags/xoutyearly4pem${i_resume}.nc xoutyearly4pem_y1.nc
    531531            submit_cycle $1 $n_pcm_runs_ini $i_pcm_run
    532532        elif [ $i_resume -eq $n_pcm_runs_ini ]; then
    533             cp diags/Xoutdaily4pem$(($i_resume - 1)).nc Xoutdaily4pem_Y1.nc
    534             cp diags/Xoutyearly4pem$(($i_resume - 1)).nc Xoutyearly4pem_Y1.nc
    535             cp diags/Xoutdaily4pem${i_resume}.nc Xoutdaily4pem_Y2.nc
    536             cp diags/Xoutyearly4pem${i_resume}.nc Xoutyearly4pem_Y2.nc
     533            cp diags/xoutdaily4pem$(($i_resume - 1)).nc xoutdaily4pem_y1.nc
     534            cp diags/xoutyearly4pem$(($i_resume - 1)).nc xoutyearly4pem_y1.nc
     535            cp diags/xoutdaily4pem${i_resume}.nc xoutdaily4pem_y2.nc
     536            cp diags/xoutyearly4pem${i_resume}.nc xoutyearly4pem_y2.nc
    537537            submit_pem_phase $1 # The next job is a PEM run
    538538        else
     
    554554        cp starts/restartevo$(($i_pem_run - 1)).nc startevo.nc
    555555        if [ $il -eq $(($n_pcm_runs - 1)) ]; then # Second to last PCM run
    556             cp diags/Xoutdaily4pem${i_resume}.nc Xoutdaily4pem_Y1.nc
    557             cp diags/Xoutyearly4pem${i_resume}.nc Xoutyearly4pem_Y1.nc
     556            cp diags/xoutdaily4pem${i_resume}.nc xoutdaily4pem_y1.nc
     557            cp diags/xoutyearly4pem${i_resume}.nc xoutyearly4pem_y1.nc
    558558            submit_cycle $1 $n_pcm_runs $(($il + 1))
    559559        elif [ $il -eq $n_pcm_runs ]; then # Last PCM run so the next job is a PEM run
    560             cp diags/Xoutdaily4pem$(($i_resume - 1)).nc Xoutdaily4pem_Y1.nc
    561             cp diags/Xoutyearly4pem$(($i_resume - 1)).nc Xoutyearly4pem_Y1.nc
    562             cp diags/Xoutdaily4pem${i_resume}.nc Xoutdaily4pem_Y2.nc
    563             cp diags/Xoutyearly4pem${i_resume}.nc Xoutyearly4pem_Y2.nc
     560            cp diags/xoutdaily4pem$(($i_resume - 1)).nc xoutdaily4pem_y1.nc
     561            cp diags/xoutyearly4pem$(($i_resume - 1)).nc xoutyearly4pem_y1.nc
     562            cp diags/xoutdaily4pem${i_resume}.nc xoutdaily4pem_y2.nc
     563            cp diags/xoutyearly4pem${i_resume}.nc xoutyearly4pem_y2.nc
    564564            submit_pem_phase $1
    565565        else
     
    582582    cleanup starts/restart .nc $(($i_pcm_run - 1))
    583583    cleanup starts/restartfi .nc $(($i_pcm_run - 1))
    584     cleanup diags/Xoutdaily4pem .nc $(($i_pcm_run - 1))
    585     cleanup diags/Xoutyearly4pem .nc $(($i_pcm_run - 1))
     584    cleanup diags/xoutdaily4pem .nc $(($i_pcm_run - 1))
     585    cleanup diags/xoutyearly4pem .nc $(($i_pcm_run - 1))
    586586    cleanup diags/diagevo .nc $i_resume
    587587    cleanup diags/diagevo_soil .nc $i_resume
Note: See TracChangeset for help on using the changeset viewer.