#!/bin/csh -f

tar -xvf mb.tar
set rootdir = ( `pwd` )
#
# Set up the global ocean + ice component.
# Check it builds in single component mode first.
#
cd $rootdir
cd tutorial_examples
cd global_ocean.128x64x15
cd run
\rm -f Makefile
ln -s ../input/* .
../../../tools/genmake -mpi -mods=../code
make depend
make

#
# Set up the global atmosphere component
# Check it builds in single component mode first.
#
cd $rootdir
cd tutorial_examples
cd aim_5l.LatLon
cd run
\rm -f Makefile
ln -s ../input/* .
../../../tools/genmake -mpi -mods=../code
make depend
make

#
# Build the coupler setup
#
#
cd $rootdir
cd tutorial_examples
cd aim.5l_LatLon+global_ocean.128x64x15
cd run
\rm -f Makefile
ln -s ../input/* .
../../../tools/genmake -mpi -mods=../code
make depend
make




