Comments and formatting

This commit is contained in:
Hrvoje Jasak 2018-02-07 14:42:26 +00:00
parent bb8423f3e2
commit fdb48d643c
5 changed files with 83 additions and 65 deletions

View file

@ -113,9 +113,11 @@ private:
//- Disallow default bitwise assignment
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();
public:
//- Runtime type information
@ -177,8 +179,7 @@ public:
{}
// Destructor
//- Destructor
virtual ~decompositionMethod()
{}
@ -201,7 +202,6 @@ public:
const scalarField& pointWeights
) = 0;
//- Decompose cell clusters
// Calls decompose (below) with uniform weights
virtual labelList decompose
@ -218,7 +218,6 @@ public:
const scalarField& coarseWeights
);
//- Decompose cells with weights with explicitly provided connectivity
virtual labelList decompose
(
@ -226,7 +225,6 @@ public:
const pointField& cc,
const scalarField& cWeights
) = 0;
};

View file

@ -49,6 +49,7 @@ class parMetisDecomp
{
// Private data
//- Mesh reference
const polyMesh& mesh_;
@ -98,9 +99,8 @@ public:
);
// Destructor
~parMetisDecomp()
//- Destructor
virtual ~parMetisDecomp()
{}

View file

@ -51,10 +51,19 @@ class TimePaths
{
// Private data
//- Processor case
bool processorCase_;
//- Root path
fileName rootPath_;
//- Case name
fileName case_;
//- System directory name
word system_;
//- Constant directory name
word constant_;

View file

@ -104,23 +104,36 @@ public:
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 data
//- Start time index
label startTimeIndex_;
//- Start time
scalar startTime_;
//- End time
scalar endTime_;
static const NamedEnum<stopAtControls, 4> stopAtControlNames_;
//- Stop at
stopAtControls stopAt_;
static const NamedEnum<writeControls, 5> writeControlNames_;
//- Write control
writeControls writeControl_;
//- Write interval
scalar writeInterval_;
//- Purge write
label purgeWrite_;
mutable FIFOStack<word> previousOutputTimes_;
@ -213,9 +226,7 @@ public:
);
// Destructor
//- Virtual destructor
//- Destructor
virtual ~Time();