Commit 926972c3 authored by Andrey Filippov's avatar Andrey Filippov

bug fix

parent d0f3ff06
......@@ -2025,7 +2025,7 @@ public double [] createFXandJacobianMulti(
derivs);
for (int n=startMeas;n<endMeas;n++){
int chn=selChanIndices[ms.channel];
if (centerSelect!=null){
if (createJacobian && (centerSelect!=null)){
int np=0;
for (int i=0;i<2;i++) if (centerSelect[i]){
derivs[chn][np++]-=ms.dPxyc[i]; // subtract, as effect is opposite to fX
......@@ -2033,7 +2033,7 @@ public double [] createFXandJacobianMulti(
}
PartialFXJac partialFXJac = new PartialFXJac(n,
subData[chn],
derivs[chn]);
createJacobian?derivs[chn]:null);
fxList.get(threadIndex).add(partialFXJac);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment