On Fri, 7 Jul 2017, Manav Bhatia wrote:
What method would provide the functionality to clear and reinitialize the dof constraints?
I see that _dof_constraints.clear() is called in DofMap::create_dof_constraints(). But I wouldn’t call this directly (?).
You would, I'm afraid. After the clear, you want any built-in constraints (periodic BCs, dirichlet BCs, etc) to be regenerated (since there's no telling whether any of them were previously expanded to incorporate a dependency on the constraint you're now removing), and that's what create_dof_constraints() will do. In fact, if you're using System::attach_constraint_function() or System::attach_constraint_object() for your user constraints, the best thing to do is probably just System::reinit_constraints(). That will clear the old constraints, rebuild the internal constraints, call for user constraints, then communicate/expand/use everything once the constraints are all locally added. --- Roy ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users