From 1022f4fc49cc85655e6c7a1c943703b22a7a7065 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Mon, 28 Nov 2016 09:27:13 +0000 Subject: [PATCH] STYLE: Minor code formatting --- .../ensight/part/ensightPartFaces.H | 51 +++++----- src/fileFormats/ensight/part/ensightFaces.H | 95 +++++++++---------- 2 files changed, 72 insertions(+), 74 deletions(-) diff --git a/src/conversion/ensight/part/ensightPartFaces.H b/src/conversion/ensight/part/ensightPartFaces.H index 974ca68a05..bdb6c062c8 100644 --- a/src/conversion/ensight/part/ensightPartFaces.H +++ b/src/conversion/ensight/part/ensightPartFaces.H @@ -138,44 +138,43 @@ public: // Member Functions - // Access + // Access - //- Part index (0-based) - virtual label index() const - { - return ensightFaces::index(); - } + //- Part index (0-based) + virtual label index() const + { + return ensightFaces::index(); + } - //- Number of elements in this part - virtual label size() const - { - return ensightFaces::size(); - } + //- Number of elements in this part + virtual label size() const + { + return ensightFaces::size(); + } - //- Return the patch index, -1 when not in use. - inline label patchIndex() const - { - return patchIndex_; - } + //- Return the patch index, -1 when not in use. + inline label patchIndex() const + { + return patchIndex_; + } - // Output + // Output - //- Write summary information about the object - virtual void writeSummary(Ostream&) const; + //- Write summary information about the object + virtual void writeSummary(Ostream&) const; - //- Write geometry - virtual void write(ensightGeoFile&) const; + //- Write geometry + virtual void write(ensightGeoFile&) const; - //- Helper: write geometry given the pointField - virtual void write(ensightGeoFile&, const pointField&) const; + //- Helper: write geometry given the pointField + virtual void write(ensightGeoFile&, const pointField&) const; - //- Print various types of debugging information - virtual void dumpInfo(Ostream&) const; - + //- Print various types of debugging information + virtual void dumpInfo(Ostream&) const; }; diff --git a/src/fileFormats/ensight/part/ensightFaces.H b/src/fileFormats/ensight/part/ensightFaces.H index dfb16859c0..ddce1410d8 100644 --- a/src/fileFormats/ensight/part/ensightFaces.H +++ b/src/fileFormats/ensight/part/ensightFaces.H @@ -132,83 +132,82 @@ public: // Member Functions - // Access + // Access - //- The index in a list. - inline label index() const; + //- The index in a list. + inline label index() const; - //- The index in a list, non-const access. - inline label& index(); + //- The index in a list, non-const access. + inline label& index(); - //- The processor local size of all elements. - inline label size() const; + //- The processor local size of all elements. + inline label size() const; - //- The global number of the specified element type. - // This value is only meaningful after a reduce operation. - inline label total(const enum elemType) const; + //- The global number of the specified element type. + // This value is only meaningful after a reduce operation. + inline label total(const enum elemType) const; - //- The global number of all element types. - // This value is only meaningful after a reduce operation. - label total() const; + //- The global number of all element types. + // This value is only meaningful after a reduce operation. + label total() const; - //- The processor local sizes per element type. - FixedList sizes() const; + //- The processor local sizes per element type. + FixedList sizes() const; - //- The global numbers per element type. - // This value is only meaningful after a reduce operation. - const FixedList& totals() const; + //- The global numbers per element type. + // This value is only meaningful after a reduce operation. + const FixedList& totals() const; - //- Return the (local) face ids of the specified element type - inline const labelUList& faceIds(const enum elemType) const; + //- Return the (local) face ids of the specified element type + inline const labelUList& faceIds(const enum elemType) const; - //- Return the face ids of all elements - inline const labelUList& faceIds() const; + //- Return the face ids of all elements + inline const labelUList& faceIds() const; - //- Return the flip-map of all elements - inline const boolList& flipMap() const; + //- Return the flip-map of all elements + inline const boolList& flipMap() const; - //- Starting offset of element type. - label offset(const enum elemType what) const; + //- Starting offset of element type. + label offset(const enum elemType what) const; - // Edit + // Edit - //- Classify the face types, set element list. - void classify(const faceList& faces); + //- Classify the face types, set element list. + void classify(const faceList& faces); - //- Classify the face types, set element list. - // The indirect addressing can be used when classifying groups of - // face (eg, from a faceZone etc) with an optional flipMap. - // The optional exclude marker can be used to skip faces on particular - // boundary types or regions. - void classify - ( - const faceList& faces, - const labelUList& addressing, - const boolList& flipMap = boolList(), - const PackedBoolList& exclude = PackedBoolList() - ); + //- Classify the face types, set element list. + // The indirect addressing can be used when classifying groups of + // face (eg, from a faceZone etc) with an optional flipMap. + // The optional exclude marker can be used to skip faces on particular + // boundary types or regions. + void classify + ( + const faceList& faces, + const labelUList& addressing, + const boolList& flipMap = boolList(), + const PackedBoolList& exclude = PackedBoolList() + ); - //- Set addressable sizes to zero, free up addressing memory. - void clear(); + //- Set addressable sizes to zero, free up addressing memory. + void clear(); - //- Sum element counts across all processes. - void reduce(); + //- Sum element counts across all processes. + void reduce(); - //- Sort element lists numerically. - void sort(); + //- Sort element lists numerically. + void sort(); // Member operators //- Return element from linear-list. inline label operator[](const label i) const; - };