Skip to content

Commit 9b7e676

Browse files
committed
Const new TapeTestGatherErrors.
1 parent 619b6cf commit 9b7e676

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

SU2_CFD/include/drivers/CDiscAdjMultizoneDriver.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ class CDiscAdjMultizoneDriver : public CMultizoneDriver {
144144
/*!
145145
* \brief [Overload] Launch the tape test mode for the discrete adjoint multizone solver.
146146
*/
147-
void TapeTest();
147+
void TapeTest ();
148148

149149
/*!
150150
* \brief [Overload] Get error numbers after a tape test run of the discrete adjoint multizone solver.
151151
*/
152-
int TapeTest_GatherErrors(struct AD::ErrorReport& error_report);
152+
int TapeTestGatherErrors(AD::ErrorReport& error_report) const;
153153

154154
/*!
155155
* \brief Preprocess the multizone iteration

SU2_CFD/src/drivers/CDiscAdjMultizoneDriver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void CDiscAdjMultizoneDriver::TapeTest() {
236236
}
237237

238238
int total_errors = 0;
239-
struct AD::ErrorReport error_report;
239+
AD::ErrorReport error_report;
240240
AD::SetTagErrorCallback(error_report);
241241
std::ofstream out1("run1_process" + to_string(rank) + ".out");
242242
std::ofstream out2("run2_process" + to_string(rank) + ".out");
@@ -267,7 +267,7 @@ void CDiscAdjMultizoneDriver::TapeTest() {
267267
SetRecording(RECORDING::TAG_INIT_SOLVER_VARIABLES, Kind_Tape::FULL_SOLVER_TAPE, ZONE_0);
268268
}
269269
}
270-
total_errors = TapeTest_GatherErrors(error_report);
270+
total_errors = TapeTestGatherErrors(error_report);
271271

272272
AD::ResetErrorCounter(error_report);
273273
AD::SetDebugReportFile(error_report, &out2);
@@ -290,7 +290,7 @@ void CDiscAdjMultizoneDriver::TapeTest() {
290290
else
291291
SetRecording(RECORDING::TAG_CHECK_SOLVER_VARIABLES, Kind_Tape::FULL_SOLVER_TAPE, ZONE_0);
292292
}
293-
total_errors += TapeTest_GatherErrors(error_report);
293+
total_errors += TapeTestGatherErrors(error_report);
294294

295295
if (rank == MASTER_NODE) {
296296
cout << "\n------------------------- Tape Test Run Summary -------------------------" << endl;
@@ -299,7 +299,7 @@ void CDiscAdjMultizoneDriver::TapeTest() {
299299
}
300300
}
301301

302-
int CDiscAdjMultizoneDriver::TapeTest_GatherErrors(struct AD::ErrorReport& error_report) {
302+
int CDiscAdjMultizoneDriver::TapeTestGatherErrors(AD::ErrorReport& error_report) const {
303303

304304
int num_errors = AD::GetErrorCount(error_report);
305305
int total_errors = 0;

0 commit comments

Comments
 (0)