serac
serac copied to clipboard
Use correct primal values in the sensitivity calls
As written, the sensitivity calculation calls in the HeatTransfer and SolidMechanics modules will not use the correct primal field values (e.g. temperature) during the backward adjoint pass. See https://github.com/LLNL/serac/blob/a2d7924235565ceccb2a7b341951680aa3afb679/src/serac/physics/heat_transfer.hpp#L921-L927 .
We should check that the correct time is used as well. Ideally, we should write tests that fail before patching the bugs.
Yeah, fixed as far as current testing can confirm.