Skip to content

Commit 5d92fb0

Browse files
committed
Print raw element jacobians when requested
1 parent ebc3b60 commit 5d92fb0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/systems/fem_system.C

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,18 @@ void add_element_system(FEMSystem & _sys,
266266
libMesh::out.precision(old_precision);
267267
}
268268

269+
if (_get_jacobian && _sys.print_element_jacobians)
270+
{
271+
std::streamsize old_precision = libMesh::out.precision();
272+
libMesh::out.precision(16);
273+
if (_femcontext.has_elem())
274+
libMesh::out << "Jraw_elem " << _femcontext.get_elem().id();
275+
else
276+
libMesh::out << "Jraw_scalar ";
277+
libMesh::out << " = " << _femcontext.get_elem_jacobian() << std::endl;
278+
libMesh::out.precision(old_precision);
279+
}
280+
269281
// We turn off the asymmetric constraint application iff we expect
270282
// enforce_constraints_exactly() to be called in the solver
271283
const bool constrain_in_solver = _sys.get_constrain_in_solver();

0 commit comments

Comments
 (0)