Changeset 9371
- Timestamp:
- 08/22/11 15:20:14 (14 years ago)
- Location:
- issm/trunk/src/c/objects/Bamg
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Bamg/AdjacentTriangle.h
r9370 r9371 18 18 19 19 //Constructors 20 AdjacentTriangle() {};20 AdjacentTriangle():a(0),t(NULL) {}; 21 21 AdjacentTriangle(Triangle* tt,int aa): t(tt),a(aa &3) {}; 22 22 -
issm/trunk/src/c/objects/Bamg/EigenMetric.cpp
r9370 r9371 10 10 /*Constructor*/ 11 11 /*FUNCTION EigenMetric::EigenMetric(const Metric M){{{1*/ 12 EigenMetric::EigenMetric(const Metric M){12 EigenMetric::EigenMetric(const Metric& M){ 13 13 /*From a metric (a11,a21,a22), get eigen values lambda1 and lambda2 and one eigen vector v*/ 14 14 … … 90 90 /*}}}1*/ 91 91 /*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){ 93 93 94 94 }/*}}}*/ -
issm/trunk/src/c/objects/Bamg/Metric.cpp
r9370 r9371 14 14 15 15 /*Constructor/Destructor*/ 16 Metric::Metric(){ };16 /*FUNCTION Metric::Metric(){{{1*/ 17 17 /*FUNCTION Metric::Metric(double a){{{1*/ 18 18 Metric::Metric(double a): a11(1/(a*a)),a21(0),a22(1/(a*a)){ … … 24 24 }/*}}}*/ 25 25 /*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 Metricm2 ){26 Metric::Metric(const double a[3],const Metric& m0, const Metric& m1,const Metric& m2 ){ 27 27 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/Metric)*/ 28 28 … … 45 45 /*}}}1*/ 46 46 /*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 Metricmb) {47 Metric::Metric(double a,const Metric& ma, double b,const Metric& mb) { 48 48 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/EigenMetric)*/ 49 49 … … 139 139 /*Intermediary*/ 140 140 /*FUNCTION LengthInterpole{{{1*/ 141 double LengthInterpole(const Metric Ma,const MetricMb, R2 AB) {141 double LengthInterpole(const Metric& Ma,const Metric& Mb, R2 AB) { 142 142 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/LengthInterpole)*/ 143 143 … … 310 310 /*}}}1*/ 311 311 /*FUNCTION abscisseInterpole{{{1*/ 312 double abscisseInterpole(const Metric Ma,const MetricMb, R2 AB,double s,int optim) {312 double abscisseInterpole(const Metric& Ma,const Metric& Mb, R2 AB,double s,int optim) { 313 313 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/abscisseInterpole)*/ 314 314 -
issm/trunk/src/c/objects/Bamg/Metric.h
r9370 r9371 25 25 26 26 //functions 27 Metric() ;28 Metric(const EigenMetric );27 Metric():a11(0),a21(0),a22(0){}; 28 Metric(const EigenMetric&); 29 29 Metric(double a); 30 30 Metric(double a,double b,double c); 31 Metric( double a,const Metric ma, double b,const Metricmb);32 Metric(const double a[3],const Metric m0,const Metric m1,const Metricm2 );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 ); 33 33 void Echo(); 34 34 R2 mul(const R2 x)const; … … 62 62 63 63 //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); 66 66 void Echo(); 67 67 void Abs(); … … 97 97 //Functions 98 98 void SimultaneousMatrixReduction( Metric M1, Metric M2,D2xD2 &V); 99 double LengthInterpole(const Metric Ma,const MetricMb, R2 AB);100 double abscisseInterpole(const Metric Ma,const MetricMb, 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); 101 101 102 102 //inlines … … 115 115 } 116 116 } 117 inline Metric::Metric(const EigenMetric M) {117 inline Metric::Metric(const EigenMetric& M) { 118 118 double v00=M.v.x*M.v.x; 119 119 double v11=M.v.y*M.v.y; -
issm/trunk/src/c/objects/Bamg/R2.h
r9370 r9371 68 68 P2<R,RR> ty() {return P2<R,RR>(x.y,y.y);} 69 69 //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);} 71 71 P2xP2<R,RR> operator*(P2xP2<R,RR> c) const{ 72 72 return P2xP2<R,RR>(x.x*c.x.x + x.y*c.y.x, -
issm/trunk/src/c/objects/Bamg/Triangle.cpp
r9370 r9371 9 9 10 10 /*Constructors/Destructors*/ 11 /*FUNCTION Triangle(){{{1*/ 12 Triangle::Triangle(void){ 13 14 } 15 /*}}}*/ 11 16 /*FUNCTION Triangle(Mesh *Th,long i,long j,long k) {{{1*/ 12 17 Triangle::Triangle(Mesh *Th,long i,long j,long k) { -
issm/trunk/src/c/objects/Bamg/Triangle.h
r9370 r9371 29 29 30 30 //Constructors/Destructors 31 Triangle() {}31 Triangle(); 32 32 Triangle(Mesh *Th,long i,long j,long k); 33 33 Triangle(BamgVertex *v0,BamgVertex *v1,BamgVertex *v2); -
issm/trunk/src/c/objects/Bamg/VertexOnEdge.h
r9370 r9371 19 19 20 20 //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(){}; 23 23 24 24 //Operators -
issm/trunk/src/c/objects/Bamg/VertexOnGeom.cpp
r9370 r9371 16 16 curvilincoord=0; 17 17 gv=0; 18 //ge=0;18 ge=0; 19 19 } 20 20 /*}}}*/ … … 24 24 curvilincoord=-1; 25 25 gv=&g; 26 //ge=0;26 ge=0; 27 27 } 28 28 /*}}}*/ … … 32 32 curvilincoord=s; 33 33 ge=&g; 34 //gv=0;34 gv=0; 35 35 } 36 36 /*}}}*/ -
issm/trunk/src/c/objects/Bamg/VertexOnVertex.cpp
r9370 r9371 12 12 /*FUNCTION VertexOnVertex::VertexOnVertex(){{{1*/ 13 13 VertexOnVertex::VertexOnVertex() { 14 //v=NULL;15 //bv=NULL;14 v=NULL; 15 bv=NULL; 16 16 };/*}}}*/ 17 17 /*FUNCTION VertexOnVertex::VertexOnVertex(BamgVertex * w,BamgVertex *bw){{{1*/
Note:
See TracChangeset
for help on using the changeset viewer.