

    public void validityTest(int LA,int LB,boolean iso) {
      double max=0;
      int br=0;
       while((halt==1)&&(br<4)) {
	   if(M.C.CON_X.B.BRANCH.L[br].on==1) {
	   int k=0; 
           int lim=DataRenormReturn.limits(LB,br);
	   while((halt==1)&&(k<lim)) {
	      int dir=1;
	      if(iso==true) dir=0;
	      GoldenPolyhedron P1=DataRenormReturn.getGoldenA(LA,LB,br,k,0);
	      GoldenPolyhedron Q1=DataRenormReturn.getGoldenB(LB,br,k,dir);
              int[] listA=VerifySupport.itineraryBand(0,LA,LB,br,k);
              int[] listB=VerifySupport.itineraryBand(1,LA,LB,br,k);


              boolean test1=VerifyRenorm3D.verifyWholeA(P1,listA);
	      boolean test2=VerifyRenorm3D.verifyWholeB(Q1,listB,iso);
	      GoldenVector V1=VerifySupport.getTotalMoveRaw(listA);
	      GoldenVector V2=new GoldenVector();
	      if(iso==true) V2=VerifySupport.getTotalMoveRaw(listB);
	      if(iso==false) V2=VerifySupport.getTotalMoveInverseRaw(listB);
	      GoldenPolyhedron P2=P1.translate(V1);
	      GoldenPolyhedron Q2=Q1.translate(V2);
	      P2=VerifySupport.fundamentalDomain(P2);
	      Q2=VerifySupport.fundamentalDomain(Q2);
	      boolean test3=VerifyRenorm3D.verifyMatch(LA,LB,P2,Q2);
              if(test1==false) failMessage();
	      if(test2==false) failMessage();
	      if(test3==false) failMessage(); 

	      boolean test4=true;
	      if(iso==true) test4=isoMatch(P1,listA,Q1,listB);

              if(test1==false) failMessage();
	      if(test2==false) failMessage();
	      if(test3==false) failMessage(); 
	      //if(test4==false) failMessage(); 

	      System.out.println(LA+" "+LB+" "+br+" "+k);
	      ++k;
	   }
	   ++br;
	   }}
    }





    public static boolean isoMatch(GoldenPolyhedron P1,int[] listA,GoldenPolyhedron Q1,int[] listB) {
      int[] badface1=VerifyBadFace.undefinedFaces(P1,listA);
      int[] badface2=VerifyBadFace.undefinedFaces(Q1,listB);
      if(badface1!=null) Lists.printout(badface1);
      if(badface2!=null) Lists.printout(badface2);
      if(Lists.match(badface1,badface2)==false) return(false);
      return(true);
    }
