Last change
on this file since 2294 was
229,
checked in by lfita, 10 years ago
|
Fixing issue on the point and even saying that it is in C/python-like style
|
-
Property svn:executable set to
*
|
File size:
525 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | ## g.e. # lmdz_point.bash 99 32 32 |
---|
3 | if test $1 = '-h'; then |
---|
4 | echo "*********************************" |
---|
5 | echo "*** Shell to know to which 2D ***" |
---|
6 | echo "*** coordinates corresponds a ***" |
---|
7 | echo "*** LMDZ grid point ***" |
---|
8 | echo "*********************************" |
---|
9 | echo "lmdz_point.bash [LMDZpoint] [dimx] [dimy]" |
---|
10 | else |
---|
11 | rootsh=`pwd` |
---|
12 | LMDZpoint=$1 |
---|
13 | dimx=$2 |
---|
14 | dimy=$3 |
---|
15 | y=`expr ${LMDZpoint} / ${dimx}` |
---|
16 | x=`expr ${LMDZpoint} - ${y} '*' ${dimx} - 1` |
---|
17 | echo "2D point (C/python-like): "${x}","${y} |
---|
18 | |
---|
19 | fi |
---|
20 | |
---|
Note: See
TracBrowser
for help on using the repository browser.