Changeset 3246 for issm/trunk/src/c/Bamgx/objects/Metric.cpp
- Timestamp:
- 03/10/10 11:17:57 (16 years ago)
- File:
-
- 1 edited
-
issm/trunk/src/c/Bamgx/objects/Metric.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Bamgx/objects/Metric.cpp
r3243 r3246 18 18 /*FUNCTION Metric::Metric(const double a[3],const Metric m0, const Metric m1,const Metric m2 ){{{1*/ 19 19 Metric::Metric(const double a[3],const Metric m0, const Metric m1,const Metric m2 ){ 20 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/Metric)*/ 21 20 22 Metric mab(a[0]*m0.a11 + a[1]*m1.a11 + a[2]*m2.a11, 21 23 a[0]*m0.a21 + a[1]*m1.a21 + a[2]*m2.a21, … … 37 39 /*FUNCTION Metric::Metric( double a,const Metric ma, double b,const Metric mb){{{1*/ 38 40 Metric::Metric( double a,const Metric ma, double b,const Metric mb) { 41 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/MatVVP2x2)*/ 42 39 43 Metric mab(a*ma.a11+b*mb.a11,a*ma.a21+b*mb.a21,a*ma.a22+b*mb.a22); 40 44 MatVVP2x2 vab(mab); … … 54 58 /*Methods*/ 55 59 /*FUNCTION Metric::Echo {{{1*/ 56 57 60 void Metric::Echo(void){ 58 61 … … 65 68 /*FUNCTION Metric::IntersectWith{{{1*/ 66 69 int Metric::IntersectWith(const Metric M2) { 70 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/IntersectWith)*/ 71 67 72 /*Get a new metric from an existing metric (M1=this) 68 73 * and a new metric given in input M2 using a … … 118 123 /*FUNCTION LengthInterpole{{{1*/ 119 124 double LengthInterpole(const Metric Ma,const Metric Mb, R2 AB) { 125 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/LengthInterpole)*/ 126 120 127 double k=1./2.; 121 128 int level=0; … … 184 191 /*FUNCTION SimultaneousMatrixReduction{{{1*/ 185 192 void SimultaneousMatrixReduction( Metric M1, Metric M2, D2xD2 &V) { 193 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/ReductionSimultanee)*/ 194 186 195 /*In this routine we must return a matrix V that is composed of the 187 196 * eigen vectors of N=inv(M1) M2. … … 287 296 /*FUNCTION abscisseInterpole{{{1*/ 288 297 double abscisseInterpole(const Metric Ma,const Metric Mb, R2 AB,double s,int optim) { 298 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/abscisseInterpole)*/ 299 289 300 if(!optim) LengthInterpole(Ma,Mb,AB); 290 301 double l = s* LastMetricInterpole.lab,r;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)