Comments and formatting
This commit is contained in:
parent
bb8423f3e2
commit
fdb48d643c
5 changed files with 83 additions and 65 deletions
|
@ -113,9 +113,11 @@ private:
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const decompositionMethod&);
|
void operator=(const decompositionMethod&);
|
||||||
|
|
||||||
//- load missing libraries to avoid compile-time linking to external dependencies
|
//- Load missing libraries to avoid compile-time linking
|
||||||
|
// to external dependencies
|
||||||
static void loadExternalLibraries();
|
static void loadExternalLibraries();
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
|
@ -177,10 +179,9 @@ public:
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
//- Destructor
|
||||||
|
virtual ~decompositionMethod()
|
||||||
virtual ~decompositionMethod()
|
{}
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
@ -201,7 +202,6 @@ public:
|
||||||
const scalarField& pointWeights
|
const scalarField& pointWeights
|
||||||
) = 0;
|
) = 0;
|
||||||
|
|
||||||
|
|
||||||
//- Decompose cell clusters
|
//- Decompose cell clusters
|
||||||
// Calls decompose (below) with uniform weights
|
// Calls decompose (below) with uniform weights
|
||||||
virtual labelList decompose
|
virtual labelList decompose
|
||||||
|
@ -218,7 +218,6 @@ public:
|
||||||
const scalarField& coarseWeights
|
const scalarField& coarseWeights
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
//- Decompose cells with weights with explicitly provided connectivity
|
//- Decompose cells with weights with explicitly provided connectivity
|
||||||
virtual labelList decompose
|
virtual labelList decompose
|
||||||
(
|
(
|
||||||
|
@ -226,7 +225,6 @@ public:
|
||||||
const pointField& cc,
|
const pointField& cc,
|
||||||
const scalarField& cWeights
|
const scalarField& cWeights
|
||||||
) = 0;
|
) = 0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,7 @@ class parMetisDecomp
|
||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
|
//- Mesh reference
|
||||||
const polyMesh& mesh_;
|
const polyMesh& mesh_;
|
||||||
|
|
||||||
|
|
||||||
|
@ -98,10 +99,9 @@ public:
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
//- Destructor
|
||||||
|
virtual ~parMetisDecomp()
|
||||||
~parMetisDecomp()
|
{}
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
|
@ -51,10 +51,19 @@ class TimePaths
|
||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
|
//- Processor case
|
||||||
bool processorCase_;
|
bool processorCase_;
|
||||||
|
|
||||||
|
//- Root path
|
||||||
fileName rootPath_;
|
fileName rootPath_;
|
||||||
|
|
||||||
|
//- Case name
|
||||||
fileName case_;
|
fileName case_;
|
||||||
|
|
||||||
|
//- System directory name
|
||||||
word system_;
|
word system_;
|
||||||
|
|
||||||
|
//- Constant directory name
|
||||||
word constant_;
|
word constant_;
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,61 +83,61 @@ public:
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
|
|
||||||
//- Return true if this is a processor case
|
//- Return true if this is a processor case
|
||||||
bool processorCase() const
|
bool processorCase() const
|
||||||
{
|
{
|
||||||
return processorCase_;
|
return processorCase_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return root path
|
//- Return root path
|
||||||
const fileName& rootPath() const
|
const fileName& rootPath() const
|
||||||
{
|
{
|
||||||
return rootPath_;
|
return rootPath_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return case name
|
//- Return case name
|
||||||
const fileName& caseName() const
|
const fileName& caseName() const
|
||||||
{
|
{
|
||||||
return case_;
|
return case_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return system name
|
//- Return system name
|
||||||
const word& system() const
|
const word& system() const
|
||||||
{
|
{
|
||||||
return system_;
|
return system_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return system name for the case
|
//- Return system name for the case
|
||||||
// which for parallel runs returns ../system()
|
// which for parallel runs returns ../system()
|
||||||
fileName caseSystem() const;
|
fileName caseSystem() const;
|
||||||
|
|
||||||
//- Return constant name
|
//- Return constant name
|
||||||
const word& constant() const
|
const word& constant() const
|
||||||
{
|
{
|
||||||
return constant_;
|
return constant_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return constant name for the case
|
//- Return constant name for the case
|
||||||
// which for parallel runs returns ../constant()
|
// which for parallel runs returns ../constant()
|
||||||
fileName caseConstant() const;
|
fileName caseConstant() const;
|
||||||
|
|
||||||
//- Return path
|
//- Return path
|
||||||
fileName path() const
|
fileName path() const
|
||||||
{
|
{
|
||||||
return rootPath()/caseName();
|
return rootPath()/caseName();
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return system path
|
//- Return system path
|
||||||
fileName systemPath() const
|
fileName systemPath() const
|
||||||
{
|
{
|
||||||
return path()/system();
|
return path()/system();
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return constant path
|
//- Return constant path
|
||||||
fileName constantPath() const
|
fileName constantPath() const
|
||||||
{
|
{
|
||||||
return path()/constant();
|
return path()/constant();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -104,23 +104,36 @@ public:
|
||||||
scientific = ios_base::scientific
|
scientific = ios_base::scientific
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//- Stop at control names
|
||||||
|
static const NamedEnum<stopAtControls, 4> stopAtControlNames_;
|
||||||
|
|
||||||
|
//- Write control names
|
||||||
|
static const NamedEnum<writeControls, 5> writeControlNames_;
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected data
|
// Protected data
|
||||||
|
|
||||||
|
//- Start time index
|
||||||
label startTimeIndex_;
|
label startTimeIndex_;
|
||||||
|
|
||||||
|
//- Start time
|
||||||
scalar startTime_;
|
scalar startTime_;
|
||||||
|
|
||||||
|
//- End time
|
||||||
scalar endTime_;
|
scalar endTime_;
|
||||||
|
|
||||||
static const NamedEnum<stopAtControls, 4> stopAtControlNames_;
|
//- Stop at
|
||||||
stopAtControls stopAt_;
|
stopAtControls stopAt_;
|
||||||
|
|
||||||
static const NamedEnum<writeControls, 5> writeControlNames_;
|
//- Write control
|
||||||
writeControls writeControl_;
|
writeControls writeControl_;
|
||||||
|
|
||||||
|
//- Write interval
|
||||||
scalar writeInterval_;
|
scalar writeInterval_;
|
||||||
|
|
||||||
|
//- Purge write
|
||||||
label purgeWrite_;
|
label purgeWrite_;
|
||||||
mutable FIFOStack<word> previousOutputTimes_;
|
mutable FIFOStack<word> previousOutputTimes_;
|
||||||
|
|
||||||
|
@ -213,10 +226,8 @@ public:
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
//- Destructor
|
||||||
|
virtual ~Time();
|
||||||
//- Virtual destructor
|
|
||||||
virtual ~Time();
|
|
||||||
|
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
|
|
|
@ -44,7 +44,7 @@ namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class objectRegistry Declaration
|
Class objectRegistry Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class objectRegistry
|
class objectRegistry
|
||||||
|
|
Reference in a new issue