https://github.com/geodynamics/citcoms
Revision 79f2f38675d0974e97501e2f43052dd3bbf7582b authored by Vlad Manea on 30 March 2005, 10:27:51 UTC, committed by Vlad Manea on 30 March 2005, 10:27:51 UTC
1 parent 97e5139
Raw File
Tip revision: 79f2f38675d0974e97501e2f43052dd3bbf7582b authored by Vlad Manea on 30 March 2005, 10:27:51 UTC
*** empty log message ***
Tip revision: 79f2f38
pasteCitcomData.sh
#!/bin/sh
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# <LicenseText>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Gather Citcom data (coordinate, velocity, temperature, viscosity) of current
# processor into a single file.

if [ -z $3 ]; then
    echo "  usage:" `basename $0` modelname processor_no time_step
    exit
fi

line=`cat $1.velo.$2.$3 | wc -l`
let line=line-1
#echo $line

tail -$line $1.velo.$2.$3 | paste -d' ' $1.coord.$2 - $1.visc.$2.$3 > $1.$2.$3


# version
# $Id: pasteCitcomData.sh,v 1.2 2004/02/05 00:46:37 tan2 Exp $

# End of file
back to top