From d1c61b912fe2bf551bf852468d7e3d762b9b3bc1 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 11 Jul 2014 11:12:46 +0100 Subject: [PATCH] ENH: cshrc: make foamCompiler environment variable so can be set through command line --- etc/config/settings.csh | 3 ++- etc/cshrc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/etc/config/settings.csh b/etc/config/settings.csh index dad1d03f..d817b428 100644 --- a/etc/config/settings.csh +++ b/etc/config/settings.csh @@ -542,6 +542,7 @@ endif # cleanup environment: # ~~~~~~~~~~~~~~~~~~~~ #- keep _foamAddPath _foamAddLib _foamAddMan -unset foamCompiler minBufferSize +unset minBufferSize +unsetenv foamCompiler # ----------------------------------------------------------------- end-of-file diff --git a/etc/cshrc b/etc/cshrc index 06d5922c..df902347 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) -set foamCompiler=system +# foamCompiler = system | ThirdParty (OpenFOAM) +setenv foamCompiler system #- Compiler: # WM_COMPILER = Gcc | Gcc45 | Gcc46 | Gcc47 | Clang | Icc (Intel icc)