Skip to content

Commit 49a13c5

Browse files
authored
Merge pull request #3584 from lindsayad/error-for-constrained-eigen-system
Error in EigenSystem::solve if we have constraints
2 parents a9bde6d + d9c91f7 commit 49a13c5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/systems/eigen_system.C

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ void EigenSystem::reinit ()
208208

209209
void EigenSystem::solve ()
210210
{
211+
if (get_dof_map().n_constrained_dofs())
212+
libmesh_error_msg("EigenSystem does not support constrained degrees of freedom. If you wish to "
213+
"perform a solve on a system with constraints, then please use the "
214+
"CondensedEigenSystem class instead");
211215

212216
// A reference to the EquationSystems
213217
EquationSystems & es = this->get_equation_systems();

0 commit comments

Comments
 (0)