/[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.9.2.4 by edhill, Fri Oct 3 05:12:18 2003 UTC revision 1.9.2.5 by edhill, Fri Oct 3 16:03:00 2003 UTC
# Line 606  for OPTFILE in $OPTFILES ; do Line 606  for OPTFILE in $OPTFILES ; do
606              continue              continue
607          fi          fi
608    
         #  Is this an MPI run?  
         if test "x$MPI" = xt ; then  
             if test ! -r $dir"/code/CPP_EEOPTIONS.h_mpi" -o ! -r $dir"/code/SIZE.h_mpi" ; then  
                 echo | tee -a $SUMMARY  
                 echo "can't read \"$dir/code/CPP_EEOPTIONS.h_mpi\" or \"$dir/code/SIZE.h_mpi\"" \  
                     | tee -a $SUMMARY  
                 continue  
             else  
                 cmp $dir"/code/CPP_EEOPTIONS.h_mpi" $dir"/code/CPP_EEOPTIONS.h"  
                 RETVAL=$?  
                 if test "x$RETVAL" != x0 ; then  
                     cp $dir"/code/CPP_EEOPTIONS.h_mpi" $dir"/code/CPP_EEOPTIONS.h"  
                 fi  
                 cmp $dir"/code/SIZE.h_mpi" $dir"/code/SIZE.h"  
                 RETVAL=$?  
                 if test "x$RETVAL" != x0 ; then  
                     cp $dir"/code/SIZE.h_mpi" $dir"/code/SIZE.h"  
                 fi  
             fi  
         else  
             if test -r $dir"/code/CPP_EEOPTIONS.h_nompi" ; then  
                 cmp $dir"/code/CPP_EEOPTIONS.h_nompi" $dir"/code/CPP_EEOPTIONS.h"  
                 RETVAL=$?  
                 if test "x$RETVAL" != x0 ; then  
                     cp $dir"/code/CPP_EEOPTIONS.h_nompi" $dir"/code/CPP_EEOPTIONS.h"  
                 fi  
             fi  
             if test -r $dir"/code/SIZE.h_nompi" ; then  
                 cmp $dir"/code/SIZE.h_nompi" $dir"/code/SIZE.h"  
                 RETVAL=$?  
                 if test "x$RETVAL" != x0 ; then  
                     cp $dir"/code/SIZE.h_nompi" $dir"/code/SIZE.h"  
                 fi  
             fi  
         fi  
   
         #  Create an output dir for each OPTFILE/tdir combination  
         CDIR=$DRESULTS"/"$DRESULTS"_"$NDIR  
         mkdir $CDIR  
         CDIR=`pwd`"/$CDIR"  
   
         #  ...configue, make, run, and compare the output.  
609          echo "-------------------------------------------------------------------------------"          echo "-------------------------------------------------------------------------------"
610          echo          echo
611          echo "Experiment:  $dir"          echo "Experiment:  $dir"
# Line 666  for OPTFILE in $OPTFILES ; do Line 624  for OPTFILE in $OPTFILES ; do
624              rundir=input              rundir=input
625          fi          fi
626    
627            CODE_DIR=$dir/code
628            BUILD_DIR=$dir/$builddir
629            MPI_FILES="CPP_EEOPTIONS.h_mpi SIZE.h_mpi"
630            NOMPI_FILES="CPP_EEOPTIONS.h_nompi SIZE.h_nompi"
631            #  Is this an MPI run?
632            if test "x$MPI" = xt ; then
633                FILES=$MPI_FILES
634            else
635                FILES=$NOMPI_FILES
636            fi
637    
638            #  Check to see that we have the files
639            have_files=t
640            for i in $FILES ; do
641                if test ! -r $CODE_DIR/$i ; then
642                    echo "Warning: can't read file $CODE_DIR/$i" | tee -a $SUMMARY
643                    have_files=f
644                fi
645            done
646            if test "x$have_files" != xt -a "x$MPI" = xt ; then
647                echo "Skipping $dir due to lack of input files (see above warning)" \
648                    | tee -a $SUMMARY
649                continue
650            fi
651    
652            #  If we have the $FILES and they differ, copy the $FILES to $BUILD_DIR
653            if "x$have_files" = xt ; then
654                for i in $FILES ; do
655                    cmp $CODE_DIR/$i $BUILD_DIR/$i > /dev/null 2>&1
656                    RETVAL=$?
657                    if test "x$RETVAL" != x0 ; then
658                        cp $CODE_DIR/$i $BUILD_DIR/$i
659                    fi
660                done
661            fi
662    
663            #  Create an output dir for each OPTFILE/tdir combination
664            CDIR=$DRESULTS"/"$DRESULTS"_"$NDIR
665            mkdir $CDIR
666            CDIR=`pwd`"/$CDIR"
667    
668          if test "x$CLEANUP" = xt ; then          if test "x$CLEANUP" = xt ; then
669              makeclean $dir/$builddir              makeclean $dir/$builddir
670          else          else

Legend:
Removed from v.1.9.2.4  
changed lines
  Added in v.1.9.2.5

  ViewVC Help
Powered by ViewVC 1.1.22