2 #include <libmesh/composite_function.h>
3 #include <libmesh/const_function.h>
4 #include <libmesh/dense_vector.h>
5 #include <libmesh/parsed_function.h>
6 #include <libmesh/zero_function.h>
7 #include <libmesh/analytic_function.h>
23 CPPUNIT_TEST(testRemap);
25 CPPUNIT_TEST(testTimeDependence);
28 CPPUNIT_TEST_SUITE_END();
34 std::vector<std::vector<unsigned int>> index_sets(4);
35 index_sets[0].resize(2);
38 index_sets[1].resize(3);
42 index_sets[2].resize(3);
46 index_sets[3].resize(5);
69 (composite_inner, index_sets[3]);
73 composite_inner(
Point(0), 0, test_one);
75 LIBMESH_ASSERT_FP_EQUAL(test_one(0), 2, 1.e-12);
76 LIBMESH_ASSERT_FP_EQUAL(test_one(1), 2, 1.e-12);
77 LIBMESH_ASSERT_FP_EQUAL(test_one(2), 2, 1.e-12);
78 LIBMESH_ASSERT_FP_EQUAL(test_one(3), 1, 1.e-12);
79 LIBMESH_ASSERT_FP_EQUAL(test_one(4), 1, 1.e-12);
85 cf_three_copy_assign = cf_three;
86 cf_three_move_assign = std::move(cf_three_copy_assign);
96 composite_outer_copy2 = std::move(composite_outer_copy1);
99 composite_outer_copy2(
Point(0), 0, test_two);
101 LIBMESH_ASSERT_FP_EQUAL(test_two(0), 3, 1.e-12);
102 LIBMESH_ASSERT_FP_EQUAL(test_two(2), 3, 1.e-12);
103 LIBMESH_ASSERT_FP_EQUAL(test_two(4), 3, 1.e-12);
104 LIBMESH_ASSERT_FP_EQUAL(test_two(5), 2, 1.e-12);
105 LIBMESH_ASSERT_FP_EQUAL(test_two(1), 2, 1.e-12);
106 LIBMESH_ASSERT_FP_EQUAL(test_two(3), 2, 1.e-12);
107 LIBMESH_ASSERT_FP_EQUAL(test_two(6), 1, 1.e-12);
108 LIBMESH_ASSERT_FP_EQUAL(test_two(7), 1, 1.e-12);
113 #ifdef LIBMESH_HAVE_FPARSER
127 {
return p(0)*p(0) + p(1)*p(1) + t*t; };
130 std::vector<unsigned int> index_set(1,0);
150 x2y2t2_copy2 = x2y2t2_copy1;
178 x2y2t2_move2 = std::move(x2y2t2_move1);
201 #endif // #ifdef LIBMESH_HAVE_FPARSER