23void MaxCol(
const DenseMatrix &mat,
double *vec,
bool include_vec_elements)
27 if (!include_vec_elements)
29 for (
int i = 0; i < n; ++i)
31 vec[i] = mat.Elem(i, 0);
37 for (
int i = 0; i < mat.Height(); ++i)
39 for (
int j = start; j < mat.Width(); ++j)
41 const double e = mat.Elem(i, j);
51void MinCol(
const DenseMatrix &mat,
double *vec,
bool include_vec_elements)
55 if (!include_vec_elements)
57 for (
int i = 0; i < n; ++i)
59 vec[i] = mat.Elem(i, 0);
65 for (
int i = 0; i < mat.Height(); ++i)
67 for (
int j = start; j < mat.Width(); ++j)
69 const double e = mat.Elem(i, j);
79Element *NewElem(
const int type,
const int *cells_data,
const int attr)
84 return new Triangle(cells_data, attr);
86 return new Tetrahedron(cells_data, attr);
88 return new Quadrilateral(cells_data, attr);
90 return new Hexahedron(cells_data, attr);
94 assert(
false &&
"unknown type");
95 mfem::err <<
"NewElem: unknown type " << type << std::endl;
101int MaxVertsXFace(
const int type)
116 assert(
false &&
"unknown type");
117 mfem::err <<
"NewElem: unknown type " << type << std::endl;
123void Finalize(Mesh &mesh,
const bool generate_edges)
126 int type = mesh.GetElement(0)->GetGeometryType();
131 return mesh.FinalizeTriMesh(generate_edges);
133 return mesh.FinalizeQuadMesh(generate_edges);
135 return mesh.FinalizeHexMesh(generate_edges);
137 return mesh.FinalizeTetMesh(generate_edges);
141 assert(
false &&
"unknown type");
142 mfem::err <<
"Finalize: unknown type " << type << std::endl;
148double Sum(
const DenseMatrix &mat)
150 Vector rs(mat.Width());
OutStream err(std::cerr)
Global stream used by the library for standard error output. Initially it uses the same std::streambu...