2 #input argument: Compiler/System sequential/parallel
3 #This is called by WRF configuration only.
5 print("Error: No such configuration for Hydro \n");
9 $paropt = lc(shift(@ARGV));
11 print("Configure option for Hydro : $x $paropt \n");
13 if($paropt eq 'serial') {
14 # system("./configure 1");
15 print "Error : option not defined in WRF-Hyro. \n";
18 else {system("./configure 1"); exit(0);}
21 print "Error : option not defined. \n";
23 if($paropt eq 'serial') { system("./configure 3");}
24 else {system("./configure 4");}
26 if($x =~ "gfortran") {
27 if($paropt eq 'serial') {
28 # system("./configure 5");
29 print "Error : option not defined in WRF-Hyro. \n";
32 else {system("./configure 2"); exit(0);}
35 if($paropt eq 'serial') {
36 #system("./configure 7");
37 print "Error : option not defined. \n";
40 else {system("./configure 3"); exit(0);}
42 print "Error : option not defined. \n";