From bafaf17599ad62c9e8469cfebac4c05ee9ff5ecc Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 2 Aug 2017 10:47:00 +0100 Subject: [PATCH] Bugfix: minor adjustments --- bin/foamChangeCopyright | 2 +- bin/tools/RunFunctions | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/foamChangeCopyright b/bin/foamChangeCopyright index 902e0740e..4e2497606 100755 --- a/bin/foamChangeCopyright +++ b/bin/foamChangeCopyright @@ -19,7 +19,7 @@ $1 along with foam-extend. If not, see . $2 !s; s!^(([#%]*) *)\\\\ / F ield \|.*!$1\\\\ / F ield | foam-extend: Open Source CFD!m; -s!^(([#%]*) *) \\\\ / O peration \|.*!$1 \\\\ / O peration | Version: 3.2!m; +s!^(([#%]*) *) \\\\ / O peration \|.*!$1 \\\\ / O peration | Version: 4.0!m; s!^(([#%]*) *) \\\\ / A nd \|.*!$1 \\\\ / A nd | Web: http://www.foam-extend.org!m; s!^(([#%]*) *) \\\\/ M anipulation \|.*!$1 \\\\/ M anipulation | For copyright notice see file Copyright!m; s!README file for version 3.[01]\*!README file for version 3.2*!; diff --git a/bin/tools/RunFunctions b/bin/tools/RunFunctions index 0178dfaea..4b3b06e2f 100644 --- a/bin/tools/RunFunctions +++ b/bin/tools/RunFunctions @@ -52,7 +52,9 @@ runApplication () echo "$APP_NAME already run on $PWD: remove log file to run" else echo "Running $APP_NAME on $PWD" - $APP_RUN $* > $LOG_NAME 2>&1 + cat system/fvSchemes > $LOG_NAME + cat system/fvSolution >> $LOG_NAME + $APP_RUN $* >> $LOG_NAME 2>&1 fi } @@ -82,6 +84,8 @@ runParallel () # Allow eccentric systems to override the hardcoded mpirun mpirunProg=$WM_MPIRUN_PROG fi + cat system/fvSchemes > $LOG_NAME + cat system/fvSolution >> $LOG_NAME ( $mpirunProg -np $1 $APP_RUN -parallel < /dev/null > $LOG_NAME 2>&1 ) fi }