root/trunk/tsuite/slow/runlh2.pl

Revision 314, 1.6 kB (checked in by gary, 3 years ago)

add script runh.pl

change current to trunk in remaining perl scripts

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!perl -w
2# the above is generic form of #! for perl, with warnings
3#
4# $exe points to the cloudy executable on your system
5# this path is valid on my account on sdx
6# $exe = "/u/home1/gary/cloudy/trunk/main.exe";
7#
8
9if(-e "trunk.exe" )
10{
11   system("copy \"trunk.exe\" \"cloudy_bak.exe\" ");
12}
13
14#system("copy l:/projects/cloudy/trunk/release/trunk.exe c:/projects/cloudy/trunk/release/trunk.exe ");
15#system("copy l:\\projects\\cloudy\\trunk\\release\\trunk.exe c:\\projects\\cloudy\\trunk\\release\\trunk.exe ");
16# run on machine across network
17system("copy l:\\projects\\cloudy\\trunk\\release\\trunk.exe . ");
18# run on original machine
19#system("copy c:\\projects\\cloudy\\trunk\\release\\trunk.exe . ");
20#$path = "L:\\projects\\Cloudy\\trunk\\tsuite\\slow\\";
21#$exe = "$path"."trunk.exe";
22$exe = "trunk.exe";
23
24$nMod = 0;
25$nSkip = 0;
26
27# this loops over all the *.in files in the current directory
28# and runs the code to produce *.out files
29while ( defined( $input = glob("h2_*.in") ) )
30{
31        if ( $nMod>=$nSkip )
32        {
33                # $output =~ s/.out//gi;
34                # $output =~ s/.out//gi;
35                print( "$input going to " );
36                $output = $input;
37                $output =~ s/\.in//gi;
38                if( -e "$output".".out" )
39                {
40                        rename( "$output".".out" , "$output".".bak" );
41                }
42                $out = "$output".".out";
43                print("$output\n");
44                # actually execute the code
45#               system "nice -n 5 $exe < $input  > $out";
46                system "$exe < $input  > $out";
47        }
48        ++$nMod;
49}
50
51print("\n=========================\n");
52printf( "\n %i models were computed, and %i were skipped.\n ",$nMod,$nSkip);
53print("Now use the checkall.pl script to check results.\n");
54print("=========================\n");
55
56system("perl mail.pl\" ");
57
Note: See TracBrowser for help on using the browser.