From 0672fef661f75b412c2fd59c22ea7b24fdef6526 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Sun, 30 Apr 2000 11:40:22 +0000 Subject: [PATCH] r19: Added support for $::mpi_enable to allow enabling/disabling of MPI support from the configuration file. --- cgi-bin/ctsim.cgi | 2 +- cgi-bin/ctsim.cgi.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cgi-bin/ctsim.cgi b/cgi-bin/ctsim.cgi index d81ee68..1c2d4a1 100644 --- a/cgi-bin/ctsim.cgi +++ b/cgi-bin/ctsim.cgi @@ -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
" if ($IR_Nx < 5 || $IR_Nx > 1024 || $IR_Ny < 5 || $IR_Ny > 1024); $error .= "IR Filter Parameter must be between 0 and 1
" if ($IR_Filter_Param < 0 || $IR_Filter_Param > 1); diff --git a/cgi-bin/ctsim.cgi.in b/cgi-bin/ctsim.cgi.in index ac31936..60b4bb0 100755 --- a/cgi-bin/ctsim.cgi.in +++ b/cgi-bin/ctsim.cgi.in @@ -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
" if ($IR_Nx < 5 || $IR_Nx > 1024 || $IR_Ny < 5 || $IR_Ny > 1024); $error .= "IR Filter Parameter must be between 0 and 1
" if ($IR_Filter_Param < 0 || $IR_Filter_Param > 1); -- 2.34.1