From e580e3fc094dbab7d028dd823f44851d6e307951 Mon Sep 17 00:00:00 2001 From: Henrik Rusche Date: Mon, 4 Oct 2010 12:48:02 +0200 Subject: [PATCH] reverted etc/cshrc and etc/bashrc to vanilla --- etc/bashrc | 38 ++++++++++++++------------------------ etc/cshrc | 33 +++++++++++++++++---------------- 2 files changed, 31 insertions(+), 40 deletions(-) diff --git a/etc/bashrc b/etc/bashrc index 82f09648b..c11be4621 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -2,7 +2,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright held by original author +# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -33,12 +33,9 @@ #------------------------------------------------------------------------------ export WM_PROJECT=OpenFOAM -export WM_PROJECT_VERSION=1.6-ext +export WM_PROJECT_VERSION=1.6.x -# helps to easily write #ifdefs to detect a dev-version -export FOAM_DEV=1 - -############################################################################### +################################################################################ # USER EDITABLE PART # # either set $FOAM_INST_DIR before sourcing this file or set @@ -95,8 +92,6 @@ export WM_COMPILER_LIB_ARCH= # Compilation options (architecture, precision, optimised, debug or profiling) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -export WM_NCOMPPROCS=12 - # WM_ARCH_OPTION = 32 | 64 : ${WM_ARCH_OPTION:=64}; export WM_ARCH_OPTION @@ -133,6 +128,8 @@ Linux) case $WM_ARCH_OPTION in 32) export WM_COMPILER_ARCH='-64' + export WM_CC='gcc' + export WM_CXX='g++' export WM_CFLAGS='-m32 -fPIC' export WM_CXXFLAGS='-m32 -fPIC' export WM_LDFLAGS='-m32' @@ -140,6 +137,8 @@ Linux) 64) WM_ARCH=linux64 export WM_COMPILER_LIB_ARCH=64 + export WM_CC='gcc' + export WM_CXX='g++' export WM_CFLAGS='-m64 -fPIC' export WM_CXXFLAGS='-m64 -fPIC' export WM_LDFLAGS='-m64' @@ -158,6 +157,8 @@ Linux) mips64) WM_ARCH=SiCortex64 export WM_COMPILER_LIB_ARCH=64 + export WM_CC='gcc' + export WM_CXX='g++' export WM_CFLAGS='-mabi=64 -fPIC' export WM_CXXFLAGS='-mabi=64 -fPIC' export WM_LDFLAGS='-mabi=64 -G0' @@ -167,6 +168,8 @@ Linux) ppc64) WM_ARCH=linuxPPC64 export WM_COMPILER_LIB_ARCH=64 + export WM_CC='gcc' + export WM_CXX='g++' export WM_CFLAGS='-m64 -fPIC' export WM_CXXFLAGS='-m64 -fPIC' export WM_LDFLAGS='-m64' @@ -178,24 +181,11 @@ Linux) esac ;; -Darwin) - case `uname -p` in - powerpc) - export WM_ARCH=darwinPpc - ;; - i386) - export WM_ARCH=darwinIntel - ;; - *) - echo "This seems to be an Intel-Mac please tell me the output of 'uname -p'. Bernhard." - export WM_ARCH=darwinIntel - ;; - esac - ;; - SunOS) WM_ARCH=SunOS64 export WM_COMPILER_LIB_ARCH=64 + export WM_CC='gcc' + export WM_CXX='g++' export WM_CFLAGS='-mabi=64 -fPIC' export WM_CXXFLAGS='-mabi=64 -fPIC' export WM_LDFLAGS='-mabi=64 -G0' @@ -206,7 +196,7 @@ SunOS) cat <