Don't set displacements without being asked #25804
Labels
C: Framework
P: normal
A defect affecting operation with a low possibility of significantly affects.
T: defect
An anomaly, which is anything that deviates from expectations.
Bug Description
I am looking at the input in #25778. If I apply the displacements in the mesh block, then I get errors from the heat conduction kernel, which is not block restricted, about how it's using coupled displacements which are on a subset of the mesh blocks. There is no
displacements
parameter inGlobalParams
nor in the "offending" kernel block. Who is the offender then? Well it was me in fd20b95 . I probably did this for automatically coupling displacement variables into kernels for getting Jacobians right on displaced meshes ... but now we are seeing some bad side effects. @GiudGiud should keep this in mind when he is looking into #25800. Definitely don't want to blindly forward couplings from materials when it is possible a material (and variables it might use) may have a subset of the block restriction that the kernel does. (Think a thermal conductivity which is variable-dependent on one block and constant on another).Steps to Reproduce
Turn the displacements on in the
Mesh
block in the input in #25778.Impact
Users get errors for something they didn't even do.
The text was updated successfully, but these errors were encountered: