Changeset 2857


Ignore:
Timestamp:
01/15/10 13:02:04 (15 years ago)
Author:
Mathieu Morlighem
Message:

removed some couts

Location:
issm/trunk/src/c/Bamgx/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Bamgx/objects/ListofIntersectionTriangles.cpp

    r2854 r2857  
    5656                                // test if the point b is in the same side
    5757                                if (det(v0.i,v1.i,b)>=0) {
    58                                         //cout << " All the edge " << A << B << endl;
    5958                                        TriangleAdjacent edge=CloseBoundaryEdge(a,t,ba,bb);
    6059                                        Vertex & v0 = *edge.EdgeVertex(0), & v1 = *edge.EdgeVertex(1);
     
    8786                                        double ba,bb;
    8887                                        long int verbosity=2;
    89                                         if (verbosity>7)
    90                                          cout << "       SplitEdge: All the edge " << A << B << nbegin <<  det(vi,vj,b)
    91                                                 << " deti= " << deti <<  " detj=" <<detj << endl;
    9288                                        TriangleAdjacent edge=CloseBoundaryEdge(a,t,ba,bb);
    9389                                        Vertex & v0 = *edge.EdgeVertex(0), & v1 = *edge.EdgeVertex(1);
     
    10298                        // we revert vi,vj because vi,vj is def in Adj triangle
    10399                        if ( det(vi,vj,b)>=0) {
    104                                 if (verbosity>7)
    105                                  cout << "       SplitEdge: all AB outside " << A << B << endl;
    106100                                t=tbegin;
    107101                                Real8 ba,bb;
     
    221215                                                                TriangleAdjacent edge=CloseBoundaryEdge(b,t,ba,bb);
    222216                                                                NewItem(B,Metric(ba,*edge.EdgeVertex(0),bb,*edge.EdgeVertex(1)));
    223                                                                 //      cout << " return " << ba << " " << bb << endl;
    224                                                                 // ajoute le 03 frev 1997 par F. hecht
    225217                                                                return;
    226218                                                        }
     
    271263        /*FUNCTION ListofIntersectionTriangles::Length{{{1*/
    272264        Real8  ListofIntersectionTriangles::Length(){
    273                 //  cout << " n= " << Size << ":" ;
    274265                if (Size<=0){
    275266                        throw ErrorException(__FUNCT__,exprintf("Size<=0"));
     
    292283                SegI->lBegin=s;
    293284
    294                 for (jj=0,ii=1;ii<Size;jj=ii++)
    295                   { 
     285                for (jj=0,ii=1;ii<Size;jj=ii++) { 
    296286                        // seg jj,ii
    297287                        x=y;
     
    300290                        Mx = lIntTria[ii].m;
    301291                        My = lIntTria[jj].m;
    302                         //      Real8 &sx=  lIntTria[ii].sp; // previous seg
    303                         //  Real8 &sy=  lIntTria[jj].sn; // next seg
    304                         //      sx = Mx(xy);
    305                         //      sy = My(xy);
    306                         //   sxy = (Mx(xy)+ My(xy))/2.0;
    307292                        sxy =  LengthInterpole(Mx,My,xy);
    308293                        s += sxy;
     
    314299                                SegI->lBegin=s;
    315300
    316                         //    cout << ii << " " << jj << x<< y <<xy << s <<  lIntTria[ii].m  ;
    317301                  }
    318302                len = s;
    319303                SegI->lEnd=s;
    320304
    321                 //  cout << " len= " << s << endl;
    322305                return s;
    323306        }
     
    369352                                vertices[nbv].r = C;
    370353                                vertices[nbv++].m = Metric(cx,lIntTria[ii-1].m,cy,lIntTria[ii].m);
    371                                 if((verbosity/100%10)==2)
    372                                  cout << "   -- Add point " << nbv-1 << " " << vertices[nbv-1] << " " << vertices[nbv-1].m << endl;
    373 
    374354                        }
    375355                        else return nbv-nbvold;
  • issm/trunk/src/c/Bamgx/objects/Triangles.cpp

    r2856 r2857  
    22192219                long int verbosity=2;
    22202220                Int4 nbtold(nbt),nbvold(nbv);
    2221                 if (verbosity>2)
    2222                  cout << "  -- Triangles::NewPoints ";
    2223                 if (verbosity>3)cout <<  " nbv (in)  on Boundary  = " << nbv  <<endl;
     2221                if (verbosity>2)  printf("   Triangles::NewPoints\n");
    22242222                Int4 i,k;
    22252223                int j;
     
    22292227                nbtold = nbt;
    22302228
    2231                 if (KeepBackVertex && (&Bh != this) && (nbv+Bh.nbv< nbvx))
    2232                   {
     2229                if (KeepBackVertex && (&Bh != this) && (nbv+Bh.nbv< nbvx)){
    22332230                        //   Bh.SetVertexFieldOn();
    22342231                        for (i=0;i<Bh.nbv;i++)
     
    22422239                        Bh.ReMakeTriangleContainingTheVertex();     
    22432240                        InsertNewPoints(nbvold,NbTSwap)   ;           
    2244                         if (verbosity>2)
    2245                          cout <<  "      (Nb of Points from background mesh  = "
    2246                                 << nbv-nbvold  << " / " << nbv1-nbvold << ")" << endl;
    22472241                  } 
    22482242                else
     
    22722266                          { // for each triangle  t
    22732267                                // we can change first_np_or_next_t[i]
    2274                                 //      cout << " Do the triangle " << i << " Next_t=" << next_t << endl;
    22752268                                if (i<0 || i>=nbt ){
    22762269                                        throw ErrorException(__FUNCT__,exprintf("i<0 || i>=nbt"));
     
    23542347                        */
    23552348                NbTSwap +=  NbSwapf ;
    2356                 if (verbosity>3) cout << "   " ;
    2357                 if (verbosity>2)
    2358                  cout << " Nb Of Vertices =" << nbv << " Nb of triangles = " << nbt-NbOutT
    2359                         << " NbSwap final = " << NbSwapf << " Nb Total Of Swap = " << NbTSwap << endl;
    2360 
    2361 
    23622349        }
    23632350        /*}}}1*/
Note: See TracChangeset for help on using the changeset viewer.