Commit ce517a59 authored by Andrey Filippov's avatar Andrey Filippov

Restoring infinity testing

parent 9e5d4e97
...@@ -334,6 +334,10 @@ public class AlignmentCorrection { ...@@ -334,6 +334,10 @@ public class AlignmentCorrection {
debugLevel); debugLevel);
if (debugLevel > -1){ if (debugLevel > -1){
System.out.println("infinityCorrection(): coefficient increments from infinityMismatchCorrection"); System.out.println("infinityCorrection(): coefficient increments from infinityMismatchCorrection");
if (mismatch_corr_coefficients == null) { // non-null only for poly !
System.out.println("imismatch_corr_coefficients == null");
return mismatch_corr_coefficients;
}
show_fine_corr( show_fine_corr(
mismatch_corr_coefficients, // double [][][] corr, mismatch_corr_coefficients, // double [][][] corr,
"");// String prefix) "");// String prefix)
......
...@@ -4315,12 +4315,13 @@ public class QuadCLT { ...@@ -4315,12 +4315,13 @@ public class QuadCLT {
show_fine_corr( this.fine_corr, " was"); show_fine_corr( this.fine_corr, " was");
} }
} }
if (debugLevel > 1){ if (corr==null) {
System.out.println("New correction is null (only non-null for poly, not for infinity");
return;
} else {
if (debugLevel > 1){ if (debugLevel > 1){
show_fine_corr(corr, "added"); show_fine_corr(corr, "added");
} }
}
for (int n = 0; n< corr.length; n++){ for (int n = 0; n< corr.length; n++){
for (int i = 0; i< corr[n].length; i++){ for (int i = 0; i< corr[n].length; i++){
for (int j = 0; j< corr[n][i].length; j++){ for (int j = 0; j< corr[n][i].length; j++){
...@@ -4332,6 +4333,7 @@ public class QuadCLT { ...@@ -4332,6 +4333,7 @@ public class QuadCLT {
show_fine_corr( this.fine_corr, ""); show_fine_corr( this.fine_corr, "");
} }
} }
}
public void show_fine_corr() public void show_fine_corr()
{ {
show_fine_corr( this.fine_corr, ""); show_fine_corr( this.fine_corr, "");
......
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