Minor bug fixes
This commit is contained in:
parent
d2b51745dc
commit
82ddb504b5
4 changed files with 18 additions and 10 deletions
|
@ -22,8 +22,6 @@ Pstream/Allwmake
|
||||||
wmake libo OSspecific/$WM_OSTYPE
|
wmake libo OSspecific/$WM_OSTYPE
|
||||||
wmake libso OpenFOAM
|
wmake libso OpenFOAM
|
||||||
|
|
||||||
wmake libso multiSolver
|
|
||||||
|
|
||||||
# Decomposition methods needed by meshTools
|
# Decomposition methods needed by meshTools
|
||||||
decompositionMethods/AllwmakeLnInclude
|
decompositionMethods/AllwmakeLnInclude
|
||||||
decompositionMethods/Allwmake
|
decompositionMethods/Allwmake
|
||||||
|
@ -68,4 +66,6 @@ fvAgglomerationMethods/Allwmake
|
||||||
|
|
||||||
wmake libso engine
|
wmake libso engine
|
||||||
|
|
||||||
|
wmake libso multiSolver
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmakeLnInclude dynamicMesh
|
|
||||||
|
|
||||||
wmake libso dynamicMesh
|
wmake libso dynamicMesh
|
||||||
|
|
||||||
# Make meshMotion solvers
|
# Make meshMotion solvers
|
||||||
|
|
|
@ -50,13 +50,13 @@ Foam::magLongDelta::magLongDelta(const fvMesh& mesh)
|
||||||
|
|
||||||
Foam::magLongDelta::~magLongDelta()
|
Foam::magLongDelta::~magLongDelta()
|
||||||
{
|
{
|
||||||
clearData();
|
clearOut();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::magLongDelta::clearData() const
|
void Foam::magLongDelta::clearOut() const
|
||||||
{
|
{
|
||||||
deleteDemandDrivenData(magLongDeltaPtr_);
|
deleteDemandDrivenData(magLongDeltaPtr_);
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,14 @@ void Foam::magLongDelta::clearData() const
|
||||||
|
|
||||||
void Foam::magLongDelta::makeMagLongDistance() 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() :"
|
Info<< "magLongDelta::makeMagLongDistance() :"
|
||||||
<< "Constructing magnitude of long cell distance"
|
<< "Constructing magnitude of long cell distance"
|
||||||
|
@ -144,6 +151,8 @@ const Foam::surfaceScalarField& Foam::magLongDelta::magDelta() const
|
||||||
{
|
{
|
||||||
makeMagLongDistance();
|
makeMagLongDistance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return *magLongDeltaPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -164,7 +173,7 @@ bool Foam::magLongDelta::movePoints() const
|
||||||
<< "Clearing long cell distance data" << endl;
|
<< "Clearing long cell distance data" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
clearData();
|
clearOut();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -178,7 +187,7 @@ bool Foam::magLongDelta::updateMesh(const mapPolyMesh& mpm) const
|
||||||
<< "Clearing long cell distance data" << endl;
|
<< "Clearing long cell distance data" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
clearData();
|
clearOut();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,8 @@ class magLongDelta
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
//- Clear data
|
//- Clear data
|
||||||
void clearData() const;
|
void clearOut() const;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
Reference in a new issue