Last change
on this file since 1677 was
1677,
checked in by aclsce, 12 years ago
|
Imported oasis3 (tag ipslcm5a) from cvs server to svn server (igcmg project).
|
File size:
1.0 KB
|
Line | |
---|
1 | ######################## Command line parameter ############################### |
---|
2 | # |
---|
3 | # Help function |
---|
4 | # |
---|
5 | if [ "$1" = "--" ] || [ "$1" = "help" ] || [ "$1" = "--help" ] ; then |
---|
6 | echo |
---|
7 | echo '----------- Usage -----------------------------------------------' |
---|
8 | echo ' $1=make_target (all/tar/clean; optional)' |
---|
9 | echo ' $2=list_of_libraries (anaisg/anaism/clim/etc.; optional)' |
---|
10 | echo ' $3=message_passing (NONE/MPI1/MPI2; optional)' |
---|
11 | echo ' ' |
---|
12 | echo ' Default active values are:' |
---|
13 | echo ' make_target : '${make_target} |
---|
14 | echo ' list_of_libraries : '${list_of_libraries} |
---|
15 | echo ' message_passing : '${message_passing} |
---|
16 | echo '-----------------------------------------------------------------' |
---|
17 | exit 1 |
---|
18 | fi |
---|
19 | |
---|
20 | # Overwrite with command line parameter if specified |
---|
21 | |
---|
22 | [ "$1" = "" ] || make_target=$1 |
---|
23 | [ "$3" = "" ] || message_passing=$3 |
---|
24 | # |
---|
25 | # if no message passing is specified, only compile the interpolation libraries |
---|
26 | # |
---|
27 | |
---|
28 | if [ ${message_passing} = "NONE" ]; then |
---|
29 | list_of_libraries=" anaisg anaism fscint scrip" |
---|
30 | fi |
---|
31 | |
---|
32 | [ "$2" = "" ] || list_of_libraries=$2 |
---|
33 | |
---|
34 | set -u |
---|
35 | |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.