diff --git a/etc/config.csh/example/prefs.csh b/etc/config.csh/example/prefs.csh index c5e7cd7fa3..20ac1a67be 100644 --- a/etc/config.csh/example/prefs.csh +++ b/etc/config.csh/example/prefs.csh @@ -38,7 +38,7 @@ ## Specify OpenFOAM ThirdParty compiler ## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# set foamCompiler=ThirdParty +# set WM_COMPILER_TYPE=ThirdParty ## Specify compiler type ## ~~~~~~~~~~~~~~~~~~~~~ diff --git a/etc/config.csh/settings b/etc/config.csh/settings index 499c3b5dc8..55d100610c 100644 --- a/etc/config.csh/settings +++ b/etc/config.csh/settings @@ -207,13 +207,13 @@ unsetenv MPFR_ARCH_PATH GMP_ARCH_PATH # Location of compiler installation # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -if ( ! $?foamCompiler ) then - set foamCompiler=system +if ( ! $?WM_COMPILER_TYPE ) then + set WM_COMPILER_TYPE=system echo "Warning in $WM_PROJECT_DIR/etc/config.csh/settings:" - echo " foamCompiler not set, using '$foamCompiler'" + echo " WM_COMPILER_TYPE not set, using '$WM_COMPILER_TYPE'" endif -switch ("$foamCompiler") +switch ("$WM_COMPILER_TYPE") case OpenFOAM: case ThirdParty: # Default versions of GMP, MPFR and MPC, overide as necessary @@ -279,7 +279,7 @@ case ThirdParty: echo " Cannot find $gccDir installation." echo " Please install this compiler version or if you wish to" \ " use the system compiler," - echo " change the 'foamCompiler' setting to 'system'" + echo " change the 'WM_COMPILER_TYPE' setting to 'system'" echo endif @@ -315,7 +315,7 @@ case ThirdParty: echo " Cannot find $clangDir installation." echo " Please install this compiler version or if you wish to" \ " use the system compiler," - echo " change the 'foamCompiler' setting to 'system'" + echo " change the 'WM_COMPILER_TYPE' setting to 'system'" echo endif @@ -331,7 +331,7 @@ case system: breaksw default: - echo "Warn: foamCompiler='$foamCompiler' is unsupported" + echo "Warn: WM_COMPILER_TYPE='$WM_COMPILER_TYPE' is unsupported" echo " treating as 'system' instead" breaksw endsw @@ -341,6 +341,6 @@ endsw # ~~~~~~~~~~~~~~~~~~~~ #- keep _foamAddPath _foamAddLib _foamAddMan unset minBufferSize -unsetenv foamCompiler +unsetenv WM_COMPILER_TYPE #------------------------------------------------------------------------------ diff --git a/etc/cshrc b/etc/cshrc index dd31a33b99..3390248980 100644 --- a/etc/cshrc +++ b/etc/cshrc @@ -57,8 +57,8 @@ set foamInstall = $HOME/$WM_PROJECT if ( ! $?FOAM_INST_DIR ) setenv FOAM_INST_DIR $foamInstall #- Compiler location: -# foamCompiler = system | ThirdParty (OpenFOAM) -setenv foamCompiler system +# WM_COMPILER_TYPE = system | ThirdParty (OpenFOAM) +setenv WM_COMPILER_TYPE system #- Compiler: # WM_COMPILER = Gcc | Gcc45 | Gcc46 | Gcc47 | Gcc48 | Gcc49 | Clang | Icc