Skip to content

Commit d2f81f4

Browse files
committed
Update bounds checking parameters.
1 parent 3ddd27a commit d2f81f4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Common/include/basic_types/ad_structure.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,16 +384,14 @@ FORCEINLINE void SetDerivative(int index, const double val) {
384384
if (index == 0) // Allow multiple threads to "set the derivative" of passive variables without causing data races.
385385
return;
386386

387-
using BoundsChecking = codi::GradientAccessTapeInterface<su2double::Gradient, su2double::Identifier>::BoundsChecking;
388-
AD::getTape().setGradient(index, val, BoundsChecking::False);
387+
AD::getTape().setGradient(index, val, codi::AdjointsBoundsChecking::False);
389388
}
390389

391390
// WARNING: For performance reasons, this method does not perform bounds checking.
392391
// If called after tape evaluations, the adjoints should exist.
393392
// Otherwise, please ensure sufficient adjoint vector size by a call to AD::ResizeAdjoints().
394393
FORCEINLINE double GetDerivative(int index) {
395-
using BoundsChecking = codi::GradientAccessTapeInterface<su2double::Gradient, su2double::Identifier>::BoundsChecking;
396-
return AD::getTape().getGradient(index, BoundsChecking::False);
394+
return AD::getTape().getGradient(index, codi::AdjointsBoundsChecking::False);
397395
}
398396

399397
FORCEINLINE bool IsIdentifierActive(su2double const& value) {

0 commit comments

Comments
 (0)