Browse Source

Cache some native settings in the PrismNative Java object.

In particular, we currently cache the numerical method convergence settings.
This allows the values that were used for solution to be recalled at the Java level.
accumulation-v4.7
Dave Parker 6 years ago
parent
commit
ad7c243d96
  1. 14
      prism/src/prism/PrismNative.java

14
prism/src/prism/PrismNative.java

@ -93,16 +93,30 @@ public class PrismNative
PN_SetLinEqMethodParam(d);
}
private static int termCrit;
private static native void PN_SetTermCrit(int i);
public static void setTermCrit(int i)
{
PN_SetTermCrit(i);
// Cache locally too
termCrit = i;
}
public static int getTermCrit()
{
return termCrit;
}
private static double termCritParam;
private static native void PN_SetTermCritParam(double d);
public static void setTermCritParam(double d)
{
PN_SetTermCritParam(d);
// Cache locally too
termCritParam = d;
}
public static double getTermCritParam()
{
return termCritParam;
}
private static native void PN_SetMaxIters(int i);

Loading…
Cancel
Save