From be3bc7bf37403c7a6cfaa8dc015d3ed5903024ef Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Thu, 12 Dec 2024 11:11:12 +0100 Subject: [PATCH] Allow using `RDataReporting::residuals` with ASA 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. --- src/solver.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/solver.cpp b/src/solver.cpp index 298caaf774..d3fe2c24cb 100644 --- a/src/solver.cpp +++ b/src/solver.cpp @@ -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()); }