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 //- 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,8 +179,7 @@ public:
{} {}
// Destructor //- Destructor
virtual ~decompositionMethod() virtual ~decompositionMethod()
{} {}
@ -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;
}; };

View file

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

View file

@ -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_;

View file

@ -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,9 +226,7 @@ public:
); );
// Destructor //- Destructor
//- Virtual destructor
virtual ~Time(); virtual ~Time();