#!/bin/csh
set echo
#
# --- generate 2-d equal ocean processor partitions
#
#cd /hycom/GOMl0.08/topo/partit
#
ln -s ../regional.grid.BB86.1km.a regional.grid.a
ln -s ../regional.grid.BB86.1km.b regional.grid.b

setenv T 01 ## topography version
#
setenv FOR051  ../depth_BB86_${T}_1km.b
setenv FOR051A ../depth_BB86_${T}_1km.a
#
# --- 016:
#
setenv n  -28 ## number of proc in the x direction
setenv m  -28 ## number of proc in the y direction
setenv nm `echo $n $m | awk '{printf("%3.3d\n",$1*$2)}'`
echo "$n $m  0.75" | /Net/yucatan/abozec/PACIFIC/HYCOM/hycom/HYCOM-tools/topo/src/partit

## next 2 lines requires xbathy.pal
/Net/yucatan/abozec/PACIFIC/HYCOM/hycom/HYCOM-tools/topo/src/topo_ppm
mv fort.31 topo.ppm

mv fort.21 depth_BB86_${T}_1km.$nm
