View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003576 | OpenFOAM | Feature | public | 2020-10-16 19:10 | 2020-10-16 22:01 |
Reporter | aprilnovak | Assigned To | henry | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | GNU/Linux | OS | Ubuntu | OS Version | 20.04.1 |
Product Version | dev | ||||
Summary | 0003576: Allow WM_MPLIB to be set externally | ||||
Description | We are developing a wrapper around OpenFOAM that ideally our users would not need to make any local edits to OpenFOAM's etc/bashrc file to get to compile with our SYSTEMMPI (instead of the current default of SYSTEMOPENMPI). We would prefer that users obtain a clean clone of OpenFOAM-dev with custom environment variables set in ~/.bashrc. I would like to propose a simple modification that allows WM_MPLIB to be set outside of `OpenFOAM-dev/etc/bashrc` if not already set: Replace: export WM_MPLIB=SYSTEMOPENMPI With: if [[ -z "${WM_MPLIB}" ]] then export WM_MPLIB=SYSTEMOPENMPI fi | ||||
Tags | No tags attached. | ||||
|
We have had a lot of problem with this kind of logic in the past and have removed it in preference for setting the environment variables in local files, e.g. ~/.OpenFOAM/dev/prefs.sh If you type foamEtcFile -list you will see the list of locations the files are read from, at least one of them should suit your purpose. |
|
That meets my needs perfectly, thanks so much! |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-10-16 19:10 | aprilnovak | New Issue | |
2020-10-16 20:51 | henry | Note Added: 0011623 | |
2020-10-16 21:56 | aprilnovak | Note Added: 0011625 | |
2020-10-16 22:01 | henry | Assigned To | => henry |
2020-10-16 22:01 | henry | Status | new => closed |
2020-10-16 22:01 | henry | Resolution | open => no change required |