mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: Minor code formatting
This commit is contained in:
@ -138,44 +138,43 @@ public:
|
|||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Part index (0-based)
|
//- Part index (0-based)
|
||||||
virtual label index() const
|
virtual label index() const
|
||||||
{
|
{
|
||||||
return ensightFaces::index();
|
return ensightFaces::index();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//- Number of elements in this part
|
//- Number of elements in this part
|
||||||
virtual label size() const
|
virtual label size() const
|
||||||
{
|
{
|
||||||
return ensightFaces::size();
|
return ensightFaces::size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//- Return the patch index, -1 when not in use.
|
//- Return the patch index, -1 when not in use.
|
||||||
inline label patchIndex() const
|
inline label patchIndex() const
|
||||||
{
|
{
|
||||||
return patchIndex_;
|
return patchIndex_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Output
|
// Output
|
||||||
|
|
||||||
//- Write summary information about the object
|
//- Write summary information about the object
|
||||||
virtual void writeSummary(Ostream&) const;
|
virtual void writeSummary(Ostream&) const;
|
||||||
|
|
||||||
//- Write geometry
|
//- Write geometry
|
||||||
virtual void write(ensightGeoFile&) const;
|
virtual void write(ensightGeoFile&) const;
|
||||||
|
|
||||||
//- Helper: write geometry given the pointField
|
//- Helper: write geometry given the pointField
|
||||||
virtual void write(ensightGeoFile&, const pointField&) const;
|
virtual void write(ensightGeoFile&, const pointField&) const;
|
||||||
|
|
||||||
|
|
||||||
//- Print various types of debugging information
|
//- Print various types of debugging information
|
||||||
virtual void dumpInfo(Ostream&) const;
|
virtual void dumpInfo(Ostream&) const;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -132,83 +132,82 @@ public:
|
|||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- The index in a list.
|
//- The index in a list.
|
||||||
inline label index() const;
|
inline label index() const;
|
||||||
|
|
||||||
//- The index in a list, non-const access.
|
//- The index in a list, non-const access.
|
||||||
inline label& index();
|
inline label& index();
|
||||||
|
|
||||||
//- The processor local size of all elements.
|
//- The processor local size of all elements.
|
||||||
inline label size() const;
|
inline label size() const;
|
||||||
|
|
||||||
//- The global number of the specified element type.
|
//- The global number of the specified element type.
|
||||||
// This value is only meaningful after a reduce operation.
|
// This value is only meaningful after a reduce operation.
|
||||||
inline label total(const enum elemType) const;
|
inline label total(const enum elemType) const;
|
||||||
|
|
||||||
//- The global number of all element types.
|
//- The global number of all element types.
|
||||||
// This value is only meaningful after a reduce operation.
|
// This value is only meaningful after a reduce operation.
|
||||||
label total() const;
|
label total() const;
|
||||||
|
|
||||||
|
|
||||||
//- The processor local sizes per element type.
|
//- The processor local sizes per element type.
|
||||||
FixedList<label, 3> sizes() const;
|
FixedList<label, 3> sizes() const;
|
||||||
|
|
||||||
//- The global numbers per element type.
|
//- The global numbers per element type.
|
||||||
// This value is only meaningful after a reduce operation.
|
// This value is only meaningful after a reduce operation.
|
||||||
const FixedList<label, 3>& totals() const;
|
const FixedList<label, 3>& totals() const;
|
||||||
|
|
||||||
|
|
||||||
//- Return the (local) face ids of the specified element type
|
//- Return the (local) face ids of the specified element type
|
||||||
inline const labelUList& faceIds(const enum elemType) const;
|
inline const labelUList& faceIds(const enum elemType) const;
|
||||||
|
|
||||||
//- Return the face ids of all elements
|
//- Return the face ids of all elements
|
||||||
inline const labelUList& faceIds() const;
|
inline const labelUList& faceIds() const;
|
||||||
|
|
||||||
//- Return the flip-map of all elements
|
//- Return the flip-map of all elements
|
||||||
inline const boolList& flipMap() const;
|
inline const boolList& flipMap() const;
|
||||||
|
|
||||||
|
|
||||||
//- Starting offset of element type.
|
//- Starting offset of element type.
|
||||||
label offset(const enum elemType what) const;
|
label offset(const enum elemType what) const;
|
||||||
|
|
||||||
|
|
||||||
// Edit
|
// Edit
|
||||||
|
|
||||||
//- Classify the face types, set element list.
|
//- Classify the face types, set element list.
|
||||||
void classify(const faceList& faces);
|
void classify(const faceList& faces);
|
||||||
|
|
||||||
|
|
||||||
//- Classify the face types, set element list.
|
//- Classify the face types, set element list.
|
||||||
// The indirect addressing can be used when classifying groups of
|
// The indirect addressing can be used when classifying groups of
|
||||||
// face (eg, from a faceZone etc) with an optional flipMap.
|
// face (eg, from a faceZone etc) with an optional flipMap.
|
||||||
// The optional exclude marker can be used to skip faces on particular
|
// The optional exclude marker can be used to skip faces on particular
|
||||||
// boundary types or regions.
|
// boundary types or regions.
|
||||||
void classify
|
void classify
|
||||||
(
|
(
|
||||||
const faceList& faces,
|
const faceList& faces,
|
||||||
const labelUList& addressing,
|
const labelUList& addressing,
|
||||||
const boolList& flipMap = boolList(),
|
const boolList& flipMap = boolList(),
|
||||||
const PackedBoolList& exclude = PackedBoolList()
|
const PackedBoolList& exclude = PackedBoolList()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
//- Set addressable sizes to zero, free up addressing memory.
|
//- Set addressable sizes to zero, free up addressing memory.
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
//- Sum element counts across all processes.
|
//- Sum element counts across all processes.
|
||||||
void reduce();
|
void reduce();
|
||||||
|
|
||||||
//- Sort element lists numerically.
|
//- Sort element lists numerically.
|
||||||
void sort();
|
void sort();
|
||||||
|
|
||||||
|
|
||||||
// Member operators
|
// Member operators
|
||||||
|
|
||||||
//- Return element from linear-list.
|
//- Return element from linear-list.
|
||||||
inline label operator[](const label i) const;
|
inline label operator[](const label i) const;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user