Skip to content

Commit f71c598

Browse files
committed
Changed the registration of AD input variables in CDiscAdjFluidIteration::RegisterInput.
1 parent 36be2b8 commit f71c598

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

Common/include/CConfig.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4246,7 +4246,7 @@ class CConfig {
42464246
unsigned short GetRef_Inc_NonDim(void) const { return Ref_Inc_NonDim; }
42474247

42484248
/*!
4249-
* \brief Get the kind of SU2 software component.
4249+
* \brief Set the kind of SU2 software component.
42504250
* \return Kind of the SU2 software component.
42514251
*/
42524252
void SetKind_SU2(SU2_COMPONENT val_kind_su2) { Kind_SU2 = val_kind_su2 ; }

SU2_CFD/src/drivers/CDiscAdjSinglezoneDriver.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,8 @@ void CDiscAdjSinglezoneDriver::DirectRun(RECORDING kind_recording){
434434
}
435435

436436
void CDiscAdjSinglezoneDriver::MainRecording(){
437-
438-
/*--- SetRecording stores the computational graph on one iteration of the direct problem. Calling it with NONE
439-
* as argument ensures that all information from a previous recording is removed. ---*/
437+
/*--- SetRecording stores the computational graph on one iteration of the direct problem. Calling it with
438+
* RECORDING::CLEAR_INDICES as argument ensures that all information from a previous recording is removed. ---*/
440439

441440
SetRecording(RECORDING::CLEAR_INDICES);
442441

@@ -447,9 +446,8 @@ void CDiscAdjSinglezoneDriver::MainRecording(){
447446
}
448447

449448
void CDiscAdjSinglezoneDriver::SecondaryRecording(){
450-
451-
/*--- SetRecording stores the computational graph on one iteration of the direct problem. Calling it with NONE
452-
* as argument ensures that all information from a previous recording is removed. ---*/
449+
/*--- SetRecording stores the computational graph on one iteration of the direct problem. Calling it with
450+
* RECORDING::CLEAR_INDICES as argument ensures that all information from a previous recording is removed. ---*/
453451

454452
SetRecording(RECORDING::CLEAR_INDICES);
455453

SU2_CFD/src/iteration/CDiscAdjFluidIteration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ void CDiscAdjFluidIteration::RegisterInput(CSolver***** solver, CGeometry**** ge
507507
}
508508
}
509509

510-
if (kind_recording == RECORDING::MESH_COORDS) {
510+
if (kind_recording == RECORDING::MESH_COORDS || kind_recording == RECORDING::SOLUTION_AND_MESH) {
511511
/*--- Register node coordinates as input ---*/
512512

513513
geometry[iZone][iInst][MESH_0]->RegisterCoordinates();

0 commit comments

Comments
 (0)