Minor bug fixes

This commit is contained in:
Hrvoje Jasak 2013-08-14 15:29:04 +01:00
parent d2b51745dc
commit 82ddb504b5
4 changed files with 18 additions and 10 deletions

View file

@ -22,8 +22,6 @@ Pstream/Allwmake
wmake libo OSspecific/$WM_OSTYPE
wmake libso OpenFOAM
wmake libso multiSolver
# Decomposition methods needed by meshTools
decompositionMethods/AllwmakeLnInclude
decompositionMethods/Allwmake
@ -68,4 +66,6 @@ fvAgglomerationMethods/Allwmake
wmake libso engine
wmake libso multiSolver
# ----------------------------------------------------------------- end-of-file

View file

@ -2,8 +2,6 @@
cd ${0%/*} || exit 1 # run from this directory
set -x
wmakeLnInclude dynamicMesh
wmake libso dynamicMesh
# Make meshMotion solvers

View file

@ -50,13 +50,13 @@ Foam::magLongDelta::magLongDelta(const fvMesh& mesh)
Foam::magLongDelta::~magLongDelta()
{
clearData();
clearOut();
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::magLongDelta::clearData() const
void Foam::magLongDelta::clearOut() const
{
deleteDemandDrivenData(magLongDeltaPtr_);
}
@ -64,7 +64,14 @@ void Foam::magLongDelta::clearData() const
void Foam::magLongDelta::makeMagLongDistance() const
{
if (debug)
if (magLongDeltaPtr_)
{
FatalErrorIn("void magLongDelta::makeMagLongDistance() const")
<< "Long cell distances already calculated"
<< abort(FatalError);
}
// if (debug)
{
Info<< "magLongDelta::makeMagLongDistance() :"
<< "Constructing magnitude of long cell distance"
@ -144,6 +151,8 @@ const Foam::surfaceScalarField& Foam::magLongDelta::magDelta() const
{
makeMagLongDistance();
}
return *magLongDeltaPtr_;
}
@ -164,7 +173,7 @@ bool Foam::magLongDelta::movePoints() const
<< "Clearing long cell distance data" << endl;
}
clearData();
clearOut();
return true;
}
@ -178,7 +187,7 @@ bool Foam::magLongDelta::updateMesh(const mapPolyMesh& mpm) const
<< "Clearing long cell distance data" << endl;
}
clearData();
clearOut();
return true;
}

View file

@ -74,7 +74,8 @@ class magLongDelta
) const;
//- Clear data
void clearData() const;
void clearOut() const;
public: