From ff162da2f80d8d78335f2664e101dff66b493f64 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 2 Jul 2018 07:28:51 +0200 Subject: [PATCH] BUG: missing _foamEtc definition (fixes #38) - this function definition (as per the OpenFOAM functions) is required for compatibility when sourcing some config files (eg, mpi). --- etc/tools/ThirdPartyFunctions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/tools/ThirdPartyFunctions b/etc/tools/ThirdPartyFunctions index b3f0c33..54c185f 100644 --- a/etc/tools/ThirdPartyFunctions +++ b/etc/tools/ThirdPartyFunctions @@ -143,6 +143,9 @@ fi # Source an etc/config.sh file _foamConfig() { eval "$($WM_PROJECT_DIR/bin/foamEtcFile -sh -config $@)"; } +# Source an etc file (as per OpenFOAM functions). Eg, for mpi setup. +_foamEtc() { eval "$($WM_PROJECT_DIR/bin/foamEtcFile -sh $@)"; } + #------------------------------------------------------------------------------ #