/[MITgcm]/MITgcm/verification/testreport
ViewVC logotype

Diff of /MITgcm/verification/testreport

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.109 by jmc, Thu Dec 13 18:28:41 2007 UTC revision 1.112 by jmc, Sat Feb 9 18:30:25 2008 UTC
# Line 74  build_mpack() Line 74  build_mpack()
74              echo              echo
75              HAVE_MPACK=f              HAVE_MPACK=f
76          fi          fi
         printf "building mpack...  "  
77          if test "x$CC" = x ; then          if test "x$CC" = x ; then
78              export CC=cc              export CC=cc
79          fi          fi
80            printf "building mpack (using CC=$CC)...  "
81          ( cd $MPACKDIR && ./configure && $MAKE ) > tr_build_mpack.out 2>&1          ( cd $MPACKDIR && ./configure && $MAKE ) > tr_build_mpack.out 2>&1
82          RETVAL=$?          RETVAL=$?
83          if test "x$RETVAL" != x0 ; then          if test "x$RETVAL" != x0 ; then
# Line 88  build_mpack() Line 88  build_mpack()
88          else          else
89              rm -f tr_build_mpack.out              rm -f tr_build_mpack.out
90              HAVE_MPACK=t              HAVE_MPACK=t
91                echo "OK"
92          fi          fi
93      else      else
94          HAVE_MPACK=t          HAVE_MPACK=t
95            echo "done"
96      fi      fi
     echo "OK"  
97  }  }
98    
99  testoutput_var()  testoutput_var()
# Line 474  symlink_mpifiles() Line 475  symlink_mpifiles()
475      CODE_DIR=$dir/$code_dir      CODE_DIR=$dir/$code_dir
476            
477      # These are files that should replace their counter-part when using -mpi      # These are files that should replace their counter-part when using -mpi
478      MPI_FILES=`(cd $CODE_DIR; find . -name "*_mpi")`      MPI_FILES=`(cd $CODE_DIR; find . -name "*_mpi" -print)`
479    
480      #  Is this an MPI run?      #  Is this an MPI run?
481      if test "x$MPI" = xt ; then      if test "x$MPI" = xt ; then
# Line 625  createcodelet() Line 626  createcodelet()
626  {  {
627      # create codelet for comparing model output      # create codelet for comparing model output
628    
629      printf "creating the comparison code...  "      printf "creating the comparison code (using CC=$CC)...  "
630      cat > tr_cmpnum.c <<EOF      cat > tr_cmpnum.c <<EOF
631  #include <stdio.h>  #include <stdio.h>
632  #include <math.h>  #include <math.h>
# Line 978  fi Line 979  fi
979  #  create the FORTRAN comparison code  #  create the FORTRAN comparison code
980  createcodelet  createcodelet
981    
982  #  build the mpack utility  #  build the mpack utility (if ADDRESSES = NONE, do it to test the build)
983  if test "x$ADDRESSES" = xNONE -o "x$ADDRESSES" = x ; then  if test "x$ADDRESSES" = x ; then
984      echo "skipping mpack build"      echo "skipping mpack build"
985  else  else
986      build_mpack      build_mpack
987  fi  fi
988    
989  #  Create a uniquely named directory to store results  #  Create a uniquely named directory to store results
990    CMDLINE=$0
991    for xx in "$@" ; do CMDLINE="$CMDLINE '$xx'" ; done
992  MACH=`hostname`  MACH=`hostname`
993  UNAMEA=`uname -a`  UNAMEA=`uname -a`
994  DATE=`date +%Y%m%d`  DATE=`date +%Y%m%d`
# Line 1006  if test "x$RETVAL" != x0 ; then Line 1009  if test "x$RETVAL" != x0 ; then
1009      exit 1      exit 1
1010  fi  fi
1011  SUMMARY="$DRESULTS/summary.txt"  SUMMARY="$DRESULTS/summary.txt"
 printf "Start time:  " >> $SUMMARY  
1012  start_date=`date`  start_date=`date`
1013  echo $start_date > $SUMMARY  echo $start_date > $SUMMARY
1014    echo 'run:' $CMDLINE >> $SUMMARY
1015    echo 'on :' $UNAMEA  >> $SUMMARY
1016    
1017  of_path=  of_path=
1018  if test "x$OPTFILE" != xNONE ; then  if test "x$OPTFILE" != xNONE ; then

Legend:
Removed from v.1.109  
changed lines
  Added in v.1.112

  ViewVC Help
Powered by ViewVC 1.1.22