Skip to content

Commit

Permalink
Reformat files
Browse files Browse the repository at this point in the history
  • Loading branch information
kursatyurt committed Mar 16, 2023
1 parent 1a83235 commit 7c27b22
Show file tree
Hide file tree
Showing 310 changed files with 52,115 additions and 43,626 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ assignees: ''
- C++ compiler and version: [e.g., g++ (GCC) 4.8.5]
- MPI implementation and version: [e.g., OpenMPI 3.0.0]
- SU2 Version: [e.g., v6.2.0]

1 change: 0 additions & 1 deletion .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ changelog:
- title: 'Other Changes'
labels:
- "*"

1 change: 0 additions & 1 deletion .github/workflows/release-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,3 @@ jobs:
asset_path: ${{matrix.os_bin}}.zip
asset_name: SU2-${{ steps.update_release.outputs.tagname }}-${{matrix.os_bin}}.zip
asset_content_type: application/zip

2 changes: 1 addition & 1 deletion .lgtm.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extraction:
cpp:
prepare:
packages:
packages:
- libboost-all-dev
configure:
command:
Expand Down
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ sudo: required

language: c++

cache:
cache:
- ccache
- pip
- directories:
- directories:
- $HOME/.pyenv_cache

compiler:
Expand All @@ -19,7 +19,7 @@ notifications:
email:
recipients:
- [email protected]

branches:
only:
- develop
Expand Down Expand Up @@ -81,7 +81,7 @@ before_script:

# Get the tutorial cases
- git clone --depth=1 -b develop https://github.com/su2code/su2code.github.io ./Tutorials

# Enter the SU2/TestCases/ directory, which is now ready to run
- cd TestCases/

Expand Down
5 changes: 2 additions & 3 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Examples of unacceptable behavior by participants include:
* Trolling, insulting/derogatory comments, and personal or political attacks.
* Public or private harassment.
* Publishing others' private information, such as a physical or electronic
address, without explicit permission.
address, without explicit permission.
* Other conduct which could reasonably be considered inappropriate in a
professional setting.

Expand Down Expand Up @@ -67,7 +67,7 @@ faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

Consequences may include:
* Downgrade or removal of repository permissions such as admin and write
* Downgrade or removal of repository permissions such as admin and write
permissions.
* Removal from the su2code organization on Github.
* Being blocked from the su2code repository.
Expand All @@ -79,4 +79,3 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], versi
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

18 changes: 9 additions & 9 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.

Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
Expand Down Expand Up @@ -111,7 +111,7 @@ modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.

GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

Expand Down Expand Up @@ -158,7 +158,7 @@ Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.

2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
Expand Down Expand Up @@ -216,7 +216,7 @@ instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.

Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
Expand Down Expand Up @@ -267,7 +267,7 @@ Library will still fall under Section 6.)
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.

6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
Expand Down Expand Up @@ -329,7 +329,7 @@ restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.

7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
Expand Down Expand Up @@ -370,7 +370,7 @@ subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.

11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
Expand Down Expand Up @@ -422,7 +422,7 @@ conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.

14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
Expand Down Expand Up @@ -455,4 +455,4 @@ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.

