- Dec 14, 2017
-
-
Mark OLESEN authored
- adjust comment formatting to reduce clutter
-
Mark OLESEN authored
- relocate WM_COMPILER_ARCH, WM_COMPILER_LIB_ARCH from etc/{bashrc,cshrc} to etc/config.{csh,sh}/settings since these should not be changed by the user anyhow. - Use gcc/g++ as common base and specialize afterwards (to reduce duplication) - adjust format of WM_PROJECT_SITE fallback to allow for easier automated edits
-
- Nov 20, 2017
-
-
Mark OLESEN authored
-
- Nov 22, 2017
-
-
Mark OLESEN authored
-
- Nov 03, 2017
-
-
Mark OLESEN authored
-
- Aug 10, 2017
-
-
Mark OLESEN authored
- the (global) associative array requires bash >= 4.2
-
- Aug 04, 2017
-
-
Mark OLESEN authored
- the cray C/C++ compilers appear to be option-compatible with gcc. - no wmake rules for 32bit builds (deemed to be unnecessary)
-
- Jul 31, 2017
-
-
Mark OLESEN authored
- use complete -o filenames, dropped -o nospace to make it more responsive. - restructure completion code to use a unified backend, which makes it easier understand, maintain and re-use. - foamCreateBashCompletions now simply outputs to a stdout, and allows quick generation of completion of single applications. - add -fileHandler completion in anticipation of future changes there. - relocated as etc/config.s/bash_completion to prevent inadvertently having two versions (.com, .org) installed at the same time.
-
- Jul 05, 2017
-
-
Mark OLESEN authored
- allows configuration without an environment variable. For compatibility still respect FOAM_SIGFPE and FOAM_SETNAN env-variables - The env-variables are now treated as true/false switch values. Previously there was just a check for env exists or not, but this can be fairly fragile for a user's environment.
-
- Jun 21, 2017
-
-
Mark OLESEN authored
- minor cleanup of bash completion script
-
- Jun 14, 2017
-
-
Mark OLESEN authored
-
- Jun 08, 2017
-
-
Andrew Heather authored
-
- Apr 20, 2017
-
-
Mark Olesen authored
- suppress error messages that appear with zsh. According to unset(1p), 'unset -f' unsets a function. If the function was not previously defined, this is a no-op. This is similar for zsh, but there it emits a warning if the function was not previously defined. - avoid 'local' in functions sources from etc/bashrc. ksh does not support this. - use 'command' shell builtin instead of 'type'. Seems to be more consistent between shell flavours.
-
- Apr 03, 2017
-
-
Mark Olesen authored
-
Mark Olesen authored
- this implies that jobControl is a user-resource for OpenFOAM. It was previously located under $WM_PROJECT_INST_DIR/jobControl, but few users will have write access there. - an unset FOAM_JOB_DIR variable is treated as "~/.OpenFOAM/jobControl", which can partially reduce environment clutter. - provide argList::noJobInfo() to conveniently suppress job-info on an individual basis for short-running utilities (eg, foamListTimes) to avoid unneeded clutter.
-
- Mar 29, 2017
-
-
Mark Olesen authored
- permit SYSTEMMPI user adjustments via etc/config.{csh,sh}/mpi-system This can be a convenient place for setting up SYSTEMMPI for OpenFOAM without adjusting bashrc, prefs.sh ... - add a USERMPI type. This represents any generic mpi implementation. The user is responsible for supplying an appropriate wmake/rules/General/mplibUSERMPI file and managing all settings. This type of setup can be useful in combination with specific build systems (SPACK, EASYBUILD, etc) or module systems for which the MPI variant is part of the installed configuration.
-
- Mar 23, 2017
-
-
Mark Olesen authored
- cleanup variables last in etc/bashrc for a clean exit code
-
- Mar 22, 2017
-
-
Mark Olesen authored
- this allows the sys-admin to provide base values independent of any WM_PROJECT_SITE value.
-
- Mar 13, 2017
-
-
Henry Weller authored
Resolves patch request https://bugs.openfoam.org/view.php?id=2490
-
- Mar 20, 2017
-
-
Mark Olesen authored
- handle sourcing bashrc with a relative path (issue #383) - handle sourcing from bash and zsh. Still need manual intervention when sourcing dash, sh, or ksh. - replace grep in etc/cshrc with sed only - logical instead of physical path for WM_PROJECT_DIR (issue #431). Doesn't seem to be possible for csh/tcsh. * Continue using physical locations when comparing directories, but not for the top-level FOAM_INST_DIR, WM_PROJECT_DIR. - relocate WM_CC, WM_CXX overrides from etc/config.*/compiler to etc/config.*/settings to ensure that they are left untouched when etc/config.sh/compiler is sourced while making third-party packages (eg, gcc, llvm, CGAL). - provide fallback FOAM_TUTORIALS setting in RunFunctions STYLE: remove "~OpenFOAM" fallback as being too rare, non-obvious
-
- Mar 14, 2017
-
-
Mark Olesen authored
-
- Mar 10, 2017
-
-
Mark Olesen authored
- easier to test or use different versions - change WM_CXXFLAGS to -std=c++11 instead of -std=c++0x
-
- Feb 23, 2017
-
-
Mark Olesen authored
Can now use this: _foamSourceEtc config.sh/scotch _foamSourceEtc config.csh/scotch instead of this: _foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch) _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/scotch` In the bash/sh version, leave the _foamSource function for now, since ThirdParty is still relying on it. STYLE: elminate while-loop for _foamAddPath etc since this type of construct isn't readily possible for csh and isn't being used anywhere.
-
- Feb 20, 2017
-
-
Mark Olesen authored
- bump ADIOS version to 1.11.1
-
Mark Olesen authored
-
- Feb 16, 2017
-
-
Mark Olesen authored
- makes it easier to switch between mpi implementations (eg, openmpi, intelmpi etc) - add comment about compiler setting for KNL
-
- Dec 16, 2016
-
-
Mark Olesen authored
- sometimes used for off-screen rendering. Only add to library-path when they are actually available
-
- Dec 15, 2016
-
-
Mark Olesen authored
- the configuration settings can be used for the third-party build, but the configuration is not yet actively enabled in etc/bashrc, etc/cshrc
-
- Dec 01, 2016
-
-
Henry Weller authored
Resolves request http://bugs.openfoam.org/view.php?id=2367
-
- Nov 20, 2016
-
-
Mark Olesen authored
- consistently use SYSTEMOPENMPI for both sh and csh versions (inadvertently changed in ee5251a7).
-
- Nov 04, 2016
-
-
Henry Weller authored
Patch contributed by Bruno Santos Resolves bug-report http://bugs.openfoam.org/view.php?id=2310
-
- Oct 29, 2016
-
-
Henry Weller authored
Patch contributed by Bruno Santos Resolves bug-report http://bugs.openfoam.org/view.php?id=2312
-
- Oct 28, 2016
-
-
Mark Olesen authored
- It is incorrect to prefix the assignment with an 'export' since this automatically marks the overall command as successful and circumvents the fallback. There is no simple way to have proper behaviour when sourced with a local directory path, but at least it now uses the fallback. It is still easy to wreak the mechanism with valid but confusing input. For example, ". /path/to/openfoam/etc/././bashrc" The only real certainty is that "${BASH_SOURCE%/*}" should point to the 'etc/' directory. In which case, cd ${BASH_SOURCE%/*} # <- now in the etc/ directory pwd=$(pwd -P) # <- fully-qualified path to etc/ pwd=${pwd%/*/*} # <- up two parent levels - This works with ". ./bashrc", but fails with ". bashrc" (probably not so common). - Con: The construct requires an additional sub-shell.
-
Andrew Heather authored
-
Mark Olesen authored
-
- Sep 29, 2016
-
-
Mark Olesen authored
- instead we use the CGAL settings directly since they have the same option of (version | system | none) - may wish to review this again in the future.
-
- Sep 28, 2016
-
-
sergio authored
-
- Sep 03, 2016
-
-
Henry Weller authored
Resolves bug-report http://bugs.openfoam.org/view.php?id=2223
-
- Aug 23, 2016
-
-
Henry Weller authored
- "$FOAM_USER_APPBIN" and "$FOAM_USER_LIBBIN" have been added to "foamOldDirs" in "etc/bashrc" and "etc/config.sh/unset" - "$OPAL_PREFIX" is now undefined in the option "SYSTEMOPENMPI" within "etc/config.sh/mpi", but only if the path defined in this variable is cleaned when using "foamCleanPath". - "$OPAL_PREFIX" is now also conditionally undefined in "etc/config.sh/unset" when the path is picked up by "foamCleanPath". Patch contributed by Bruno Santos Resolved bug-report http://bugs.openfoam.org/view.php?id=2210
-
- Jul 12, 2016
-
-
Mark Olesen authored
- export/setenv WM_COMPILER_TYPE as suggested by Mattijs. - for overall consistency, don't carp about an unset WM_COMPILER_TYPE, since this would only be on the first instance (prior to the export/setenv) and would be confusing about why/when this message may occur. - reduce clutter: only use (system|ThirdParty) for WM_COMPILER_TYPE. Drop the old 'OpenFOAM' setting for WM_COMPILER_TYPE, which was transitional in early 2011. - make the error messages more meaningful
-