Skip to content

Commit 15fabde

Browse files
authored
Merge pull request #1976 from kursatyurt/rename_postprocessing
Rename python Driver method 'Postprocessing' to 'Finalize'
2 parents ccf1b17 + e4c5982 commit 15fabde

20 files changed

Lines changed: 36 additions & 35 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,6 @@ ninja
100100

101101
# Ignore SU2 pre-configuration timestamp created by preconfigure.py
102102
su2preconfig.timestamp
103+
104+
# Clangd server files
105+
.cache

SU2_CFD/include/drivers/CDriver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ class CDriver : public CDriverBase {
364364
/*!
365365
* \brief Deallocation routine
366366
*/
367-
void Postprocessing();
367+
void Finalize();
368368

369369
/*!
370370
* \brief A virtual member.

SU2_CFD/include/drivers/CDriverBase.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class CDriverBase {
120120
/*!
121121
* \brief A virtual member.
122122
*/
123-
virtual void Postprocessing(){}
123+
virtual void Finalize(){}
124124

125125
/// \addtogroup PySU2
126126
/// @{
@@ -446,7 +446,7 @@ class CDriverBase {
446446
/*!
447447
* \brief Delete containers.
448448
*/
449-
void CommonPostprocessing();
449+
void CommonFinalize();
450450

451451
/*!
452452
* \brief Read in the config and mesh files.

SU2_CFD/src/SU2_CFD.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ int main(int argc, char *argv[]) {
154154

155155
driver->StartSolver();
156156

157-
/*--- Postprocess all the containers, close history file, exit SU2. ---*/
157+
/*--- Finalize solver, delete all the containers, close history file, exit SU2. ---*/
158158

159-
driver->Postprocessing();
159+
driver->Finalize();
160160

161161
delete driver;
162162

SU2_CFD/src/drivers/CDriver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ void CDriver::SetContainers_Null(){
346346
}
347347

348348

349-
void CDriver::Postprocessing() {
349+
void CDriver::Finalize() {
350350

351351
const bool wrt_perf = config_container[ZONE_0]->GetWrt_Performance();
352352

@@ -363,7 +363,7 @@ void CDriver::Postprocessing() {
363363
}
364364

365365
if (rank == MASTER_NODE)
366-
cout << endl <<"------------------------- Solver Postprocessing -------------------------" << endl;
366+
cout << endl <<"------------------------- Finalizing Solver -------------------------" << endl;
367367

368368
for (iZone = 0; iZone < nZone; iZone++) {
369369
for (iInst = 0; iInst < nInst[iZone]; iInst++){

SU2_CFD/src/drivers/CDriverBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void CDriverBase::SetContainers_Null() {
8484
}
8585
}
8686

87-
void CDriverBase::CommonPostprocessing() {
87+
void CDriverBase::CommonFinalize() {
8888

8989
if (numerics_container != nullptr) {
9090
for (iZone = 0; iZone < nZone; iZone++) {

SU2_DEF/include/drivers/CDeformationDriver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class CDeformationDriver : public CDriverBase {
6666
/*!
6767
* \brief Deallocation routine.
6868
*/
69-
void Postprocessing();
69+
void Finalize();
7070

7171
/*!
7272
* \brief Communicate boundary mesh displacements.

SU2_DEF/include/drivers/CDiscAdjDeformationDriver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class CDiscAdjDeformationDriver : public CDriverBase {
5757
/*!
5858
* \brief Deallocation routine.
5959
*/
60-
void Postprocessing();
60+
void Finalize();
6161

6262
protected:
6363
/*!

SU2_DEF/src/SU2_DEF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int main(int argc, char* argv[]) {
6363

6464
/*--- Postprocess all the containers, close history file, and exit SU2. ---*/
6565

66-
driver.Postprocessing();
66+
driver.Finalize();
6767

6868
/*--- Finalize MPI parallelization. ---*/
6969

SU2_DEF/src/drivers/CDeformationDriver.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,8 @@ void CDeformationDriver::Output() {
535535
}
536536
}
537537

538-
void CDeformationDriver::Postprocessing() {
539-
if (rank == MASTER_NODE)
540-
cout << "\n------------------------- Solver Postprocessing -------------------------" << endl;
538+
void CDeformationDriver::Finalize() {
539+
if (rank == MASTER_NODE) cout << "\n------------------------- Finalize Solver -------------------------" << endl;
541540

542541
if (driver_config->GetDeform_Mesh()) {
543542
for (iZone = 0; iZone < nZone; iZone++) {
@@ -550,7 +549,7 @@ void CDeformationDriver::Postprocessing() {
550549
delete[] numerics_container[iZone][INST_0][MESH_0];
551550
delete[] numerics_container[iZone][INST_0];
552551
}
553-
/*--- The remaining levels in the container are deleted in CommonPostprocessing ---*/
552+
/*--- The remaining levels in the container are deleted in CommonFinalize ---*/
554553
}
555554

556555
for (iZone = 0; iZone < nZone; iZone++) {
@@ -559,11 +558,11 @@ void CDeformationDriver::Postprocessing() {
559558
delete[] solver_container[iZone][INST_0][MESH_0];
560559
delete[] solver_container[iZone][INST_0];
561560
}
562-
/*--- The remaining levels in the container are deleted in CommonPostprocessing ---*/
561+
/*--- The remaining levels in the container are deleted in CommonFinalize ---*/
563562
}
564563
}
565564

566-
CommonPostprocessing();
565+
CommonFinalize();
567566

568567
/*--- Exit the solver cleanly. ---*/
569568

0 commit comments

Comments
 (0)