Last change
on this file since 914 was
727,
checked in by dubos, 6 years ago
|
testing : compare output to reference outputs
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[501] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | function build_dynamico() |
---|
| 4 | { |
---|
| 5 | NAME=$1 ; shift |
---|
[547] | 6 | BUILD=$ROOT/build_$NAME |
---|
[501] | 7 | LOGFILE=$ROOT/logs/dynamico_${NAME}.log |
---|
[547] | 8 | cd $ROOT/build_$NAME |
---|
[501] | 9 | echo "In $PWD : building DYNAMICO with options $*" |
---|
| 10 | echo "Watch logfile $LOGFILE" |
---|
| 11 | # ./make_icosa -full -arch $arch -job $job $* > $LOGFILE 2>&1 || ( tail $LOGFILE ; exit 1 ) |
---|
| 12 | ./make_icosa -arch $arch -job $job $* > $LOGFILE 2>&1 || ( tail $LOGFILE ; exit 1 ) |
---|
| 13 | cp -pr $BUILD/bin/icosa_gcm.exe $ROOT/bin/icosa_$NAME.exe |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | function main() |
---|
| 17 | { |
---|
| 18 | LOGFILE=$ROOT/logs/build_xios.log |
---|
[727] | 19 | cd -P $ROOT/XIOS |
---|
[501] | 20 | echo "In $PWD : Building XIOS" |
---|
[702] | 21 | echo "./make_xios --arch $arch $other_XIOS --job $job" |
---|
[501] | 22 | echo "Watch logfile $LOGFILE" |
---|
[702] | 23 | ./make_xios --arch $arch $other_XIOS --job $job > $LOGFILE 2>&1 || ( tail $LOGFILE ; exit 1 ) |
---|
[501] | 24 | cd $ROOT |
---|
| 25 | # compile all variants in parallel |
---|
[547] | 26 | # build_dynamico serial -parallel none $FULL & |
---|
| 27 | build_dynamico mpi -parallel mpi -with_xios $other $FULL & |
---|
| 28 | build_dynamico mpi_omp -parallel mpi_omp -with_xios $other $FULL & |
---|
[501] | 29 | wait |
---|
| 30 | # check success |
---|
[547] | 31 | # ls bin/icosa_serial.exe || exit 1 |
---|
[501] | 32 | ls bin/icosa_mpi.exe || exit 1 |
---|
| 33 | ls bin/icosa_mpi_omp.exe || exit 1 |
---|
| 34 | } |
---|
| 35 | |
---|
[506] | 36 | FULL=$1 |
---|
[501] | 37 | source current_args |
---|
| 38 | rm -rf bin logs |
---|
| 39 | mkdir bin logs |
---|
[506] | 40 | ( main ) || ( echo ; echo "***************** Build FAILED ******************" ) |
---|
[501] | 41 | |
---|
[506] | 42 | echo |
---|
[501] | 43 | echo "You may now run create_runs.sh" |
---|
Note: See
TracBrowser
for help on using the repository browser.