root/trunk/tsuite/slow/runh2.pl

Revision 1612, 1.2 kB (checked in by gary, 13 months ago)

update asserted quantities for H2 models in slow directory. these changes (some by 1 dex) due to flower H-H2 collision rate changes.

  • 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# run on original machine
15system("copy c:\\projects\\cloudy\\trunk\\icl\\release\\cloudy_icl.exe . ");
16$exe = "cloudy_icl.exe";
17
18$nMod = 0;
19$nSkip = 0;
20
21# this loops over all the *.in files in the current directory
22# and runs the code to produce *.out files
23while ( defined( $input = glob("h2_*.in") ) )
24{
25        if ( $nMod>=$nSkip )
26        {
27                # $output =~ s/.out//gi;
28                # $output =~ s/.out//gi;
29                print( "$input going to " );
30                $output = $input;
31                $output =~ s/\.in//gi;
32                if( -e "$output".".out" )
33                {
34                        rename( "$output".".out" , "$output".".bak" );
35                }
36                $out = "$output".".out";
37                print("$output\n");
38                # actually execute the code
39                system "nice -n 5 $exe < $input  > $out";
40#               system "$exe < $input  > $out";
41        }
42        ++$nMod;
43}
44
45print("\n=========================\n");
46printf( "\n %i models were computed, and %i were skipped.\n ",$nMod,$nSkip);
47print("Now use the checkall.pl script to check results.\n");
48print("=========================\n");
49
50system("perl mail.pl\" ");
51
Note: See TracBrowser for help on using the browser.