Skip to content

Commit

Permalink
Allow using RDataReporting::residuals with ASA
Browse files Browse the repository at this point in the history
So far, it is not supported to use `RDataReporting::residuals` with ASA.
However, there doesn't seem to be a good reason.
It's only that the respective sensitivities for y/sigmay/res won't be computed in this case.
  • Loading branch information
dweindl committed Dec 12, 2024
1 parent 2d58f54 commit be3bc7b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,6 @@ void Solver::setSensitivityMethodPreequilibration(
void Solver::checkSensitivityMethod(
SensitivityMethod const sensi_meth, bool preequilibration
) const {
if (rdata_mode_ == RDataReporting::residuals
&& sensi_meth == SensitivityMethod::adjoint)
throw AmiException("Adjoint Sensitivity Analysis is not compatible with"
" only reporting residuals!");
if (!preequilibration && sensi_meth != sensi_meth_)
resetMutableMemory(nx(), nplist(), nquad());
}
Expand Down

0 comments on commit be3bc7b

Please sign in to comment.