Bugfix: minor adjustments

This commit is contained in:
Hrvoje Jasak 2017-08-02 10:47:00 +01:00
parent 0326f7259f
commit bafaf17599
2 changed files with 6 additions and 2 deletions

View file

@ -19,7 +19,7 @@ $1 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
$2 $2
!s; !s;
s!^(([#%]*) *)\\\\ / F ield \|.*!$1\\\\ / F ield | foam-extend: Open Source CFD!m; 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!^(([#%]*) *) \\\\ / 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!^(([#%]*) *) \\\\/ 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*!; s!README file for version 3.[01]\*!README file for version 3.2*!;

View file

@ -52,7 +52,9 @@ runApplication ()
echo "$APP_NAME already run on $PWD: remove log file to run" echo "$APP_NAME already run on $PWD: remove log file to run"
else else
echo "Running $APP_NAME on $PWD" 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 fi
} }
@ -82,6 +84,8 @@ runParallel ()
# Allow eccentric systems to override the hardcoded mpirun # Allow eccentric systems to override the hardcoded mpirun
mpirunProg=$WM_MPIRUN_PROG mpirunProg=$WM_MPIRUN_PROG
fi fi
cat system/fvSchemes > $LOG_NAME
cat system/fvSolution >> $LOG_NAME
( $mpirunProg -np $1 $APP_RUN -parallel < /dev/null > $LOG_NAME 2>&1 ) ( $mpirunProg -np $1 $APP_RUN -parallel < /dev/null > $LOG_NAME 2>&1 )
fi fi
} }