Ignore:
Timestamp:
Oct 16, 2023, 10:31:19 AM (14 months ago)
Author:
jbclement
Message:

PEM:

  • Addition of the bash script "concat_diagpem.sh" in deftank to concatenate all the "diagpem.nc" outputs into one file;
  • Addition of "writediagpem_mod.F90" inspired by the subroutine "writediagfi.F" in phymars/;
  • Renaming of PEM outputs ('startfi_PEM' -> 'startpem' and 'diagfi' -> 'diagpem');
  • Gathering of all "diagpem.nc" outputs at the same place at the end of the main PEM loop;
  • Update of "launch_pem.sh", "README" and "modify_startfi_orbit.sh" in the deftank.

JBC

Location:
trunk/LMDZ.MARS/deftank/pem
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/deftank/pem/README

    r3038 r3088  
    2323  Bash script file to modify orbital parameters in the file "startfi.nc" (obliquity, eccentricity, Ls perihelion and possibly initial Ls). They should be consistent with Laskar data in "obl_ecc_lsp.asc" to start the chained simulation.
    2424
     25# concat_diagpem.sh:
     26  Bash script file to concatenate along the variable 'Time' all the "diagfi.nc" files of the PEM into one NetCDF file. 'Time' is reindexed with the numbering of Martian years simulated by the PEM.
     27
    2528Note:
    2629  To run the chained simulation, be careful to have:
  • trunk/LMDZ.MARS/deftank/pem/launch_pem.sh

    r3076 r3088  
    179179    # Copy data files and prepare the next run
    180180    mv out_runPEM${iPEM} out_PEM/run${iPEM}
    181     mv diagfi.nc diags/diagfi_PEM${iPEM}.nc
    182     cp restartfi_PEM.nc starts/startfi_PEM${iPEM}.nc
    183     mv restartfi_PEM.nc startfi_PEM.nc
     181    mv diagpem.nc diags/diagpem_${iPEM}.nc
     182    cp restartpem.nc starts/startpem_${iPEM}.nc
     183    mv restartpem.nc startpem.nc
    184184    cp restartfi_evol.nc starts/startfi_postPEM${iPEM}.nc
    185185    mv restartfi_evol.nc startfi.nc
  • trunk/LMDZ.MARS/deftank/pem/modify_startfi_orbit.sh

    r3046 r3088  
    11#!/bin/bash
     2######################################################################
     3### Script to modify the orbital parameters of a file "startfi.nc" ###
     4######################################################################
    25
    3 # Bash script to modify the orbital parameters of a file "startfi.nc"
     6#Name of the file to be modified
    47name_file="startfi.nc"
    58
     9# New values for the orbital parameters
    610new_obl=25.18941689
    711new_ecc=0.09340902
     
    4953         -s "controle(16)=$peri_day" \
    5054         -s "controle(2)=$new_inisol" \
    51          $name_file $name_file.temp
    52 
    53 # Rename the temporary file back to the original filename
    54 mv $name_file.temp $name_file
     55         $name_file $name_file
    5556
    5657echo "In \"$name_file\":"
Note: See TracChangeset for help on using the changeset viewer.