Skip to content

The script here is questionable #99

@weiyuan-jiang

Description

@weiyuan-jiang

This script seems a copy from upper air. But I think it is incorrect and may do one more remapping. I am checking . @mathomp4 @biljanaorescanin

"""
source {Bin}/g5_modules
limit stacksize unlimited
cd {out_dir}/upper_data
/bin/touch input.nml
# The MERRA fvcore_internal_restarts don't include W or DZ, but we can add them by setting
# HYDROSTATIC = 0 which means HYDROSTATIC = FALSE
if ($?I_MPI_ROOT) then
# intel scaling suggestions
#--------------------------
setenv I_MPI_ADJUST_ALLREDUCE 12
setenv I_MPI_ADJUST_GATHERV 3
setenv I_MPI_SHM_HEAP_VSIZE 512
setenv PSM2_MEMORY large
setenv I_MPI_EXTRA_FILESYSTEM 1
setenv I_MPI_EXTRA_FILESYSTEM_FORCE gpfs
setenv ROMIO_FSTYPE_FORCE "gpfs:"
endif
set infiles = ()
set outfils = ()
foreach infile ( *_restart_in )
if ( $infile == fvcore_internal_restart_in ) continue
if ( $infile == moist_internal_restart_in ) continue
set infiles = ( $infiles $infile )
set outfil = `echo $infile | sed "s/restart_in/rst_out/"`
set outfils = ($outfils $outfil)
end
set interp_restartsX = {Bin}/interp_restarts.x
if ( $#infiles ) then
set ioflag = "-input_files $infiles -output_files $outfils"
set ftype = `file -Lb --mime-type fvcore_internal_restart_in`
if ($ftype =~ *stream*) then
set interp_restartsX = {Bin}/interp_restarts_bin.x
endif
else
set ioflag = ""
endif
set drymassFLG = {drymassFLG}
if ($drymassFLG) then
set dmflag = ""
else
set dmflag = "-scalers F"
endif
{Bin}/esma_mpirun -np {NPE} $interp_restartsX -im {imout} -lm {nlevel} \\
-do_hydro {hydrostatic} $ioflag $dmflag -nwriter {nwrit} {stretch_str}
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions