Last change
on this file since 5501 was
5501,
checked in by aclsce, 4 years ago
|
First import of IPSLCM6.5_work_ENSEMBLES working configuration
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | #set -x |
---|
3 | set -o posix |
---|
4 | #set -u |
---|
5 | #set -e |
---|
6 | #+ |
---|
7 | # |
---|
8 | # ================== |
---|
9 | # Flist_archfile.sh |
---|
10 | # ================== |
---|
11 | # |
---|
12 | # -------------------------- |
---|
13 | # Check the compilation file |
---|
14 | # -------------------------- |
---|
15 | # |
---|
16 | # SYNOPSIS |
---|
17 | # ======== |
---|
18 | # |
---|
19 | # :: |
---|
20 | # |
---|
21 | # $ Flist_archfile.sh Institute |
---|
22 | # |
---|
23 | # |
---|
24 | # DESCRIPTION |
---|
25 | # =========== |
---|
26 | # |
---|
27 | # |
---|
28 | # List arch file available. |
---|
29 | # The first line of each file in NEMO/arch directory is echoed. |
---|
30 | # |
---|
31 | # |
---|
32 | # EXAMPLES |
---|
33 | # ======== |
---|
34 | # |
---|
35 | # :: |
---|
36 | # |
---|
37 | # $ ./Flist_archfile.sh |
---|
38 | # |
---|
39 | # $ ./Flist_archfile.sh CNRS |
---|
40 | # |
---|
41 | # TODO |
---|
42 | # ==== |
---|
43 | # |
---|
44 | # option debug |
---|
45 | # |
---|
46 | # |
---|
47 | # EVOLUTIONS |
---|
48 | # ========== |
---|
49 | # |
---|
50 | # $Id: Flist_archfile.sh 9651 2018-05-28 06:47:14Z nicolasmartin $ |
---|
51 | # |
---|
52 | # |
---|
53 | # |
---|
54 | # * creation |
---|
55 | # |
---|
56 | #- |
---|
57 | |
---|
58 | archfile_loop() { |
---|
59 | |
---|
60 | for file in $( ls $1/*.fcm ); do |
---|
61 | zvar1=$( basename $file | sed 's/arch-\(.*\).fcm/\1/' ) |
---|
62 | zvar2=$( head -1 $file | tr -d '#' ) |
---|
63 | printf "%-30s %-s\n" ${zvar1} "${zvar2}" |
---|
64 | done |
---|
65 | |
---|
66 | } |
---|
67 | |
---|
68 | echo -e "\n € Generic computing architectures" |
---|
69 | |
---|
70 | archfile_loop ${MAIN_DIR}/arch |
---|
71 | |
---|
72 | for dir in $( ls ${MAIN_DIR}/arch | grep -v "fcm$" ); do |
---|
73 | echo -e "\n € Specific HPC architectures for "${dir} |
---|
74 | archfile_loop ${MAIN_DIR}/arch/$dir |
---|
75 | done |
---|
76 | |
---|
77 | echo |
---|
Note: See
TracBrowser
for help on using the repository browser.