|
Revision 2345, 3.9 kB
(checked in by gary, 5 months ago)
|
|
coll_t3.in - add cosmic rays to increase stability
doc_tsuite.pl - better output at end of run, clean up comments
grains_hot.in - add quantum heating (remove non qheat command)
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | $htests='doc_tsuite.htm'; |
|---|
| 17 | |
|---|
| 18 | $tests='doc_tsuite.txt'; |
|---|
| 19 | $tfile='tempfile.tmp'; |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | open(THTML,">$htests"); |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | open(TTEXT,">$tests"); |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | $bool1=0; |
|---|
| 45 | |
|---|
| 46 | $bool2=0; |
|---|
| 47 | |
|---|
| 48 | print THTML "<html>\n |
|---|
| 49 | <head>\n |
|---|
| 50 | <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n |
|---|
| 51 | <meta name=\"GENERATOR\" content=\"Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12 i686) [Netscape]\">\n |
|---|
| 52 | <title>Cloudy test suite</title>\n |
|---|
| 53 | |
|---|
| 54 | </head> |
|---|
| 55 | <body>"; |
|---|
| 56 | print THTML "<h4> This HTML file was created by the program doc_tsuite.pl. doc_tsuite.txt contains a tab delimited list of the files. </h4>\n"; |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | while(defined($input=glob("*.in"))) |
|---|
| 61 | { |
|---|
| 62 | open(TEST,"$input"); |
|---|
| 63 | |
|---|
| 64 | |
|---|
| 65 | $flag=0; |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | print THTML "<hr>"; |
|---|
| 69 | print THTML "<kbd>"; |
|---|
| 70 | print THTML "<h2>$input "; |
|---|
| 71 | |
|---|
| 72 | |
|---|
| 73 | while(<TEST>) |
|---|
| 74 | { |
|---|
| 75 | if($_=~/title/) |
|---|
| 76 | { |
|---|
| 77 | $rtitle=$_; |
|---|
| 78 | $rtitle=~s/title\s//; # Removes 'title' from line |
|---|
| 79 | print TTEXT "$input\t$rtitle"; |
|---|
| 80 | print THTML "</kbd><I>$rtitle</I></h2><kbd>"; |
|---|
| 81 | } |
|---|
| 82 | if($flag==0) |
|---|
| 83 | { |
|---|
| 84 | if($_!~/^\n*$/) |
|---|
| 85 | { |
|---|
| 86 | |
|---|
| 87 | if ($bool1==0 && $bool2==0) |
|---|
| 88 | { |
|---|
| 89 | if($_!~/\/\//) # if not comments |
|---|
| 90 | { |
|---|
| 91 | if($_!~/assert/) |
|---|
| 92 | { |
|---|
| 93 | print THTML "<br>$_"; |
|---|
| 94 | } |
|---|
| 95 | } |
|---|
| 96 | } |
|---|
| 97 | elsif($bool1==0 && $bool2==1) |
|---|
| 98 | { |
|---|
| 99 | if($_!~ /assert/) |
|---|
| 100 | { |
|---|
| 101 | print THTML "<br>$_"; |
|---|
| 102 | } |
|---|
| 103 | } |
|---|
| 104 | elsif($bool1==1 && $bool2==0) |
|---|
| 105 | { |
|---|
| 106 | if($_!~/\/\//) # if not comments |
|---|
| 107 | { |
|---|
| 108 | print THTML "<br>$_"; |
|---|
| 109 | } |
|---|
| 110 | } |
|---|
| 111 | elsif($bool1==1 && $bool2==1) |
|---|
| 112 | { |
|---|
| 113 | print THTML "<br>$_"; |
|---|
| 114 | } |
|---|
| 115 | else |
|---|
| 116 | { |
|---|
| 117 | print "Error in setting values.\n" |
|---|
| 118 | } |
|---|
| 119 | } |
|---|
| 120 | else |
|---|
| 121 | { |
|---|
| 122 | print THTML "</kbd>"; |
|---|
| 123 | $flag=1; |
|---|
| 124 | } |
|---|
| 125 | } |
|---|
| 126 | if($flag==1) |
|---|
| 127 | { if($_=~/^\n$/) |
|---|
| 128 | { |
|---|
| 129 | print THTML "<p>"; |
|---|
| 130 | } |
|---|
| 131 | if($_=~/^(\n*Checks|\-)/) |
|---|
| 132 | { |
|---|
| 133 | print THTML "<br>$_"; |
|---|
| 134 | } |
|---|
| 135 | else |
|---|
| 136 | { |
|---|
| 137 | print THTML "$_"; |
|---|
| 138 | } |
|---|
| 139 | } |
|---|
| 140 | } |
|---|
| 141 | print THTML "</p>"; |
|---|
| 142 | close(TEST); |
|---|
| 143 | } |
|---|
| 144 | |
|---|
| 145 | print THTML "<hr>\n |
|---|
| 146 | </body>\n |
|---|
| 147 | </html>"; |
|---|
| 148 | |
|---|
| 149 | |
|---|
| 150 | close(TTEXT); |
|---|
| 151 | close(THTML); |
|---|
| 152 | |
|---|
| 153 | print "\n$tests contains a list of the file names and titles.\n"; |
|---|
| 154 | print "$htests has the formatted contents of each test case.\n"; |
|---|
| 155 | |
|---|
| 156 | |
|---|
| 157 | |
|---|
| 158 | |
|---|
| 159 | |
|---|
| 160 | |
|---|
| 161 | |
|---|
| 162 | |
|---|
| 163 | |
|---|
| 164 | |
|---|
| 165 | |
|---|
| 166 | |
|---|
| 167 | |
|---|
| 168 | |
|---|
| 169 | |
|---|