Skip to content

Commit

Permalink
Merge branch 'feature_mz_adjoint_for_turbo' of https://github.com/su2…
Browse files Browse the repository at this point in the history
…code/SU2 into feature_mz_adjoint_for_turbo
  • Loading branch information
joshkellyjak committed Sep 26, 2024
2 parents e1a04fa + 887e9e6 commit 08b7979
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
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
2 changes: 1 addition & 1 deletion externals/codi
Submodule codi updated 334 files

0 comments on commit 08b7979

Please sign in to comment.