END OF TERMS AND CONDITIONS
END OF TERMS AND CONDITIONS
30 changes: 13 additions & 17 deletions Common/include/adt/CADTBaseClass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,51 +43,47 @@ using namespace std;
* \author E. van der Weide
*/
class CADTBaseClass {
protected:
unsigned long nLeaves; /*!< \brief Number of leaves in the ADT. */
unsigned short nDimADT; /*!< \brief Number of dimensions of the ADT. */
bool isEmpty; /*!< \brief Whether or not the ADT is empty. */
protected:
unsigned long nLeaves; /*!< \brief Number of leaves in the ADT. */
unsigned short nDimADT; /*!< \brief Number of dimensions of the ADT. */
bool isEmpty; /*!< \brief Whether or not the ADT is empty. */

vector<CADTNodeClass> leaves; /*!< \brief Vector, which contains all the leaves of the ADT. */

#ifdef HAVE_OMP
vector<vector<unsigned long> > FrontLeaves; /*!< \brief Vector used in the tree traversal. */
vector<vector<unsigned long> > FrontLeavesNew; /*!< \brief Vector used in the tree traversal. */
#else
array<vector<unsigned long>,1> FrontLeaves;
array<vector<unsigned long>,1> FrontLeavesNew;
array<vector<unsigned long>, 1> FrontLeaves;
array<vector<unsigned long>, 1> FrontLeavesNew;
#endif
private:
private:
vector<su2double> coorMinLeaves; /*!< \brief Vector, which contains all the minimum coordinates
of the leaves. */
vector<su2double> coorMaxLeaves; /*!< \brief Vector, which contains all the maximum coordinates
of the leaves. */
protected:
protected:
/*!
* \brief Constructor of the class. Nothing to be done.
*/
CADTBaseClass() = default;

/*--- Disable copy operations ---*/
CADTBaseClass(const CADTBaseClass &) = delete;
CADTBaseClass& operator=(const CADTBaseClass &) = delete;
CADTBaseClass(const CADTBaseClass&) = delete;
CADTBaseClass& operator=(const CADTBaseClass&) = delete;

/*!
* \brief Function, which builds the ADT of the given coordinates.
* \param[in] nDim Number of dimensions of the ADT.
* \param[in] nPoints Number of points present in the ADT.
* \param[in] coor Coordinates of the points.
*/
void BuildADT(unsigned short nDim,
unsigned long nPoints,
const su2double *coor);

public:
void BuildADT(unsigned short nDim, unsigned long nPoints, const su2double* coor);

public:
/*!
* \brief Function, which returns whether or not the ADT is empty.
* \return Whether or not the ADT is empty.
*/
inline bool IsEmpty(void) const { return isEmpty;}

inline bool IsEmpty(void) const { return isEmpty; }
};
21 changes: 9 additions & 12 deletions Common/include/adt/CADTComparePointClass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,32 @@
* \author E. van der Weide
*/
class CADTComparePointClass {
private:
const su2double *pointCoor; /*!< \brief Pointer to the coordinates of the points. */
const unsigned short splitDirection; /*!< \brief Split direction used in the sorting. */
const unsigned short nDim; /*!< \brief Number of spatial dimensions stored in the coordinates. */
private:
const su2double* pointCoor; /*!< \brief Pointer to the coordinates of the points. */
const unsigned short splitDirection; /*!< \brief Split direction used in the sorting. */
const unsigned short nDim; /*!< \brief Number of spatial dimensions stored in the coordinates. */

public:
public:
/*!
* \brief Constructor of the class. The member variables are initialized.
* \param[in] coor Pointer to the coordinates of the points.
* \param[in] splitDir Direction that must be used to sort the coordinates.
* \param[in] nDimADT Number of spatial dimensions of the ADT and coordinates.
*/
CADTComparePointClass(const su2double *coor,
const unsigned short splitDir,
const unsigned short nDimADT) : pointCoor(coor), splitDirection(splitDir), nDim(nDimADT) {}
CADTComparePointClass(const su2double* coor, const unsigned short splitDir, const unsigned short nDimADT)
: pointCoor(coor), splitDirection(splitDir), nDim(nDimADT) {}

/*!
* \brief Operator used for the sorting of the points.
* \param[in] p0 Index of the first point to be compared.
* \param[in] p1 Index of the second point to be compared.
*/
inline bool operator()(const unsigned long p0,
const unsigned long p1) const {
return pointCoor[nDim*p0+splitDirection] < pointCoor[nDim*p1+splitDirection];
inline bool operator()(const unsigned long p0, const unsigned long p1) const {
return pointCoor[nDim * p0 + splitDirection] < pointCoor[nDim * p1 + splitDirection];
}

/*!
* \brief Default constructor of the class, disabled.
*/
CADTComparePointClass() = delete;

};
Loading

0 comments on commit 7c27b22

Please sign in to comment.