Revision 8e448b0f43525ab900b169c98efccc3b4600659b authored by Thorsten Becker on 08 August 2007, 22:55:39 UTC, committed by Thorsten Becker on 08 August 2007, 22:55:39 UTC
input. For now, only the tracer innitial conditions can be set by using, for example, ictracer_grd_layers=2 ictracer_grd_file="tmask.grd" for this to work, the ggrd libraries from HC, as well as the -lgmt and -lnetcdf need to be linked, and -DUSE_GGRD needs to be defined on compile time. - rewrote TDEPV viscosity options 3 and 4 slightly to make them more efficient - added TDEPV viscosity option 6 eta = N_0 exp(E(T_0-T) + (1-z) Z_0 ) - took layers subroutine in Construct_arrays.c apart to allow calling the same function in a more flexible from other subroutines - addded error handling routine "myerror" to Pan_problem_misc_functions - made the output behavior of the multigrid solver convergence parameters consisent with verbosity setting (ie. use report instead of always stderr output) - changed tracer input parameter "tracer" and "chemical_buoyancy" to boolean routine for added flexibility (I hope) - made check_initial_composition consistent with tracer advection, exits after warning only for E->trace.itracer_warnings==1 - debugging output in Full_tracer_advection.c and Tracer_setup only gets printed to file for E->control.verbose == 1 - fixed some typos in Output_gzdir (that might have been introduced by asynchronous svn updating or something like that)
1 parent 2f477b3
dxgeneralsurf.sh
#!/bin/sh
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
#<LicenseText>
#
# CitcomS.py by Eh Tan, Eun-seo Choi, and Pururav Thoutireddy.
# Copyright (C) 2002-2005, California Institute of Technology.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#</LicenseText>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Create OpenDX .general file for combined Citcom surf data
#
if [ -z $1 ]; then
echo "usage: " `basename $0` file1 [file2 ...]
exit
fi
for i; do
if [ ! -f $i ]; then
echo file \'$1\' not exist
exit
fi
echo processing $i ...
output=$i.general
grid=`head -n 1 $i | awk '{print $3, $2, $1}'`
echo file = $i > $output
echo grid = $grid >> $output
echo format = ascii >> $output
echo interleaving = field >> $output
echo majority = row >> $output
echo header = lines 1 >> $output
echo field = locations, topography, heatflux, surf_velocity >> $output
echo structure = 2-vector, scalar, scalar, 2-vector >> $output
echo type = float, float, float, float >> $output
echo >> $output
echo end >> $output
done
# version
# $Id$
# End of file
Computing file changes ...