29 #include "libmesh/composite_function.h"
30 #include "libmesh/const_function.h"
31 #include "libmesh/dense_vector.h"
37 std::vector<std::vector<unsigned int> > index_sets(4);
38 index_sets[0].resize(2);
41 index_sets[1].resize(3);
45 index_sets[2].resize(3);
49 index_sets[3].resize(5);
60 composite_inner.attach_subfunction
61 (ConstFunction<libMesh::Real>(1), index_sets[0]);
62 composite_inner.attach_subfunction
63 (ConstFunction<libMesh::Real>(2), index_sets[1]);
64 composite_outer.attach_subfunction
65 (composite_inner, index_sets[3]);
67 libMesh::DenseVector<libMesh::Real> test_one(5);
69 composite_inner(libMesh::Point(0), 0, test_one);
82 composite_outer.attach_subfunction
83 (ConstFunction<libMesh::Real>(3), index_sets[2]);
85 libMesh::DenseVector<libMesh::Real> test_two(8);
86 composite_outer(libMesh::Point(0), 0, test_two);
100 if (test_two(6) != 1)
102 if (test_two(7) != 1)