43 c_vector<double, DIM> unset;
44 for (
unsigned i=0; i<DIM; i++)
50 data.resize(mNumElements*mNumQuadPointsPerElement, unset);
58 unsigned elem_index = iter->GetIndex();
60 c_vector<double, DIM+1> linear_phi;
61 for (
unsigned quad_index=0; quad_index<rQuadRule.
GetNumQuadPoints(); quad_index++)
68 c_vector<double,DIM> physical_quad_point = zero_vector<double>(DIM);
69 for (
unsigned node_index=0; node_index<DIM+1; node_index++)
71 physical_quad_point += linear_phi(node_index)*(iter->GetNode(node_index))->rGetLocation();
75 assert(elem_index<mNumElements);
76 assert(quad_index<mNumQuadPointsPerElement);
77 data[ elem_index*mNumQuadPointsPerElement + quad_index ] = physical_quad_point;