Commit Graph

163 Commits

Author SHA1 Message Date
Henry Weller
ce81c49d2e etc/bashrc, etc/cshrc: Filter $WM_PROJECT_DIR from paths rather than $FOAM_INST_DIR
Additionally filter $ParaView_DIR from paths in config.sh/paraview and config.csh/paraview

Resolves bug-report http://bugs.openfoam.org/view.php?id=2031
2016-05-05 15:37:00 +01:00
mattijs
f4af153381 BUG: bashrc: correct WM_PROJECT, set WM_MPLIB to SYSTEMOPENMPI, 2016-05-05 11:26:08 +01:00
Henry Weller
bdf556e628 Building foamyHexMesh is now optional defaulting to not build
Set the environment variable "FOAMY_HEX_MESH" to build foamyHexMesh,
e.g. in ~/.OpenFOAM/dev/prefs.sh

FOAMY_HEX_MESH=yes
2016-05-02 18:21:45 +01:00
sergio
a15b03e5e2 source scotch in etc/bashrc 2016-04-29 15:53:07 -07:00
andy
fd9d801e2d GIT: Initial commit after latest foundation merge 2016-04-25 11:40:48 +01:00
Henry Weller
4409a0ea5a etc/bashrc, etc/config.sh: Updates provided by Bruno Santos:
1. "foamCompiler" was changed to a more permanent "WM_COMPILER_TYPE"
    environment variable, so that it can be used by 3rd party
    installation scripts, such as "makeGcc", "makeLLVM" and so on. More
    on this will be provided in issue #1215.

 2. The script functions such as "_foamSource()" and "_foamAddPath()"
    were moved to a new file "etc/config.sh/functions". It has the
    ability to set or unset, depending on whether "WM_BASH_FUNCTIONS" is
    defined or not. This allows for these functions to be reused by
    other scripts, such as "makeGcc".

 3. The script "etc/config.sh/CGAL" relies on whether a local
    environment variable "SOURCE_CGAL_VERSIONS_ONLY" is defined or not,
    so that it will load only the version settings if it's defined. This
    is to make it easier to call this script from "makeCGAL". Although
    it still feels a bit of a clunky hack, but I didn't manage to deduce
    any other way we could do this :( I didn't add indentation within
    the if-block, to make it easier to read the changes. In addition,
    the local variable "common_path" is used to shorten the length of
    the lines and use slightly less repeated code.

 4. Added another new script "etc/config.sh/compiler", which has only
    the version numbers for the compilers taken out from the "settings"
    file. It currently depends on "WM_COMPILER_TYPE" for setting the
    variables, the same way it did with "foamCompiler". This script is
    now always sourced from the "settings" file, for the following
    reasons:

   - "makeGCC" and "makeLLVM" can now take advantage of this script file.

   - The example "compiler" script (detailed next) can rely on this
     script file and then override parameters on-demand, as well as
     allowing for system compilers to have dedicated settings, such as
     setting "WM_CC". This is similar to how the example environment
     script for "paraview" works.

 5. To the script "etc/config.sh/example/compiler" were added a few more examples:

   - It now starts with a block where it first loads the default "compiler" script.

   - Has a "WM_COMPILER=Gcc48u" case example for when we try to use GCC
     4.8 in Ubuntu 15.10. This is just to give the idea that in a
     particular system, we might have several system-wide compiler
     versions. For example, in Ubuntu 15.10, there is GCC 4.7, 4.8 and
     5.2, which could be used for testing performances or compatibility
     with some other 3rd party library.

   - Has the "WM_COMPILER=Icc" case example, related to the original bug
     report, where "WM_CC=icc" and "WM_CXX=icpc", so that the user then
     simply copies this file to their own local preferences folder.

 6. Small bug fix in "etc/config.sh/mpi", where unsetting "minBufferSize" was missing at the end of the script.

 7. Small change in "etc/config.sh/paraview", where "CMAKE_ROOT" is set
    along with "CMAKE_HOME". This is due to a rare issue that occurs on
    people's systems where they have a custom system-wide CMake version
    installed and which is used by having "CMAKE_ROOT" set on that
    environment. This can mess up OpenFOAM's custom ParaView builds,
    given that conflicting CMake versions can lead to not building
    ParaView at all.

   - For more details about "CMAKE_ROOT":
     https://cmake.org/Wiki/CMake_Useful_Variables [^]

 8. The scripts "_foamAddPath _foamAddLib _foamAddMan" were not being
    unset at the end of "settings". They are now unset at the end of
    "bashrc", through a call to the new double-use "functions" script.

Additionally all references to "foamCompiler" have been changed to
"WM_COMPILER_TYPE".

See also http://www.openfoam.org/mantisbt/view.php?id=1232
2016-03-09 09:01:09 +00:00
Henry Weller
350d03246e scripts: Reformat with consistent section separators 2016-02-15 18:30:24 +00:00
Henry Weller
9a7c6287a8 etc/config.*: Separate MPI settings into separate files and upgrade OpenMPI to 10.0.2 2016-02-10 20:46:24 +00:00
Henry Weller
1193903d8d OpenFOAM-dev/etc: separated scripts for bash and csh into separate directories
etc/config.sh and etc/config.csh

This structure is more convenient to add support for other shells, e.g. zsh, fish etc.

Resolves feature request to simplify support for other shells in
http://www.openfoam.org/mantisbt/view.php?id=1232
2016-02-10 10:22:25 +00:00
Andrew Heather
ee3e997431 ENH: Updated version tag from OpenFOAM-dev-OpenCFD to OpenFOAM-plus 2015-12-22 16:52:31 +00:00
andy
1e24c133ad COMP: Updated bashrc/cshrc to reflect project name 2015-08-07 14:09:22 +01:00
Henry
e9e1bfb5f7 etc/config/settings: Set WM_ARCH_OPTION=32 on 32bit OSs 2015-05-17 18:30:11 +01:00
Henry
51a1c73f39 Startup scripts: Add documentation for WM_ARCH_OPTION 2015-05-14 18:47:48 +01:00
Henry
016fa3aeb5 Updated headers 2015-03-08 21:06:36 +00:00
Henry
ad7053d560 MPI configuration: Added support for SYSTEMMPI
Provided by Bruno Santos
Also some general cleaning and update of comment.
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1167
2015-03-08 21:04:38 +00:00
Henry
325b003b6e Added and verified support for 64bit labels
To compile with 64bit labels set

WM_LABEL_SIZE=64

in ~/OpenFOAM/dev/prefs.sh

source ~/.bashrc

then Allwmake in OpenFOAM-dev.

This will build into for example OpenFOAM-dev/platforms/linux64ClangDPInt64Opt

If WM_LABEL_SIZE is unset or set to 32:

WM_LABEL_SIZE=32

the build would be placed into OpenFOAM-dev/platforms/linux64ClangDPInt32Opt

Thus both 32bit and 64bit label builds can coexist without problem.
2014-12-31 19:02:52 +00:00
Henry
c347c80f20 Upgraded gcc-4.9.0 -> gcc-4.9.2 2014-12-16 08:37:57 +00:00
OpenFOAM-admin
9fb26d59d3 GIT: Repo update 2014-12-11 08:35:10 +00:00
Henry
daa16ad557 Corrected version back to 2.3.x following the release of 2.3.1 2014-12-11 08:31:25 +00:00
Henry
443ff8c0d0 Default to system OpenMPI 2014-12-10 12:40:45 +00:00
OpenFOAM-admin
fbb3ddf2c4 Updated for release 2.3.0 2014-02-17 10:21:46 +00:00
mattijs
5ae141856a ENH: etc: added CGAL setup 2014-01-28 12:54:14 +00:00
Henry
06f9fbe0ed Proved support for both ParaView 3 and 4 in the standard start-up scripts
Change default version to 4.1.0 (may need to revert to 4.0.1 after
further testing of 4.1.0)
2014-01-10 13:13:07 +00:00
Henry
af27e633f9 Updated headers 2014-01-10 10:48:30 +00:00
Henry
011fda6bbe Added support for ParaView-4.1.0
The default ParaView is now 4.0.1 pending completion of testing of 4.1.0
2014-01-10 10:47:18 +00:00
andy
af72f2a512 BUG: Removed support for deprecated compilers - mantis #995 2013-11-05 10:20:00 +00:00
mattijs
c4a4611b0f Merge remote-tracking branch 'origin/feature/procAgglom'
Conflicts:
	src/OpenFOAM/meshes/lduMesh/lduMesh.H
2013-05-02 14:44:59 +01:00
mattijs
ea8d290191 ENH: communicators: initial version - extended Pstream API 2013-02-04 10:17:37 +00:00
Henry
db89978ade Updated headers for Laurence and Andy 2012-12-17 11:42:00 +00:00
laurence
cb3ebf5e50 COMP: Add gperftools config file 2012-12-11 16:28:11 +00:00
andy
b85c35017f ENH: redirect to stderr when sourcing bashrc (Mark Olesen) 2012-06-29 09:31:14 +01:00
mattijs
c59dcf573f STYLE: etc/bashrc: updated comment 2012-03-12 14:18:57 +00:00
Henry
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
mattijs
9b0a40e05b BUG: etc/bashrc: wrong version 2011-07-21 15:05:36 +01:00
mattijs
d205a84e8d Merge branch 'master' into cvm
Conflicts:
	src/meshTools/searchableSurface/closedTriSurfaceMesh.C
	src/meshTools/searchableSurface/closedTriSurfaceMesh.H
2011-07-20 18:18:22 +01:00
OpenFOAM-admin
c720299876 ENH: Reverted back to version dev 2011-06-17 10:08:20 +01:00
andy
29c485361a STYLE: renamed version 2.0 -> 2.0.0 2011-06-08 16:31:07 +01:00
andy
26c4025c94 STYLE: Updated to version 2.0 2011-06-07 11:18:14 +01:00
Mark Olesen
020d5f9b2d EHN: preserve WM_PROJECT_SITE in bashrc, cshrc
- otherwise there is actually no means of placing a site-site
  prefs.sh in the $WM_PROJECT_SITE/ directory
2011-05-19 17:32:57 +02:00
Mark Olesen
e8e5d2f5a8 CONF: move settings.{csh,sh} into OpenFOAM etc/config
- leave bashrc/cshrc and prefs.{csh,sh} in etc/ for visibility
2011-05-19 13:35:41 +02:00
Mark Olesen
3202ef296c CONF: consolidate more files into OpenFOAM etc/config 2011-05-03 15:06:48 +02:00
Mark Olesen
20693b96bd CONF: move OpenFOAM etc/apps -> etc/config
- use standard *.sh, *.csh endings
2011-05-02 14:52:11 +02:00
Mark Olesen
b55c3fb66b ENH: avoid stray options affecting _foamEval, pass FOAM_SETTINGS to foamExec 2011-04-28 08:32:00 +02:00
Mark Olesen
debb4b42fd ENH: add foamEtcFile -silent option to suppress stderr
- need to trap possibly weird input within etc/bashrc, etc/cshrc and
  can't easily redirect stderr in csh.
2011-04-27 16:55:32 +02:00
Mark Olesen
7dee8058e1 ENH: add Gcc46 rules 2011-03-30 09:22:01 +02:00
Mark Olesen
56f75de6fd BUG: WM_PROJECT_SITE was not cleaned from PATH 2011-03-25 17:51:25 +01:00
Mark Olesen
4739621578 STYLE: move WM_PROJECT_SITE to bashrc, cshrc
- avoid editing of settings.{sh,csh}
2011-03-11 19:01:14 +01:00
Mark Olesen
fd6695d329 ENH: move WM_ARCH details into settings.csh, settings.sh 2011-03-09 08:45:28 +01:00
Mark Olesen
1129edaf53 STYLE: apps/paraview3/bashrc-EXAMPLE to guide people with non-standard paraview 2011-02-01 18:34:19 +01:00
Mark Olesen
e95e9700c8 Merge remote branch 'OpenCFD/master' into olesenm 2011-01-17 10:21:58 +01:00
andy
eaef8d482b STYLE: Updated 1991 start copyright year to 2004 2011-01-14 16:08:00 +00:00
Mark Olesen
81c385e51b ENH: preserve command-line arguments in etc/bashrc 2011-01-11 08:42:50 +01:00
Mark Olesen
4425db227d STYLE: set ParaView_VERSION in etc/apps/paraview3/*rc only
- this change was wished by Mattijs and/or Henry

- allow command-line settings to retain the flexibility of 'foamPV'
  alias mechanism.
2011-01-10 10:42:14 +01:00
andy
14d1300a36 Revert "STyLE: More 2011 copyright dates (non-code)."
This reverts commit 2e1e671d96.
2011-01-05 18:25:32 +00:00
graham
2e1e671d96 STyLE: More 2011 copyright dates (non-code). 2011-01-05 11:48:24 +00:00
Mark Olesen
5e12506f8e ENH: improve separation of OpenFOAM and ThirdParty mpi-libraries
- drop FOAM_MPI_LIBBIN variable in favour of FOAM_MPI from which
  two different locations can be determined.

  Previously there was something like this:

      FOAM_MPI_LIBBIN = $FOAM_LIBBIN/openmpi-1.5.1

  We now instead determine the locations from the FOAM_MPI directly:

      FOAM_MPI=openmpi-1.5.1

          $FOAM_LIBBIN/$FOAM_MPI     -> OpenFOAM  mpi-related
          $FOAM_EXT_LIBBIN/$FOAM_MPI -> ThirdPary mpi-related

ENH: relocate ParaView libraries and plugins back under FOAM_LIBBIN

- as discussed with Mattijs
2011-01-05 07:53:54 +01:00
Mark Olesen
18dbe9996a ENH: reorganize settings to avoid inheriting bad values
- avoid non-standard 'tempfile' in bin/tools/foamConfigurePaths
2010-12-23 07:37:32 +01:00
Mark Olesen
603aa1e61c ENH: preserve command-line settings in FOAM_SETTINGS 2010-12-22 15:41:51 +01:00
Mark Olesen
e8e79cc9eb ENH: add command-line mechanism for specifying user prefs
- eg,
  . PATH_TO_FOAM/etc/bashrc myPrefs.sh
2010-12-07 15:30:22 +01:00
Mark Olesen
820ae84da0 STYLE: do not need intermediate variables when calling _foamSource
- sh/ksh/bash only, doesn't seem possible for csh
2010-10-14 16:31:03 +02:00
Henry
322ddc1771 etc/bashrc: allow option setting for option software to be specified in ~/OpenFOAM/???/apps/<application>/bashrc 2010-09-30 17:01:21 +01:00
Henry
f4dee922ab Start-up scripts: The environment variables are now set unconditionally as in 1.7.x 2010-09-29 10:50:49 +01:00
mattijs
4b307cf543 STYLE: etc/*rc : update version number, add comment 2010-07-06 11:48:46 +01:00
henry
ccfb6e32a6 Corrected headers. 2010-06-23 16:54:54 +01:00
Mark Olesen
a823b627a6 ENH: handle command-line parameters in bashrc/cshrc
- this provides a means to temporarily override the default settings
  and/or the prefs.{csh,sh} settings.

  bash:
      name=       -> unset name
      name=value  -> export name=value

  csh:
      name=       -> unsetenv name
      name=value  -> setenv name value

  eg,
      . <WM_PROJECT_DIR>/etc/bashrc WM_COMPILER=Gcc45 WM_MPLIB=
  to use gcc 4.5 and the default mplib
2010-04-26 08:49:41 +02:00
Mark Olesen
d29c438657 STYLE: use url for FSF license instead of postal address, switch to GPL v3 2010-03-29 14:07:56 +02:00
Mark Olesen
f3ab304d79 ENH: simplify compiler settings, provision for boost/CGAL 2010-03-25 10:37:44 +01:00
Mark Olesen
cfcea13450 BUG: missed cleanup of env variables in etc/settings 2010-03-19 11:40:05 +01:00
Mark Olesen
7308242498 BUG: prefs.sh was sourced in the wrong position in etc/{bashrc,cshrc} 2010-03-15 15:15:38 +01:00
Mark Olesen
1f59eabd1d ENH: use prefs.{csh,sh} to provide user/site configuration without
editing the respective settings files.

- foamEtcFile is used to find the files, thus follows the standard
  ~OpenFOAM/fileName expansion mechanism.
2010-03-09 09:31:37 +01:00
Mark Olesen
77f0192dac BUG: _foamAddMan was being left a remnant in the environment after sourced settings files 2010-03-09 09:16:47 +01:00
Mark Olesen
703dda2943 STYLE: use new -space option from foamCleanPath 2010-03-05 15:00:39 +01:00
Mark Olesen
92a08c005d ENH: clean path from old cmake/paraview 2010-03-05 14:17:17 +01:00
Mark Olesen
00985638d8 remove fvCFD.H usage from remaining library source
- exception calcType.H since it'll most likely be used for building
  applications anyhow

- use quailified names in more of the lagrangian code

- killed some tab indents in various places.
2009-12-02 15:34:52 +01:00
henry
fbc7c5bccf Set gcc-4.4.2 as the default gcc compiler version. 2009-11-16 14:20:10 +00:00
andy
73b0912087 do not export WM_PROJECT_VERSION if already set 2009-09-01 10:57:48 +01:00
henry
1ec00de14c and back to dev..... 2009-07-28 12:35:26 +01:00
andy
a9699afbb4 updated project versions to 1.6 + removed references to JAVAC 2009-07-15 12:47:01 +01:00
Mark Olesen
999ed8812c removed last remnants of LAM support 2009-07-15 12:26:12 +02:00
henry
d12ef65839 Added version control to ThirdParty. 2009-07-07 22:56:34 +01:00
Henry Weller
3345fd8378 Removed support for cint. 2009-06-22 21:03:57 +01:00
Mark Olesen
7941b04785 Merge commit 'OpenCFD/master' into olesenm 2009-05-19 21:15:56 +02:00
Mark Olesen
20c1a673e7 'rebrand' OSspecific Unix -> POSIX
- change name of environment variable from $WM_OS -> $WM_OSTYPE
  as a better description
2009-05-18 10:26:11 +02:00
henry
f983e0b42e Correct handling of MANPATH so that the system settings are not overridden. 2009-05-11 21:19:26 +01:00
henry
9c95fd034b Added initial support for LinuxPPC. 2009-04-02 12:26:41 +01:00
henry
afd820ddd1 Reintroduced WM_OS because the build system currently uses it. 2009-04-01 17:02:52 +01:00
henry
b2ad57c69b Added basic support for QsNet. 2009-03-28 19:53:06 +00:00
mattijs
5afc0db5a8 Solaris port 2009-02-02 12:23:41 +00:00
Mark Olesen
c5bb3f5d1d fixed bashrc mistake 2009-01-12 13:43:22 +01:00
Mark Olesen
7f8e6e6077 etc/bashrc tweak to cleanse env vars, even from a different WM_PROJECT_INST_DIR
- Problem: changing between OpenFOAM versions with different
  WM_PROJECT_INST_DIR paths would leave the old paths in the env vars.

- TODO: etc/cshrc is rougned out, but needs work on the corresponding
  if-statement
2009-01-08 22:34:54 +01:00
Mark Olesen
cdd2266467 Merge commit 'OpenCFD/master' into olesenm
Conflicts:

	src/OpenFOAM/db/IOstreams/Pstreams/IPstream.C
	src/OpenFOAM/db/IOstreams/Pstreams/OPstream.C
2009-01-07 09:39:17 +01:00
mattijs
eb2e37b296 SiCortex port 2009-01-06 21:41:20 +00:00
Mark Olesen
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
Mark Olesen
7467c891bb minor tweak for matching MPI types, documentation cosmetics 2008-12-11 10:12:06 +01:00
Mark Olesen
74cb43af0b s/openfoam\.org/OpenFOAM.org/g 2008-11-19 19:03:22 +01:00
Mark Olesen
367639bf02 Merge commit 'OpenCFD/master' into olesenm 2008-11-19 18:57:15 +01:00
henry
16e9f10e22 Added support for HP-MPI. 2008-11-19 14:57:06 +00:00
Mark Olesen
ce22f5dfe8 etc/apps - formatting and cint-svn from ThirdParty (or home) 2008-11-05 11:23:58 +01:00
Mark Olesen
b1360b7671 etc/settings.{csh,sh} - streamline
- avoid mkdir except for a few directories
  - grouped settings and added comments
  - minor bugfix: $FOAM_INST_DIR/linux64/bin was in path (pre OpenFOAM-1.5)
  - local (non-exported) variables in lowercase
2008-10-06 17:38:29 +02:00
andy
e480daefa9 reset version to dev (from 1.5) 2008-07-15 09:56:41 +01:00