Skip to content

Commit

Permalink
matrix_pdlib - first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMasarik-NOAA committed Jan 31, 2024
1 parent f2081d2 commit 556ac35
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
!regtests/matrix_pdlib
watch3.env
cases
data_regtests
smc_docs/*.pdf
smc_docs/*.pdf
smc_docs/SMCG_TKs/*.ps
ww3_from_ftp.tar.gz
ww3_from_ftp.v6.07.tar.gz
Expand Down Expand Up @@ -133,7 +134,7 @@ regtests/ww3_ufs1.2/input/glo_15mxt.obs
regtests/ww3_ufs1.2/input/gnh_10m.mask
regtests/ww3_ufs1.2/input/gnh_10m.obs
regtests/ww3_ufs1.2/input/gsh_15m.bot
regtests/ww3_ufs1.2/input/gsh_15m.mask
regtests/ww3_ufs1.2/input/gsh_15m.mask
regtests/ww3_ufs1.2/input/gsh_15m.obs
regtests/ww3_ufs1.2/input/gnh_10m.bot
regtests/ww3_ufs1.2/input/gsh_15m.mask
Expand Down
24 changes: 12 additions & 12 deletions regtests/ww3_repro/matrix_pdlib → regtests/matrix_pdlib
Original file line number Diff line number Diff line change
Expand Up @@ -49,36 +49,36 @@
echo ' **********************************************'
echo ' '

cd $REGDIR

# Block Explicit (grid b)
# Grid: pdlib
grid='pdlib'
rst_dt='20100801.030000'
rst_03=${rst_dt}.restart.ww3


cd $REGDIR

# N PROC
# ------
echo -e "\nnproc: $nproc"
cp -v ww3_ufs1.1/input_unstr/ww3_shel.inp.start ww3_ufs1.1/input_unstr/ww3_shel.inp
cp -v ww3_repro/input/ww3_shel.inp.start ww3_repro/input/ww3_shel.inp
run_pdlib_ascii $nproc $grid

# M PROC
# ------
echo -e "\nmproc: $mproc"
mkdir -p ww3_ufs1.1/work_${mproc}
cp -v ww3_ufs1.1/work_${nproc}/20210401.030000.restart.ww3 ww3_ufs1.1/work_${mproc}/restart.ww3
cp -v ww3_ufs1.1/input_unstr/ww3_shel.inp.restart ww3_ufs1.1/input_unstr/ww3_shel.inp
mkdir -p ww3_repro/work_${mproc}
cp -v ww3_repro/work_${nproc}/${rst_03} ww3_repro/work_${mproc}/restart.ww3
cp -v ww3_repro/input/ww3_shel.inp.restart ww3_repro/input/ww3_shel.inp
run_pdlib_ascii $mproc $grid

# compare NPROC v. MPROC
# ----------------------
./bin/test.comp ww3_ufs1.1 work_${nproc} work_${mproc}


echo "done running."
./bin/test.comp ww3_repro work_${nproc} work_${mproc}

[[ -d ${path_build_root} ]] && rm -rf ${path_build_root}*
echo "done running."
echo ' '
echo ' **************************************************************'
echo ' * end of WAVEWATCH III matrix10 of regression tests *'
echo ' * end WAVEWATCH III - PDLIB small mesh *'
echo ' **************************************************************'
echo ' '

0 comments on commit 556ac35

Please sign in to comment.