r19: Added support for $::mpi_enable to allow enabling/disabling of
[ctsim.git] / cgi-bin / ctsim.cgi.in
index ac31936d15c0bc42d68b9b54d0698e33fd9abfeb..60b4bb0b160a1e1034bf6f6b280614b5d875825a 100755 (executable)
@@ -65,7 +65,7 @@ if ($Disp_Max ne 'auto' && ! ($Disp_Max =~ /^[\d\.]+$/)) {
 
 my $MPI_Str = FilterMetaChars($in{'MPI'});
 my $MPI = 0;
-$MPI = 1 if ($MPI_Str eq "yes");
+$MPI = 1 if ($MPI_Str eq "yes" && $::mpi_enable ne "");
 
 $error .= "IR Nx and Ny must be between 5 and 1024<br>" if ($IR_Nx < 5 || $IR_Nx > 1024 || $IR_Ny < 5 || $IR_Ny > 1024);
 $error .= "IR Filter Parameter must be between 0 and 1<br>" if ($IR_Filter_Param < 0 || $IR_Filter_Param > 1);