New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
get_hpc_results in vendors/fcm/current/test – NEMO

source: vendors/fcm/current/test/get_hpc_results @ 1977

Last change on this file since 1977 was 1977, checked in by flavoni, 14 years ago

importing fcm vendor

File size: 746 bytes
Line 
1#!/bin/ksh
2
3while getopts ":ch" opt
4do
5  case $opt in
6    c ) COPY=true ;;
7    h ) HELP=true ;;
8    \? ) echo "Invalid option"
9        HELP=true
10        break ;;
11  esac
12done
13if [[ $# != $(($OPTIND - 1)) ]]; then
14  echo "Invalid argument"
15  HELP=true
16fi
17
18if [[ $HELP == true ]]; then
19 echo 'Usage: get_hpc_results [options]'
20 echo 'Valid options:'
21 echo '-c'
22 echo '   Mirror the full test directory from the HPC'
23 echo '-h'
24 echo '   Print this help message'
25 exit 1
26fi
27
28export HPC=hpc1e
29ssh $HPC "cd fcm_test_suite; ./report_hpc_results" | tee $LOCALTEMP/fcm_test_suite/hpc.summary
30
31if [[ $COPY == true ]]; then
32  echo "Mirroring results from HPC ..."
33  rsync -a --delete --rsh="ssh" $HPC:fcm_test_suite/ $LOCALTEMP/fcm_test_suite/hpc_mirror
34fi
Note: See TracBrowser for help on using the repository browser.