Skip to content

Commit

Permalink
Delete all trailing whitespaces and tabs to 2 spaces (#808)
Browse files Browse the repository at this point in the history
* Removed all trailing whitespaces from [.cpp,.hpp,.inl,.py,.build] files.

* Replaced all tabs with 2 spaces in [.cpp,.hpp,.inl] files

* Create CPPLINT.cfg

* Revert tab and trailing whitespace change for externals, SU2_IDE,
Testcases

* Replace tabs and trim whitespaces after merge with origin/develop.

* Revert tab repl. and whitespace trimming for some files.

* Add /externals/utils script to replace tabs and trim trailing whitespaces.

* Revert all files to origin/develop

* Remove trailing whitespaces and replace tabs by 2 spaces for restructured files.
  • Loading branch information
TobiKattmann authored and pcarruscag committed Nov 16, 2019
1 parent 972606f commit c3af14f
Show file tree
Hide file tree
Showing 88 changed files with 4,365 additions and 4,326 deletions.
4 changes: 2 additions & 2 deletions SU2_CFD/include/drivers/CDiscAdjSinglezoneDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ class CDiscAdjSinglezoneDriver : public CSinglezoneDriver {
CSolver **solver; /*!< \brief Container vector with all the solutions. */
COutput *direct_output;
CNumerics ***numerics; /*!< \brief Container vector with all the numerics. */

COutputLegacy* output_legacy;

public:

/*!
Expand Down
52 changes: 26 additions & 26 deletions SU2_CFD/include/drivers/CDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@

using namespace std;

/*!
/*!
* \class CDriver
* \brief Parent class for driving an iteration of a single or multi-zone problem.
* \author T. Economon
*/
class CDriver {
protected:
int rank, /*!< \brief MPI Rank. */
size; /*!< \brief MPI Size. */
int rank, /*!< \brief MPI Rank. */
size; /*!< \brief MPI Size. */
char* config_file_name; /*!< \brief Configuration file name of the problem.*/
char runtime_file_name[MAX_STRING_SIZE];
su2double StartTime, /*!< \brief Start point of the timer for performance benchmarking.*/
Expand Down Expand Up @@ -137,10 +137,10 @@ class CDriver {
PyWrapNodalForceDensity[3], /*!< \brief This is used to store the force density at each vertex. */
PyWrapNodalHeatFlux[3]; /*!< \brief This is used to store the heat flux at each vertex. */
bool dummy_geometry;

public:

/*!
/*!
* \brief Constructor of the class.
* \param[in] confFile - Configuration file name.
* \param[in] val_nZone - Total number of zones.
Expand All @@ -158,16 +158,16 @@ class CDriver {

/*!
* \brief A virtual member.
*/
*/
virtual void Run() { };

protected:

/*!
* \brief Init_Containers
*/
void SetContainers_Null();

/*!
* \brief Read in the config and mesh files.
*/
Expand All @@ -177,7 +177,7 @@ class CDriver {
* \brief Construction of the edge-based data structure and the multigrid structure.
*/
void Geometrical_Preprocessing(CConfig *config, CGeometry **&geometry, bool dummy);

/*!
* \brief Do the geometrical preprocessing for the DG FEM solver.
*/
Expand All @@ -187,7 +187,7 @@ class CDriver {
* \brief Geometrical_Preprocessing_FVM
*/
void Geometrical_Preprocessing_FVM(CConfig *config, CGeometry **&geometry);

/*!
* \brief Definition of the physics iteration class or within a single zone.
* \param[in] iteration_container - Pointer to the iteration container to be instantiated.
Expand Down Expand Up @@ -293,7 +293,7 @@ class CDriver {
void Turbomachinery_Preprocessing(CConfig** config, CGeometry**** geometry, CSolver***** solver,
CInterface*** interface);


/*!
* \brief A virtual member.
* \param[in] donorZone - zone in which the displacements will be predicted.
Expand Down Expand Up @@ -337,7 +337,7 @@ class CDriver {
* \param[in] iOuterIter - Fluid-Structure Interaction subiteration.
*/
virtual void Relaxation_Tractions(unsigned short donorZone, unsigned short targetZone, unsigned long iOuterIter) {}

/*!
* \brief A virtual member to run a Block Gauss-Seidel iteration in multizone problems.
*/
Expand All @@ -347,23 +347,23 @@ class CDriver {
* \brief A virtual member to run a Block-Jacobi iteration in multizone problems.
*/
virtual void Run_Jacobi(){}

/*!
* \brief A virtual member.
*/
virtual void Update() {}

public:

/*!
* \brief Launch the computation for all zones and all physics.
*/
virtual void StartSolver() {}

/*!
* \brief Deallocation routine
*/
void Postprocessing();
void Postprocessing();

/*!
* \brief A virtual member.
Expand Down Expand Up @@ -875,7 +875,7 @@ class CFluidDriver : public CDriver {
unsigned long Max_Iter;

public:

/*!
* \brief Constructor of the class.
* \param[in] confFile - Configuration file name.
Expand All @@ -891,7 +891,7 @@ class CFluidDriver : public CDriver {
* \brief Destructor of the class.
*/
~CFluidDriver(void);

/*!
* \brief Launch the computation for all zones and all physics.
*/
Expand All @@ -906,21 +906,21 @@ class CFluidDriver : public CDriver {
* \brief Update the dual-time solution within multiple zones.
*/
void Update();

/*!
* \brief Output the solution in solution file.
*/
void Output(unsigned long InnerIter);

/*!
* \brief Monitor the computation.
*/
bool Monitor(unsigned long ExtIter);

/*!
* \brief Perform some pre-processing before an iteration of the physics.
*/
void Preprocess(unsigned long Iter);
void Preprocess(unsigned long Iter);

/*!
* \brief Perform a dynamic mesh deformation, included grid velocity computation and the update of the multigrid structure (multiple zone).
Expand Down Expand Up @@ -992,7 +992,7 @@ class CFluidDriver : public CDriver {
class CTurbomachineryDriver : public CFluidDriver {
private:
COutputLegacy* output_legacy;

public:

/*!
Expand Down Expand Up @@ -1078,7 +1078,7 @@ class CHBDriver : public CFluidDriver {
* \param[in] iZone - Current zone number.
*/
void SetHarmonicBalance(unsigned short iZone);

/*!
* \brief Precondition Harmonic Balance source term for stability
* \author J. Howison
Expand Down Expand Up @@ -1109,9 +1109,9 @@ class CHBDriver : public CFluidDriver {
* \version 6.2.0 "Falcon"
*/
class CDiscAdjFSIDriver : public CDriver {

COutputLegacy* output_legacy;

CIteration** direct_iteration;
unsigned short RecordingState;
unsigned short CurrentRecording; /*!< \brief Stores the current status of the recording. */
Expand Down
10 changes: 5 additions & 5 deletions SU2_CFD/include/drivers/CDummyDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
* \brief CDummyDriver class that constructs the driver without running a solver.
*/
class CDummyDriver : public CDriver {

public:

/*!
* \brief Constructor of the class.
* \param[in] confFile - Configuration file name.
Expand All @@ -55,15 +55,15 @@ class CDummyDriver : public CDriver {
CDummyDriver (char* confFile,
unsigned short val_nZone,
SU2_Comm MPICommunicator);

/*!
* \brief Destructor of the class.
*/
~CDummyDriver(){}

/*!
* \brief Does nothing except printing the information that no solver is running.
*/
void StartSolver();

};
2 changes: 1 addition & 1 deletion SU2_CFD/include/drivers/CMultizoneDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class CMultizoneDriver : public CDriver {
* \return Boolean that determines whether the mesh needs to be updated for this particular transfer
*/
bool Transfer_Data(unsigned short donorZone, unsigned short targetZone);

bool Monitor(unsigned long TimeIter);

};
2 changes: 1 addition & 1 deletion SU2_CFD/include/drivers/CSinglezoneDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class CSinglezoneDriver : public CDriver {
* \param ExtIter
*/
virtual bool Monitor(unsigned long TimeIter);

/*!
* \brief Runtime_Parsing
*/
Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/include/interfaces/fsi/CFlowTractionInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CFlowTractionInterface : public CInterface {

protected:
bool consistent_interpolation;

/*!
* \brief Sets the dimensional factor for pressure and the consistent_interpolation flag
* \param[in] flow_config - Definition of the fluid (donor) problem.
Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/include/output/CAdjElasticityOutput.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class CAdjElasticityOutput final : public COutput {
* \brief Destructor of the class.
*/
~CAdjElasticityOutput(void) override;

/*!
* \brief Set the available history output fields
* \param[in] config - Definition of the particular problem.
Expand Down
26 changes: 13 additions & 13 deletions SU2_CFD/include/output/CAdjFlowIncOutput.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
*/
class CAdjFlowIncOutput final: public COutput {
private:
unsigned short turb_model; /*!< \brief The kind of turbulence model*/
bool heat, /*!< \brief Boolean indicating whether have a heat problem*/
weakly_coupled_heat; /*!< \brief Boolean indicating whether have a weakly coupled heat equation*/

unsigned short turb_model; /*!< \brief The kind of turbulence model*/
bool heat, /*!< \brief Boolean indicating whether have a heat problem*/
weakly_coupled_heat; /*!< \brief Boolean indicating whether have a weakly coupled heat equation*/

public:


Expand All @@ -70,19 +70,19 @@ class CAdjFlowIncOutput final: public COutput {
* \param[in] config - Definition of the particular problem.
*/
void LoadHistoryData(CConfig *config, CGeometry *geometry, CSolver **solver) override;

/*!
* \brief Set the available history output fields
* \param[in] config - Definition of the particular problem.
*/
void SetHistoryOutputFields(CConfig *config) override;

/*!
* \brief Set the available volume output fields
* \param[in] config - Definition of the particular problem.
*/
void SetVolumeOutputFields(CConfig *config) override;

/*!
* \brief Set the values of the volume output fields for a point.
* \param[in] config - Definition of the particular problem.
Expand All @@ -91,7 +91,7 @@ class CAdjFlowIncOutput final: public COutput {
* \param[in] iPoint - Index of the point.
*/
void LoadVolumeData(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint) override;

/*!
* \brief Set the values of the volume output fields for a surface point.
* \param[in] config - Definition of the particular problem.
Expand All @@ -101,16 +101,16 @@ class CAdjFlowIncOutput final: public COutput {
* \param[in] iMarker - Index of the surface marker.
* \param[in] iVertex - Index of the vertex on the marker.
*/
void LoadSurfaceData(CConfig *config, CGeometry *geometry, CSolver **solver,
unsigned long iPoint, unsigned short iMarker, unsigned long iVertex) override;
void LoadSurfaceData(CConfig *config, CGeometry *geometry, CSolver **solver,
unsigned long iPoint, unsigned short iMarker, unsigned long iVertex) override;

/*!
* \brief Check whether the base values for relative residuals should be initialized
* \param[in] config - Definition of the particular problem.
* \return <TRUE> if the residuals should be initialized.
*/
bool SetInit_Residuals(CConfig *config) override;

/*!
* \brief Check whether the averaged values should be updated
* \param[in] config - Definition of the particular problem.
Expand Down
Loading

0 comments on commit c3af14f

Please sign in to comment.