File tree Expand file tree Collapse file tree
Common/include/basic_types Expand file tree Collapse file tree Original file line number Diff line number Diff 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().
394393FORCEINLINE 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
399397FORCEINLINE bool IsIdentifierActive (su2double const & value) {
You can’t perform that action at this time.
0 commit comments