Skip to content

Commit f4feba9

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Common/include/basic_types/ad_structure.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +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-
AD::getTape().setGradient(index, val, codi::AdjointsBoundsChecking::False);
387+
AD::getTape().setGradient(index, val, codi::AdjointsManagement::Manual);
388388
}
389389

390390
// WARNING: For performance reasons, this method does not perform bounds checking.
391391
// If called after tape evaluations, the adjoints should exist.
392392
// Otherwise, please ensure sufficient adjoint vector size by a call to AD::ResizeAdjoints().
393393
FORCEINLINE double GetDerivative(int index) {
394-
return AD::getTape().getGradient(index, codi::AdjointsBoundsChecking::False);
394+
return AD::getTape().getGradient(index, codi::AdjointsManagement::Manual);
395395
}
396396

397397
FORCEINLINE bool IsIdentifierActive(su2double const& value) {

0 commit comments

Comments
 (0)