Changeset 9371


Ignore:
Timestamp:
08/22/11 15:20:14 (14 years ago)
Author:
Mathieu Morlighem
Message:

Back to previous version

Location:
issm/trunk/src/c/objects/Bamg
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Bamg/AdjacentTriangle.h

    r9370 r9371  
    1818
    1919                        //Constructors
    20                         AdjacentTriangle(){};
     20                        AdjacentTriangle():a(0),t(NULL) {};
    2121                        AdjacentTriangle(Triangle* tt,int  aa): t(tt),a(aa &3) {};
    2222
  • issm/trunk/src/c/objects/Bamg/EigenMetric.cpp

    r9370 r9371  
    1010        /*Constructor*/
    1111        /*FUNCTION EigenMetric::EigenMetric(const Metric M){{{1*/
    12         EigenMetric::EigenMetric(const Metric M){
     12        EigenMetric::EigenMetric(const Metric& M){
    1313                /*From a metric (a11,a21,a22), get eigen values lambda1 and lambda2 and one eigen vector v*/
    1414
     
    9090        /*}}}1*/
    9191        /*FUNCTION EigenMetric::EigenMetric(double r1,double r2,const D2 vp1){{{1*/
    92         EigenMetric::EigenMetric(double r1,double r2,const D2 vp1): lambda1(r1),lambda2(r2),v(vp1){
     92        EigenMetric::EigenMetric(double r1,double r2,const D2& vp1): lambda1(r1),lambda2(r2),v(vp1){
    9393
    9494        }/*}}}*/
  • issm/trunk/src/c/objects/Bamg/Metric.cpp

    r9370 r9371  
    1414
    1515        /*Constructor/Destructor*/
    16         Metric::Metric(){ };
     16        /*FUNCTION Metric::Metric(){{{1*/
    1717        /*FUNCTION Metric::Metric(double a){{{1*/
    1818        Metric::Metric(double a): a11(1/(a*a)),a21(0),a22(1/(a*a)){
     
    2424        }/*}}}*/
    2525        /*FUNCTION Metric::Metric(const double  a[3],const  Metric& m0, const  Metric& m1,const  Metric&  m2 ){{{1*/
    26         Metric::Metric(const double  a[3],const  Metric m0, const  Metric m1,const  Metric m2 ){
     26        Metric::Metric(const double  a[3],const  Metric& m0, const  Metric& m1,const  Metric& m2 ){
    2727                /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/Metric)*/
    2828
     
    4545        /*}}}1*/
    4646        /*FUNCTION Metric::Metric(double  a,const  Metric& ma, double  b,const  Metric& mb){{{1*/
    47         Metric::Metric(double  a,const  Metric ma, double  b,const  Metric mb) {
     47        Metric::Metric(double  a,const  Metric& ma, double  b,const  Metric& mb) {
    4848                /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/EigenMetric)*/
    4949
     
    139139        /*Intermediary*/
    140140        /*FUNCTION LengthInterpole{{{1*/
    141         double LengthInterpole(const Metric Ma,const  Metric Mb, R2 AB) {
     141        double LengthInterpole(const Metric& Ma,const  Metric& Mb, R2 AB) {
    142142                /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/LengthInterpole)*/
    143143
     
    310310        /*}}}1*/
    311311        /*FUNCTION abscisseInterpole{{{1*/
    312         double abscisseInterpole(const Metric Ma,const  Metric Mb, R2 AB,double s,int optim) {
     312        double abscisseInterpole(const Metric& Ma,const  Metric& Mb, R2 AB,double s,int optim) {
    313313                /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/abscisseInterpole)*/
    314314
  • issm/trunk/src/c/objects/Bamg/Metric.h

    r9370 r9371  
    2525
    2626                        //functions
    27                         Metric();
    28                         Metric(const EigenMetric);
     27                        Metric():a11(0),a21(0),a22(0){};
     28                        Metric(const EigenMetric&);
    2929                        Metric(double a);
    3030                        Metric(double a,double b,double c);
    31                         Metric( double  a,const  Metric ma, double  b,const  Metric mb);
    32                         Metric(const double  a[3],const  Metric m0,const  Metric m1,const  Metric m2 );
     31                        Metric( double  a,const  Metric& ma, double  b,const  Metric& mb);
     32                        Metric(const double  a[3],const  Metric& m0,const  Metric& m1,const  Metric& m2 );
    3333                        void        Echo();
    3434                        R2          mul(const R2 x)const;
     
    6262
    6363                        //functions
    64                         EigenMetric(const Metric );
    65                         EigenMetric(double r1,double r2,const D2 vp1);
     64                        EigenMetric(const Metric& );
     65                        EigenMetric(double r1,double r2,const D2& vp1);
    6666                        void   Echo();
    6767                        void   Abs();
     
    9797        //Functions
    9898        void  SimultaneousMatrixReduction( Metric M1,  Metric M2,D2xD2 &V);
    99         double LengthInterpole(const Metric Ma,const  Metric Mb, R2 AB);
    100         double abscisseInterpole(const Metric Ma,const  Metric Mb, R2 AB,double s,int optim=0);
     99        double LengthInterpole(const Metric& Ma,const  Metric& Mb, R2 AB);
     100        double abscisseInterpole(const Metric& Ma,const  Metric& Mb, R2 AB,double s,int optim=0);
    101101
    102102        //inlines
     
    115115                }
    116116        }
    117         inline Metric::Metric(const EigenMetric M) {
     117        inline Metric::Metric(const EigenMetric& M) {
    118118                double v00=M.v.x*M.v.x;
    119119                double v11=M.v.y*M.v.y;
  • issm/trunk/src/c/objects/Bamg/R2.h

    r9370 r9371  
    6868                          P2<R,RR>    ty() {return P2<R,RR>(x.y,y.y);}
    6969                          //Operators
    70                           P2<R,RR>     operator*(const P2<R,RR> c) const {return P2<R,RR>(x.x*c.x + x.y*c.y, y.x*c.x + y.y*c.y);}
     70                          P2<R,RR>     operator*(const P2<R,RR>& c) const {return P2<R,RR>(x.x*c.x + x.y*c.y, y.x*c.x + y.y*c.y);}
    7171                          P2xP2<R,RR>  operator*(P2xP2<R,RR> c) const{
    7272                                  return  P2xP2<R,RR>(x.x*c.x.x + x.y*c.y.x,
  • issm/trunk/src/c/objects/Bamg/Triangle.cpp

    r9370 r9371  
    99
    1010        /*Constructors/Destructors*/
     11        /*FUNCTION Triangle(){{{1*/
     12        Triangle::Triangle(void){
     13
     14        }
     15        /*}}}*/
    1116        /*FUNCTION Triangle(Mesh *Th,long i,long j,long k) {{{1*/
    1217        Triangle::Triangle(Mesh *Th,long i,long j,long k) {
  • issm/trunk/src/c/objects/Bamg/Triangle.h

    r9370 r9371  
    2929
    3030                        //Constructors/Destructors
    31                         Triangle(){}
     31                        Triangle();
    3232                        Triangle(Mesh *Th,long i,long j,long k);
    3333                        Triangle(BamgVertex *v0,BamgVertex *v1,BamgVertex *v2);
  • issm/trunk/src/c/objects/Bamg/VertexOnEdge.h

    r9370 r9371  
    1919
    2020                        //Constructors
    21                         VertexOnEdge(BamgVertex * w, Edge *bw,double s) :v(w),be(bw),abcisse(s) {}
    22                         VertexOnEdge(){}
     21                        VertexOnEdge(BamgVertex * w, Edge *bw,double s) :v(w),be(bw),abcisse(s) {};
     22                        VertexOnEdge(){};
    2323
    2424                        //Operators
  • issm/trunk/src/c/objects/Bamg/VertexOnGeom.cpp

    r9370 r9371  
    1616                curvilincoord=0;
    1717                gv=0;
    18                 //ge=0;
     18                ge=0;
    1919        }
    2020        /*}}}*/
     
    2424                curvilincoord=-1;
    2525                gv=&g;
    26                 //ge=0;
     26                ge=0;
    2727        }
    2828        /*}}}*/
     
    3232                curvilincoord=s;
    3333                ge=&g;
    34                 //gv=0;
     34                gv=0;
    3535        }
    3636        /*}}}*/
  • issm/trunk/src/c/objects/Bamg/VertexOnVertex.cpp

    r9370 r9371  
    1212        /*FUNCTION VertexOnVertex::VertexOnVertex(){{{1*/
    1313        VertexOnVertex::VertexOnVertex() {
    14                 //v=NULL;
    15                 //bv=NULL;
     14                v=NULL;
     15                bv=NULL;
    1616        };/*}}}*/
    1717        /*FUNCTION VertexOnVertex::VertexOnVertex(BamgVertex * w,BamgVertex *bw){{{1*/
Note: See TracChangeset for help on using the changeset viewer.