Changeset 3567 for trunk/LMDZ.PLUTO/util


Ignore:
Timestamp:
Dec 19, 2024, 3:47:51 PM (4 days ago)
Author:
afalco
Message:

startarchi2icosa: simplified slightly process. dynamico start.nc and startfi.nc can be found in icosa_start/ folder now.
AF

Location:
trunk/LMDZ.PLUTO/util/startarchive2icosa
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/util/startarchive2icosa/compile

    r3545 r3567  
    11#!/usr/bin/bash
    22
    3 LMDZ=${LMDZ:-../../..} # change to your LMDZ install dir
     3# change to your LMDZ install dir or set "export LMDZ=/path/lmdz" in your .bashrc
     4LMDZ=${LMDZ:-../../..}
    45
    56source $LMDZ/XIOS/arch.env
    67source $LMDZ/XIOS/arch.path
    78
    8 mpif90 -g -traceback start_archive2icosa.f90 \
     9FLAGS="-g -traceback"
     10FLAGS=
     11
     12mpif90 $FLAGS start_archive2icosa.f90 \
    913$NETCDF_INCDIR $NETCDF_LIBDIR $NETCDF_LIB \
    1014$HDF5_INCDIR $HDF5_LIBDIR $HDF5_LIB \
     
    1317-o start_archive2icosa.e
    1418
    15 mpif90 -g -traceback rearrange_startphy.f90 \
     19mpif90 $FLAGS rearrange_startphy.f90 \
    1620$NETCDF_INCDIR $NETCDF_LIBDIR $NETCDF_LIB \
    1721$HDF5_INCDIR $HDF5_LIBDIR $HDF5_LIB \
     
    2024-o rearrange_startphy.e
    2125
    22 #mpif90 -g -traceback rearrange_startphy_tsurf_cst.f90 \
     26#mpif90 $FLAGS rearrange_startphy_tsurf_cst.f90 \
    2327#$NETCDF_INCDIR $NETCDF_LIBDIR $NETCDF_LIB \
    2428#$HDF5_INCDIR $HDF5_LIBDIR $HDF5_LIB \
  • trunk/LMDZ.PLUTO/util/startarchive2icosa/icosa_finalize.bash

    r3545 r3567  
    77# load nco module
    88module purge
    9 LMDZ=${LMDZ:-../trunk/}  #You have to adapt to your own path, can be in your bashrc
     9# change to your LMDZ install dir or set "export LMDZ=/path/lmdz" in your .bashrc
     10LMDZ=${LMDZ:-../../..}
    1011source $LMDZ/XIOS/arch.env
    1112#module load nco/4.7.9-gcc-4.8.5-hdf5-1.8.18-openmpi-2.0.4 #Example of version of the module needed
    1213module load nco
     14
     15# save start*nc from lmdz grid
     16mkdir -p lmdz_starts
     17cp start.nc startfi.nc lmdz_starts
    1318
    1419#conversion to netcdf 3 in order to rename and add variables, not properly done with netcdf4 files
     
    5863# cleanup
    5964rm -rf startphy_icosa_nc3.nc startphy_nc3.nc
     65
     66# copy icosa start files in icosa_starts folder
     67mkdir -p icosa_starts
     68mv start_icosa.nc icosa_starts/start.nc
     69mv startfi.nc icosa_starts/startfi.nc
     70
     71# get back start files from lmdz grid
     72cp lmdz_starts/* .
  • trunk/LMDZ.PLUTO/util/startarchive2icosa/job_start_archive_2icosa

    r3545 r3567  
    1010#SBATCH --output %x.%j.out
    1111
    12 arch=ifort_MESOIPSL
     12arch=${ARCH:-ifort_MESOIPSL}
    1313source $HOME/lmdz/LMDZ.COMMON/arch/arch-$arch.env
    1414
Note: See TracChangeset for help on using the changeset viewer.