Show
Ignore:
Timestamp:
05/12/08 07:39:41 (8 months ago)
Author:
gary
Message:

modify script so that it uses, by default, the g++ build in source. The script does not need to be edited if Cloudy was built this way. If one of the sys_XXX was used then the appropriate path should be uncommented.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tsuite/auto/runall.pl

    r1983 r2048  
    11#perl -w 
    22# 
    3 # This is a perl script to run all the input files in a directory. 
    4 # this IS NOT the main auto run script that happens every night  
    5 # that is autorun.pl 
    6 # 
    7 # It is designed to be executed from the directory where the input files live. 
     3# This runs all the *.in input files in a directory. 
     4# and should be executed from the directory containing the input files. 
     5 
    86# The string "$exe" must be modified to point to your executable version 
    9 # of cloudy. 
     7# of Cloudy. 
    108 
    119# after all the models are run the "checkall.pl" script can be run 
    1210# to check that everything went ok 
    1311 
    14 # if there is already an exe file in this dir, back it up before 
    15 # bringing in a new one, in case we need to run the old models 
    16 if(-e "trunk.exe" ) 
     12# This gives the path to the executable version of the code 
     13# This will work if the directory structure was not changed from the 
     14# original download and if the executable was built in source 
     15# using g++ and the makefiles provided 
     16$exe = "../../source/cloudy.exe"; 
     17 
     18# these are the various compiler builds that occur in sys_XXX 
     19# directories below source.   
     20# uncomment the one that you built if you did not use the default 
     21# 
     22# sys_gcc 
     23$exe = "../../source/sys_gcc/cloudy.exe"; 
     24# $exe = "../../source/sys_gprof/cloudy.exe"; 
     25# $exe = "../../source/sys_IBMxSeries/cloudy.exe"; 
     26# $exe = "../../source/sys_icc/cloudy.exe"; 
     27# $exe = "../../source/sys_pgcc/cloudy.exe"; 
     28# $exe = "../../source/sys_pgccBounds/cloudy.exe"; 
     29 
     30# if this file does not exist we have problems 
     31if( ! -e "$exe" ) 
    1732{ 
    18    system("copy \"trunk.exe\" \"cloudy_bak.exe\" "); 
     33        print "The executable file does not exist\n"; 
     34        exit; 
    1935} 
    20  
    21 # the path to the executable version of the code 
    22  
    23 #$exe = "c:/projects/cloudy/trunk/icl/release/cloudy_icl.exe"; 
    24 #$exe = "c:/projects/cloudy/trunk/source/sys_icl/cloudy.exe"; 
    25  
    26 #$exe = "c:/Projects/Cloudy/trunk/debug/trunk.exe"; 
    27 $exe = "c:/projects/cloudy/trunk/release/trunk.exe"; 
    28  
    29 #$exe = "c:/Projects/Cloudy/trunk/vs08/debug/vs08.exe"; 
    30 #$exe = "c:/projects/cloudy/trunk/vs08/release/vs08.exe"; 
    31  
    32 #$exe = "c:/projects/cloudy/newmole/debug/newmole.exe"; 
    33 #$exe = "c:/projects/cloudy/newmole/icl/release/cloudy_icl.exe"; 
    34  
    35 #$exe = "c:/projects/cloudy/trunk/gcc/release/cloudy_gcc.exe"; 
    36 #$exe = "c:/projects/cloudy/trunk/source/sys_gcc/cloudy.exe"; 
    3736 
    3837# count total number of sims we compute 
     
    6261                $out = "$output".".out"; 
    6362                print("$output\n"); 
    64                 # actually execute the code, first uses nice 
    65 #               system "nice -n 5 $exe < $input  > $out"; 
    66                 system "$exe < $input  > $out"; 
     63                # actually execute the code including nice 
     64                system "nice -n 5 \"$exe\" < $input  > $out"; 
    6765        } 
    6866        ++$nMod;