Changeset 2861


Ignore:
Timestamp:
01/15/10 14:41:25 (15 years ago)
Author:
Mathieu Morlighem
Message:

removed useless code

Location:
issm/trunk/src/c/Bamgx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Bamgx/Mesh2.h

    r2859 r2861  
    170170  int ref() const { return ReferenceNumber;}
    171171
    172   friend std::ostream& operator <<(std::ostream& f, const  Vertex & v)
    173   {f << "(" << v.i  << "," << v.r << MatVVP2x2(v.m) << ")" ;   return f;}
    174172  inline void Set(const Vertex & rec,const Triangles &,Triangles &);
    175173};
     
    181179/////////////////////////////////////////////////////////////////////////////////////
    182180class TriangleAdjacent {
    183   friend std::ostream& operator <<(std::ostream& f, const  TriangleAdjacent & ta)
    184   {f << "{" << ta.t << "," << ((int) ta.a) << "}" ;
    185    return f;}
    186181
    187182public:
     
    275270 
    276271inline void Set(const GeometricalVertex & rec,const Geometry & Gh ,const Geometry & GhNew);
    277   inline friend std::ostream& operator <<(std::ostream& f, const  GeometricalVertex & s)
    278      { f << s.r << "," << s.cas << ".";return f; }
    279272};
    280273
     
    341334class Triangle {
    342335  friend class TriangleAdjacent;
    343   friend std::ostream& operator <<(std::ostream& f, const  Triangle & ta);
    344336
    345337
     
    606598  int IsRequiredVertex(){ return this? (( abscisse<0 ? (gv?gv->Required():0):0 )) : 0;}
    607599  void SetOn(){mv->on=this;mv->vint=IsVertexOnGeom;}
    608   friend std::ostream& operator <<(std::ostream& f, const  VertexOnGeom & vog){
    609     f << vog.abscisse << " " << vog.mv << " " << vog.gv << " ; ";
    610     if (vog.abscisse < 0) f << *vog.gv << " ;; " ;
    611     //    else f << *vog.ge << " ;; " ;
    612     return f;}
    613600  inline void Set(const Triangles &,Int4,Triangles &);
    614601   
     
    643630class CrackedEdge { // a small class to store on crack an uncrack information
    644631  friend class Triangles;
    645   friend std::ostream& operator <<(std::ostream& f, const   Triangles & Th) ; 
    646632 class CrackedTriangle {
    647633  friend class Triangles;
    648634  friend class CrackedEdge;
    649   friend std::ostream& operator <<(std::ostream& f, const   Triangles & Th) ; 
    650635  Triangle * t; // edge of triangle t
    651636  int i; //  edge number of in triangle
     
    855840  int UnCrack();
    856841 
    857  friend std::ostream& operator <<(std::ostream& f,  const  Triangles & Th);
    858842  void ConsGeometry(Real8 =-1.0,int *equiedges=0); // construct a geometry if no geo
    859843  void FillHoleInMesh() ;
     
    926910  GeometricalEdge *  ProjectOnCurve(const Edge & ,Real8,Vertex &,VertexOnGeom &) const ;
    927911  GeometricalEdge *  Contening(const R2 P,  GeometricalEdge * start) const;
    928   friend std::ostream& operator <<(std::ostream& f, const   Geometry & Gh);
    929912  void WriteGeometry(BamgGeom* bamggeom, BamgOpts* bamgopts);
    930913}; // End Class Geometry
  • issm/trunk/src/c/Bamgx/Metric.h

    r2858 r2861  
    1 // -*- Mode : c++ -*-
    2 //
    3 // SUMMARY  :     
    4 // USAGE    :       
    5 // ORG      :
    6 // AUTHOR   : Frederic Hecht
    7 // E-MAIL   : hecht@ann.jussieu.fr
    8 //
    9 
    10 /*
    11  
    12  This file is part of Freefem++
    13  
    14  Freefem++ is free software; you can redistribute it and/or modify
    15  it under the terms of the GNU Lesser General Public License as published by
    16  the Free Software Foundation; either version 2.1 of the License, or
    17  (at your option) any later version.
    18  
    19  Freefem++  is distributed in the hope that it will be useful,
    20  but WITHOUT ANY WARRANTY; without even the implied warranty of
    21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    22  GNU Lesser General Public License for more details.
    23  
    24  You should have received a copy of the GNU Lesser General Public License
    25  along with Freefem++; if not, write to the Free Software
    26  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    27  */
    28 
    291#ifndef TYPEMETRIX
    302#define TYPEMETRIX MetricAnIso
     
    7345  operator D2xD2(){ return D2xD2(1/(h*h),0.,0.,1/(h*h));}
    7446  void     Box(Real4 & hx,Real4 & hy) { hx=h,hy=h;}
    75   friend std::ostream& operator <<(std::ostream& f, const  MetricIso & M)
    76   {f << " h=" << M.h<< ";" ;   return f;}
    77 
    7847};
    7948
     
    10372  Real8 operator()(R2 x,R2 y) const { return x.x*y.x*a11+(x.x*x.y+x.y*y.x)*a21+x.y*y.y*a22;};
    10473  inline void  Box(Real4 &hx,Real4 &hy) const ; 
    105  friend std::ostream& operator <<(std::ostream& f, const  MetricAnIso & M)
    106   {f << " mtr a11=" << M.a11 << " a21=a12=" << M.a21 << " a22=" << M.a22 << ";" ;   return f;}
    10774  MetricAnIso(const MatVVP2x2);
    10875};
     
    12895  void Maxh(double h) {Min(1.0/(h*h));}
    12996  void Isotrope() {lambda1=lambda2=bamg::Max(lambda1,lambda2);}
    130   friend std::ostream& operator <<(std::ostream& f, const MatVVP2x2 & c)
    131   { f << '{' << 1/sqrt(c.lambda1)<< ',' << 1/sqrt(c.lambda2) << ','<< c.v << '}' <<std::flush ; return f; }
    132   friend std::istream& operator >>(std::istream& f,  MatVVP2x2 & c)
    133   { f >> c.lambda1 >>c.lambda2 >> c.v.x >> c.v.y ;c.v /= Norme2(c.v); return f; }
    13497  MatVVP2x2(const MetricAnIso );
    13598  MatVVP2x2(const MetricIso M) :  lambda1(1/(M.h*M.h)),lambda2(1/(M.h*M.h)),v(1,0) {}
  • issm/trunk/src/c/Bamgx/QuadTree.h

    r2856 r2861  
    7474  QuadTree(Triangles * t,long nbv=-1);
    7575  QuadTree();
    76   friend ostream& operator <<(ostream& f, const  QuadTree & qt);
    77 
    78 
    7976       
    8077};
  • issm/trunk/src/c/Bamgx/R2.h

    r2840 r2861  
     1#include <iostream>
    12
    23namespace bamg {
Note: See TracChangeset for help on using the changeset viewer.