Skip to content

Commit

Permalink
add disableminmaxusingabs
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSiebert1 committed Dec 12, 2024
1 parent be7951b commit 3c1f1ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ADOL-C/boost-test/uni5_for.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ namespace tt = boost::test_tools;
BOOST_AUTO_TEST_SUITE(uni5_for)

BOOST_AUTO_TEST_CASE(Fmaxoperator_ZOS_PL_Forward) {

enableMinMaxUsingAbs();

const int16_t tag = 1;

const int dim_out = 1;
Expand All @@ -31,6 +28,7 @@ BOOST_AUTO_TEST_CASE(Fmaxoperator_ZOS_PL_Forward) {
std::array<adouble, dim_in> indep;
double out[] = {0.0};

enableMinMaxUsingAbs();
// ---------------------- trace on ---------------------
// function is given by fabs(in_2 + fabs(in_1 + fabs(in_0)))
trace_on(tag);
Expand All @@ -48,7 +46,7 @@ BOOST_AUTO_TEST_CASE(Fmaxoperator_ZOS_PL_Forward) {

dep >>= out[0];
trace_off();

disableMinMaxUsingAbs();
// ---------------------- trace off ---------------------

// test outout
Expand Down

0 comments on commit 3c1f1ed

Please sign in to comment.