Here are some changes I had to made to run in bluevista and blueice

  • comp2.sh; in ncar machine, dimenstion of variabiles has to be the same as declared. # if it was decleared as 2 dimension variable, it cannot be used as a 1 dim. var, as I was able to do this in COMPAS.
#!/bin/ksh
cd /ptmp/hyseo/SCOAR/Lib/codes
#######################
# example from Sidd at NCAR
#xlf95 -qrealsize=8 -I/usr/local/netcdf/include update_forc.f -L/usr/local/lib -lnetcdf
#
#Hi Hyodae, In bluevista:/ptmp/sghosh/hyseo I cut-pasted your code and kept a 2-line compilation
command file: /ptmp/sghosh/hyseo/compile which I used to compile. By default it will compile for
64-bits. In principle you can compile in 32-bits which we discourage strongly because we do not h
ave amny support utils built for 32-bits. If you have any problems with 64-bits then please get b
ack to us, we will rather prefer to migrate you into 64-bits as that is where our civilization mo
ving! Thanks and with warm regards, --Sidd
########################
##October 4, 2007
##Hyodae
 
# NOTE: in ncar machine, dimenstion of variabiles has to be the same as declared.
# if it was decleared as 2 dimension variable, it cannot be used as a 1 dim. var, as I was able t
o do this in COMPAS.
 
FORT=xlf95
FORT_FLAGS='-qrealsize=8'
 
NETCDF_INCDIR=/usr/local/netcdf/include
NETCDF_LIBDIR=/usr/local/netcdf/lib
 
# add new files here
# Rsm2Roms
#calculate_flux.f,calculate_flux_bulk.f,calculate_flux_bulk_longout.f
#fillnan.f,fill999.f,fillbad.f,gridinterp.f90,tiling.f
#badnegative_cloud.f,badnegative_qair.f,update_forc.f
# prepareROMS
#update_init4D.f,update_init3D.f
#
## Roms2Rsm
#read_sst.f,tile_average.f,
#land2zero.f,create_sst_ieee.f,create_sst_ieee.t0.f
#
## summary_4Dto3D.sh
#create_summaryavg3Dr.f,create_summaryavg3Du.f,create_summaryavg3Dv.f
#avg_4Dto3D.f
#
## summary4D.sh
#create_summaryavg4Du.f,create_summaryavg4Dv.f,create_summaryavg4Dr.f
#avg_summary4D.f
#
##summary3D.sh
#avg_summary3D.f
#
##uauo.sh
#uauo.f
#
## not used anymore
#misc.f,create_roms_clim3hr.f,bin2asc.f,create_rsm_clim3hr.f,roms_clim3hr.f,rsm_clim3hr.f
 
#THE FOLLOWING CODES ARE NOTE COMPILED IN NCAR MACHINE!!
# OCT,4, 2007
#fillnan.f fill999.f fillbad.f gridinterp.f90 uauo.f misc.f create_roms_clim3hr.f
#bin2asc.f create_rsm_clim3hr.f,roms_clim3hr.f,rsm_clim3hr.f
 
suffix=f
# RSM2ROMS
for filename in calculate_flux calculate_flux_bulk calculate_flux_bulk_longout tiling badnegative
_cloud badnegative_qair update_forc
do
$FORT $FORT_FLAGS -I$NETCDF_INCDIR $filename.$suffix -L$NETCDF_LIBDIR -lnetcdf -o  $filename.x
done
 
# PREPARE ROMS
for filename in update_init4D update_init3D
do
echo "compiling $filename"
$FORT $FORT_FLAGS -I$NETCDF_INCDIR $filename.$suffix -L$NETCDF_LIBDIR -lnetcdf -o  $filename.x
done
 
# ROMS2RSM
for filename in read_sst tile_average land2zero create_sst_ieee create_sst_ieee.t0
do
echo "compiling $filename."
$FORT $FORT_FLAGS -I$NETCDF_INCDIR $filename.$suffix -L$NETCDF_LIBDIR -lnetcdf -o  $filename.x
done
 
#SUMMARY AND MISC
for filename in create_summaryavg3Dr create_summaryavg3Du create_summaryavg3Dv avg_4Dto3D create_
summaryavg4Du create_summaryavg4Dv create_summaryavg4Dr avg_summary4D avg_summary3D
do
echo "compiling $filename."
$FORT $FORT_FLAGS -I$NETCDF_INCDIR $filename.$suffix -L$NETCDF_LIBDIR -lnetcdf -o  $filename.x
done
 
#rm /ptmp/hyseo/SCOAR/Lib/exec/Coupler/*.x  2>/dev/null
cp *.x  /ptmp/hyseo/SCOAR/Lib/exec/Coupler || exit 8
rm -f *.x 2>/dev/null
rm -f *.o 2>/dev/null
if [ $? -eq 0 ]; then
echo "compiled and copied exectuables"
else
echo " compile failed!"
fi
 
  • 2. calculate_flux.f,calculate_flux_bulk.f,calculate_flux_bulk_longout.f
change real --> real*4
eg.
      real, dimension(:,:), allocatable :: u101, v101
 -->
      real*4, dimension(:,:), allocatable :: u101, v101
 

  • changed comp2.sh
#!/bin/ksh
cd /ptmp/hyseo/SCOAR/Lib/codes
#######################
# example from Sidd at NC
  • change shell to ksh

  • ln -fsv doesn't work in Roms2Rsm.sh
    change to ln -fs.