Skip to content

Commit f5d0c82

Browse files
author
rois1995
committed
- Simplified implementation
1 parent 6e0d7a1 commit f5d0c82

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

SU2_CFD/src/drivers/CMultizoneDriver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,13 +398,13 @@ void CMultizoneDriver::Corrector(unsigned short val_iZone) {
398398
bool CMultizoneDriver::OuterConvergence(unsigned long OuterIter) {
399399

400400
// Set the current time iter for the multizone problem
401-
bool unsteady = config_container[ZONE_0]->GetTime_Domain();
402-
if (unsteady) driver_output->SetCurTimeIter(config_container[ZONE_0]->GetTimeIter());
403401

404402
/*--- Update the residual for the all the zones. ---*/
405403

406404
for (iZone = 0; iZone < nZone; iZone++) {
407405

406+
output_container[iZone]->SetCurTimeIter(config_container[iZone]->GetTimeIter());
407+
408408
/*--- Account for all the solvers in this zone. ---*/
409409

410410
auto solvers = solver_container[iZone][INST_0][MESH_0];

SU2_CFD/src/iteration/CFluidIteration.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ void CFluidIteration::Solve(COutput* output, CIntegration**** integration, CGeom
375375
unsigned short val_iInst) {
376376
/*--- Boolean to determine if we are running a static or dynamic case ---*/
377377
bool steady = !config[val_iZone]->GetTime_Domain();
378-
379-
if (!steady) output->SetCurTimeIter(config[val_iZone]->GetTimeIter());
378+
output->SetCurTimeIter(config[val_iZone]->GetTimeIter());
380379

381380
unsigned long Inner_Iter, nInner_Iter = config[val_iZone]->GetnInner_Iter();
382381
bool StopCalc = false;

0 commit comments

Comments
 (0)