Overview
| Comment: | Strip comments (put in by Octave save function) |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
f8ce367af53f3da7c6ac0b9e23cc6854 |
| User & Date: | gawthrop@users.sourceforge.net on 1999-03-15 22:42:52.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
1999-03-15
| ||
| 23:05:29 | A complete rewrite - now puts into a Global matrix MTT_data check-in: 6c5b977e80 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 22:42:52 | Strip comments (put in by Octave save function) check-in: f8ce367af5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 21:57:38 | Removed the # symbol check-in: 5f62b45e0d user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/dat22dat
from [eaeb9d8cae]
to [f2d8ee1f69].
| ︙ | ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Copyright (c) P.J.Gawthrop 1999
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
###############################################################
# Find Nx and Ny
Nx=`grep "MTTNx " <$1_def.r | awk '{print $3}' | sed 's/;//'`
Ny=`grep "MTTNy " <$1_def.r | awk '{print $3}' | sed 's/;//'`
| > > > > < < > > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# Copyright (c) P.J.Gawthrop 1999
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.4 1999/03/15 21:55:36 peterg
## Does away with the # symbol in the file - uses _de to get Nx Ny
## instead
##
###############################################################
# Find Nx and Ny
Nx=`grep "MTTNx " <$1_def.r | awk '{print $3}' | sed 's/;//'`
Ny=`grep "MTTNy " <$1_def.r | awk '{print $3}' | sed 's/;//'`
case $2 in
odeso)
First=1; let Last=$First+$Ny
;;
odes)
First=$Ny+2; let Last=$First+$Nx
;;
*)
First=1; let Last=$Ny+1
;;
esac
echo Creating $1_$2.dat
awk '{
if (index($1,"#") != 1){
for (i=First;i<=Last;i++)
printf("%s ", $i);
printf("\n");
}
}' First=$First Last=$Last <$1_odes.dat2 > $1_$2.dat
|