Skip to content

Commit

Permalink
fix(ci) Fix range error in model_jakstat_adjoint_test (#305)
Browse files Browse the repository at this point in the history
* Only call getDataSensisFSA if there are sensitivities to be computed.

* Update expected results. Old ones had wrong exit status for groupJakstatAdjoint, testSensitivityForwardEmptySensInd
  • Loading branch information
dweindl authored May 16, 2018
1 parent 563edb7 commit 35098fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/forwardproblem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ void ForwardProblem::getDataOutput(int it) {
model->fsigma_y(it, edata, rdata);
model->fJy(it, rdata, edata);

if (rdata->sensi >= AMICI_SENSI_ORDER_FIRST) {
if (rdata->sensi >= AMICI_SENSI_ORDER_FIRST && model->nplist() > 0) {
prepDataSensis(it);
if (rdata->sensi_meth == AMICI_SENSI_FSA) {
getDataSensisFSA(it);
Expand Down
Binary file modified tests/cpputest/expectedResults.h5
Binary file not shown.

0 comments on commit 35098fa

Please sign in to comment.