Bugfixes for swak4foam + minor fixes from B.Gschaider
This commit is contained in:
parent
6a41a3a022
commit
803aa6a50f
5 changed files with 31 additions and 7 deletions
16
ThirdParty/AllMake.stage5
vendored
16
ThirdParty/AllMake.stage5
vendored
|
@ -62,7 +62,7 @@ echo
|
|||
# which is also replicated under the Breeder_2.0 section of the Subversion repository
|
||||
#
|
||||
|
||||
SWAK_RELEASE_VERSION=0.4.0
|
||||
SWAK_RELEASE_VERSION=0.4.2
|
||||
|
||||
if [ -z "$SWAK4FOAM_SYSTEM" ]
|
||||
then
|
||||
|
@ -78,16 +78,22 @@ then
|
|||
then
|
||||
echo "Using Mercurial/hg to download the source code for swak4Foam"
|
||||
(
|
||||
cd ./rpmBuild/BUILD;
|
||||
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION;
|
||||
cd swak4Foam-$SWAK_RELEASE_VERSION;
|
||||
hg checkout version_${SWAK_RELEASE_VERSION}_v2.x
|
||||
cd ./rpmBuild/BUILD
|
||||
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION
|
||||
cd swak4Foam-$SWAK_RELEASE_VERSION
|
||||
#hg checkout version_${SWAK_RELEASE_VERSION}_v2.x
|
||||
# We use dev-branch temporarily
|
||||
hg checkout compile_foamExtend4.1
|
||||
)
|
||||
else
|
||||
echo "Warning: Mercurial/hg is not installed. Switching to an alternate Subversion repository"
|
||||
command -v svn >/dev/null
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
# Disabled temporarily
|
||||
echo "Subversion/svn is currently not supported"
|
||||
exit -1
|
||||
|
||||
echo "Using Subversion/svn to download the source code for swak4Foam"
|
||||
(cd ./rpmBuild/BUILD; svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION)
|
||||
else
|
||||
|
|
|
@ -11,6 +11,8 @@ if path.exists(filename):
|
|||
fullFile=filename
|
||||
|
||||
for v in ["PATH","LD_LIBRARY_PATH"]:
|
||||
if not v in environ:
|
||||
continue
|
||||
if not fullFile:
|
||||
for d in environ[v].split(':'):
|
||||
if path.exists(path.join(d,filename)):
|
||||
|
|
|
@ -91,7 +91,7 @@ export WM_THIRD_PARTY_DIR=$WM_PROJECT_DIR/ThirdParty
|
|||
# Use 'set' and 'unset' to adjust for your environent
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
# For AllMake.stage1
|
||||
export WM_THIRD_PARTY_USE_BISON_27=1
|
||||
#export WM_THIRD_PARTY_USE_BISON_27=1
|
||||
#export WM_THIRD_PARTY_USE_CMAKE_322=1
|
||||
|
||||
#
|
||||
|
|
|
@ -77,7 +77,7 @@ setenv WM_THIRD_PARTY_DIR $WM_PROJECT_DIR/ThirdParty
|
|||
# This can be overriden in prefs.sh
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
# For AllMake.stage1
|
||||
setenv WM_THIRD_PARTY_USE_BISON_27 1
|
||||
#setenv WM_THIRD_PARTY_USE_BISON_27 1
|
||||
#setenv WM_THIRD_PARTY_USE_CMAKE_322 1
|
||||
|
||||
#
|
||||
|
|
|
@ -1132,6 +1132,22 @@ Foam::Time& Foam::Time::operator+=(const scalar deltaT)
|
|||
|
||||
Foam::Time& Foam::Time::operator++()
|
||||
{
|
||||
if (!subCycling_)
|
||||
{
|
||||
if (timeIndex_ == startTimeIndex_)
|
||||
{
|
||||
addProfile2(fo,"functionObjects_.start()");
|
||||
|
||||
functionObjects_.start();
|
||||
}
|
||||
else
|
||||
{
|
||||
addProfile2(fo,"functionObjects_.execute()");
|
||||
|
||||
functionObjects_.execute();
|
||||
}
|
||||
}
|
||||
|
||||
deltaT0_ = deltaTSave_;
|
||||
deltaTSave_ = deltaT_;
|
||||
|
||||
|
|
Reference in a new issue