Skip to content

Commit

Permalink
fixup! Add mutate_apply for db::Access
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsdeppe committed Feb 8, 2024
1 parent 975a9bd commit 93f2a23
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/Unit/DataStructures/DataBox/Test_DataBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1387,23 +1387,6 @@ struct PointerMutateApplyBase {
template <typename T>
void test_mutate_apply(T& box) {
constexpr bool using_db_access = std::is_same_v<std::decay_t<T>, db::Access>;
// INFO("test mutate apply");
// auto box = db::create<
// db::AddSimpleTags<
// test_databox_tags::Tag0, test_databox_tags::Tag1,
// test_databox_tags::Tag2,
// Tags::Variables<tmpl::list<test_databox_tags::ScalarTag,
// test_databox_tags::VectorTag>>,
// test_databox_tags::Pointer>,
// db::AddComputeTags<test_databox_tags::Tag4Compute,
// test_databox_tags::Tag5Compute,
// test_databox_tags::MultiplyScalarByTwoCompute,
// test_databox_tags::PointerToCounterCompute,
// test_databox_tags::PointerToSumCompute>>(
// 3.14, std::vector<double>{8.7, 93.2, 84.7}, "My Sample String"s,
// Variables<tmpl::list<test_databox_tags::ScalarTag,
// test_databox_tags::VectorTag>>(2, 3.),
// std::make_unique<int>(3));
CHECK(approx(db::get<test_databox_tags::Tag4>(box)) == 3.14 * 2.0);
CHECK(db::get<test_databox_tags::ScalarTag>(box) ==
Scalar<DataVector>(DataVector(2, 3.)));
Expand Down

0 comments on commit 93f2a23

Please sign in to comment.