Skip to content

Commit

Permalink
Merge pull request #92 from TimSiebert1/convert_cfiles_to_cpp
Browse files Browse the repository at this point in the history
Convert everything to C++ and add tests
  • Loading branch information
TimSiebert1 authored Jan 9, 2025
2 parents 1991b05 + 29d60c0 commit 864e7bd
Show file tree
Hide file tree
Showing 74 changed files with 7,019 additions and 1,357 deletions.
6 changes: 5 additions & 1 deletion ADOL-C/boost-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ set(SOURCE_FILES
traceSecOrderScalar.cpp
traceSecOrderVector.cpp
traceFixedPointScalarTests.cpp
uni5_for.cpp
)

# Add all source files from uni5_for
file(GLOB UNI5_FOR_FILES "uni5_for/*.cpp")
list(APPEND SOURCE_FILES ${UNI5_FOR_FILES})

add_executable(boost-test-adolc ${SOURCE_FILES})
target_include_directories(boost-test-adolc PRIVATE "${ADOLC_INCLUDE_DIR}")
target_link_libraries(boost-test-adolc PRIVATE
Expand Down
10 changes: 4 additions & 6 deletions ADOL-C/boost-test/traceOperatorVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1804,9 +1804,8 @@ BOOST_AUTO_TEST_CASE(PowOperator_FOV_Forward_1) {
myfree1(y);
myfree2(yd);
}
/*
BOOST_AUTO_TEST_CASE(PowOperator_FOV_Reverse_1)
{

BOOST_AUTO_TEST_CASE(PowOperator_FOV_Reverse_1) {
double a = 2.3, e = 3.5, aout;
adouble ad;

Expand All @@ -1829,12 +1828,11 @@ BOOST_AUTO_TEST_CASE(PowOperator_FOV_Reverse_1)
fov_reverse(1, 1, 1, 2, u, z);

BOOST_TEST(z[0][0] == aDerivative, tt::tolerance(tol));
BOOST_TEST(z[1][0] == -1.1*aDerivative, tt::tolerance(tol));
BOOST_TEST(z[1][0] == -1.1 * aDerivative, tt::tolerance(tol));
myfree2(u);
myfree2(z);
}
*/

BOOST_AUTO_TEST_CASE(PowOperator_FOV_Forward_2) {
double a = 2.3, b = 3.5, out;
adouble ad, bd;
Expand Down
Loading

0 comments on commit 864e7bd

Please sign in to comment.