Skip to content

Commit 30caa1f

Browse files
authored
Merge pull request #3581 from roystgnr/ub_fixes
Undefined Behavior fixes
2 parents 6ca753d + c8d9fe5 commit 30caa1f

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

include/base/dof_map.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,6 +2257,10 @@ inline void DofMap::enforce_constraints_on_jacobian
22572257
inline
22582258
void DofMap::set_constrained_sparsity_construction(bool use_constraints)
22592259
{
2260+
// This got only partly finished...
2261+
if (use_constraints)
2262+
libmesh_not_implemented();
2263+
22602264
#ifdef LIBMESH_ENABLE_CONSTRAINTS
22612265
_constrained_sparsity_construction = use_constraints;
22622266
#endif

src/base/dof_map.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ DofMap::DofMap(const unsigned int number,
137137
ParallelObject (mesh.comm()),
138138
_dof_coupling(nullptr),
139139
_error_on_constraint_loop(false),
140+
_constrained_sparsity_construction(false),
140141
_variables(),
141142
_variable_groups(),
142143
_variable_group_numbers(),

src/systems/diff_system.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ DifferentiableSystem::DifferentiableSystem(EquationSystems & es,
3939
Parent (es, name_in, number_in),
4040
time_solver (),
4141
deltat(1.),
42+
postprocess_sides(false),
4243
print_solution_norms(false),
4344
print_solutions(false),
4445
print_residual_norms(false),

0 commit comments

Comments
 (0)