Commit b4d937a1 authored by Pierre-Antoine Bretonnière's avatar Pierre-Antoine Bretonnière
Browse files

Merge branch 'develop-debug-mask' into 'master'

Develop debug mask

Sorted out the problem: not creating symbolic links with the masks, because they already existed, however the mask could have changed along the time and the symbolic link must be remade to a new file. The solution --> Now it copies the mask and overwrites it if it already exists.

@pabretonniere @eexarchou

See merge request !15
parents 30467c67 563379cd
......@@ -59,10 +59,10 @@
# Link constant file for co #
###############################################################################
[[ ! -f mesh_hgr.nc ]] && ln -sf ${CON_FILES}/mesh_mask_nemo.${NEMOVERSION}.nc mesh_hgr.nc
[[ ! -f mesh_zgr.nc ]] && ln -sf ${CON_FILES}/mesh_mask_nemo.${NEMOVERSION}.nc mesh_zgr.nc
[[ ! -f mask.nc ]] && ln -sf ${CON_FILES}/mesh_mask_nemo.${NEMOVERSION}.nc mask.nc
[[ ! -f new_maskglo.nc ]] && ln -sf ${CON_FILES}/new_maskglo.${NEMOVERSION}.nc new_maskglo.nc
cp -f ${CON_FILES}/mesh_mask_nemo.${NEMOVERSION}.nc mesh_hgr.nc
cp -f ${CON_FILES}/mesh_mask_nemo.${NEMOVERSION}.nc mesh_zgr.nc
cp -f ${CON_FILES}/mesh_mask_nemo.${NEMOVERSION}.nc mask.nc
cp -f ${CON_FILES}/new_maskglo.${NEMOVERSION}.nc new_maskglo.nc
if [ -e ${CON_FILES}/mask.regions.${NEMOVERSION}.nc ] ; then
cp ${CON_FILES}/mask.regions.${NEMOVERSION}.nc mask_regions.nc
......@@ -924,7 +924,7 @@ fi
# #
# Created in May 2012 Author : vguemas@ic3.cat #
###############################################################################
module load CDO/1.5.3-foss-2015a
function ohc {
cp ${CON_FILES}/depth.${NEMOVERSION}.txt depth.txt
#
......@@ -1009,6 +1009,9 @@ for jt in $(seq 1 $ntime) ; do
cdfmxl tmpohc.nc mxl.nc
fi
cdfheatc-cfu tmpohc.nc $para $up $down > tmp.log
echo $para
echo $up
echo $down
cat tmp.log
thc=`cat tmp.log | grep "Total Heat content :" | awk '{print $5}'`;
uhc=`cat tmp.log | grep "Total Heat content/volume" | awk '{print $5}'`;
......
......@@ -14,7 +14,7 @@ CON_FILES='/esnas/autosubmit/con_files'
NEMOVERSION=Ec2.3_O1L42
# This lines needs to be replaced by the path were you stored your modifed
# version of common_ocean_post.txt :
source /home/Earth/vguemas/GIT_repositories/ocean_diagnostics/common_ocean_post.txt
source /home/Earth/rcruzgar/ocean_diagnostics/common_ocean_post.txt
# Here we only fetch one random chunk of outputs from i00k :
cp /esnas/exp/ecearth/i00k/19601101/fc0/outputs/MMO_i00k_19601101_fc0_19601101-19610228.tar .
# Here we untar and gunzip these files :
......@@ -36,4 +36,4 @@ rm -f *grid* *icemod*
# This is the final testing line. You need to replace that line by the function
# you want to test (here it is ohc) followed by all its arguments (here we have
# only the input file tmp.nc and the output file tmpout.nc)
ohc tmp.nc tmppout.nc
ohc tmp.nc tmppout.nc 'Glob'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment