Skip to content

Commit d542249

Browse files
shbhmexepcarruscag
andauthored
chore: Fix spelling errors and modernize pointer initialization (#2631)
This PR improves code quality through two types of fixes: Spelling Corrections (3 fixes): - CConfig.cpp (L6169): "Idenftification fo" → "Identification of" - CConfig.cpp (L6170): "seperate" → "separate" - CGradientSmoothingSolver.hpp (L278): "seperate" → "separate" Code Modernization (1 fix): - CConfig.cpp (L9991-9992): Replace NULL with nullptr for C++11 compliance and better type safety All changes are safe, non-breaking, and improve code quality. Signed-off-by: shbhmexe <[email protected]> Co-authored-by: Pedro Gomes <[email protected]>
1 parent 911d1f3 commit d542249

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Common/src/CConfig.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6192,8 +6192,8 @@ void CConfig::SetMarkers(SU2_COMPONENT val_software) {
61926192
}
61936193
}
61946194

6195-
/*--- Idenftification fo Giles Markers ---*/
6196-
// This is seperate from MP and Turbomachinery Markers as all mixing plane markers are Giles,
6195+
/*--- Identification of Giles Markers ---*/
6196+
// This is separate from MP and Turbomachinery Markers as all mixing plane markers are Giles,
61976197
// but not all Giles markers are mixing plane
61986198
for (iMarker_CfgFile = 0; iMarker_CfgFile < nMarker_CfgFile; iMarker_CfgFile++) {
61996199
Marker_CfgFile_Giles[iMarker_CfgFile] = NO;
@@ -10017,8 +10017,8 @@ void CConfig::SetProfilingCSV() {
1001710017

1001810018
/*--- Allocate and initialize memory ---*/
1001910019

10020-
double *l_min_red = NULL, *l_max_red = NULL, *l_tot_red = NULL, *l_avg_red = NULL;
10021-
int *n_calls_red = NULL;
10020+
double *l_min_red = nullptr, *l_max_red = nullptr, *l_tot_red = nullptr, *l_avg_red = nullptr;
10021+
int *n_calls_red = nullptr;
1002210022
double* l_min = new double[map_size];
1002310023
double* l_max = new double[map_size];
1002410024
double* l_tot = new double[map_size];

SU2_CFD/include/solvers/CGradientSmoothingSolver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class CGradientSmoothingSolver final : public CFEASolverBase {
275275
}
276276

277277
/*!
278-
* \brief Set the current working dimension, if the seperate dimension option is set.
278+
* \brief Set the current working dimension, if the separate dimension option is set.
279279
* \param[in] iDim - the dimension we are currently working in.
280280
*/
281281
inline void SetCurrentDim(unsigned int iDim) {

0 commit comments

Comments
 (0)