Skip to content

Commit

Permalink
Resolves tag errors in turbo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkellyjak committed Sep 26, 2024
1 parent 8556c2a commit 683de77
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SU2_CFD/src/drivers/CDiscAdjMultizoneDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ void CDiscAdjMultizoneDriver::SetObjFunction(RECORDING kind_recording) {
kind_recording == RECORDING::TAG_CHECK_SOLUTION_VARIABLES) {
cout << " Objective function : " << ObjFunc;
if (driver_config->GetWrt_AD_Statistics()){
// cout << " (" << ObjFunc_Index << ")\n";
// cout << " (" << ObjFunc_Index << ")\n";
}
cout << endl;
}
Expand Down
3 changes: 3 additions & 0 deletions SU2_CFD/src/iteration/CDiscAdjFluidIteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,11 @@ void CDiscAdjFluidIteration::SetDependencies(CSolver***** solver, CGeometry****
solvers0[FLOW_SOL]->CompleteComms(geometry0, config[iZone], MPI_QUANTITIES::SOLUTION);

if (config[iZone]->GetBoolTurbomachinery()) {
solvers0[FLOW_SOL]->PreprocessAverage(solvers0, geometry0, config[iZone], INFLOW);
solvers0[FLOW_SOL]->PreprocessAverage(solvers0, geometry0, config[iZone], OUTFLOW);
solvers0[FLOW_SOL]->TurboAverageProcess(solvers0, geometry0, config[iZone], INFLOW);
solvers0[FLOW_SOL]->TurboAverageProcess(solvers0, geometry0, config[iZone], OUTFLOW);
solvers0[FLOW_SOL]->GatherInOutAverageValues(config[iZone], geometry0);
}
if (turbulent && !config[iZone]->GetFrozen_Visc_Disc()) {
solvers0[TURB_SOL]->Postprocessing(geometry0, solvers0,
Expand Down
6 changes: 3 additions & 3 deletions SU2_CFD/src/solvers/CDiscAdjSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,14 @@ void CDiscAdjSolver::RegisterVariables(CGeometry *geometry, CConfig *config, boo

if ((config->GetKind_Regime() == ENUM_REGIME::COMPRESSIBLE) && (KindDirect_Solver == RUNTIME_FLOW_SYS) && config->GetBoolTurbomachinery()){

BPressure = config->GetPressureOut_BC();
Temperature = config->GetTotalTemperatureIn_BC();

if (!reset){
AD::RegisterInput(BPressure);
AD::RegisterInput(Temperature);
}

BPressure = config->GetPressureOut_BC();
Temperature = config->GetTotalTemperatureIn_BC();

config->SetPressureOut_BC(BPressure);
config->SetTotalTemperatureIn_BC(Temperature);
}
Expand Down

0 comments on commit 683de77

Please sign in to comment.