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,10 +179,9 @@ public:
{}
// Destructor
virtual ~decompositionMethod()
{}
//- Destructor
virtual ~decompositionMethod()
{}
// Member Functions
@ -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,10 +99,9 @@ public:
);
// Destructor
~parMetisDecomp()
{}
//- Destructor
virtual ~parMetisDecomp()
{}
// Member Functions

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_;
@ -74,61 +83,61 @@ public:
// Member functions
//- Return true if this is a processor case
bool processorCase() const
{
return processorCase_;
}
//- Return true if this is a processor case
bool processorCase() const
{
return processorCase_;
}
//- Return root path
const fileName& rootPath() const
{
return rootPath_;
}
//- Return root path
const fileName& rootPath() const
{
return rootPath_;
}
//- Return case name
const fileName& caseName() const
{
return case_;
}
//- Return case name
const fileName& caseName() const
{
return case_;
}
//- Return system name
const word& system() const
{
return system_;
}
//- Return system name
const word& system() const
{
return system_;
}
//- Return system name for the case
// which for parallel runs returns ../system()
fileName caseSystem() const;
//- Return system name for the case
// which for parallel runs returns ../system()
fileName caseSystem() const;
//- Return constant name
const word& constant() const
{
return constant_;
}
//- Return constant name
const word& constant() const
{
return constant_;
}
//- Return constant name for the case
// which for parallel runs returns ../constant()
fileName caseConstant() const;
//- Return constant name for the case
// which for parallel runs returns ../constant()
fileName caseConstant() const;
//- Return path
fileName path() const
{
return rootPath()/caseName();
}
//- Return path
fileName path() const
{
return rootPath()/caseName();
}
//- Return system path
fileName systemPath() const
{
return path()/system();
}
//- Return system path
fileName systemPath() const
{
return path()/system();
}
//- Return constant path
fileName constantPath() const
{
return path()/constant();
}
//- Return constant path
fileName constantPath() const
{
return path()/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,10 +226,8 @@ public:
);
// Destructor
//- Virtual destructor
virtual ~Time();
//- Destructor
virtual ~Time();
// Member functions

View file

@ -44,7 +44,7 @@ namespace Foam
{
/*---------------------------------------------------------------------------*\
Class objectRegistry Declaration
Class objectRegistry Declaration
\*---------------------------------------------------------------------------*/
class objectRegistry