Changeset 5447


Ignore:
Timestamp:
08/20/10 11:09:12 (15 years ago)
Author:
Mathieu Morlighem
Message:

As usual

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

Legend:

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

    r5150 r5447  
    1 #ifndef _MESHVERTEX_H_
    2 #define _MESHVERTEX_H_
     1#ifndef _BAMGVERTEX_H_
     2#define _BAMGVERTEX_H_
    33
    44#include "./include.h"
  • TabularUnified issm/trunk/src/c/objects/Bamg/EigenMetric.cpp

    r5400 r5447  
    149149        /*FUNCTION EigenMetric::Max{{{1*/
    150150        void   EigenMetric::Max(double a) {
     151                //change eigen values
    151152                lambda1=bamg::Max(a,lambda1); lambda2=bamg::Max(a,lambda2) ;
    152153        }/*}}}*/
     
    157158        /*FUNCTION EigenMetric::Maxh{{{1*/
    158159        void   EigenMetric::Maxh(double h) {
     160                //Call Max function
    159161                Max(1.0/(h*h));
    160162        }/*}}}*/
  • TabularUnified issm/trunk/src/c/objects/Bamg/GeometricalEdge.cpp

    r5397 r5447  
    2727           R2 A=v[0]->r,B=v[1]->r;
    2828                double ca,cb,cta,ctb;
    29                 if ( theta<-1e-12){
    30                         ISSMERROR("theta<-1e-12");
    31                 }
    32                 if ( theta>1+1e-12){
    33                         ISSMERROR("theta>1+1e-12");
    34                 }
     29
     30                //Check that theta is in [0 1]
     31                ISSMASSERT(theta>-1e-12 && theta<1+1e-12);
     32
    3533                if (TgA())
    3634                 if (TgB()) // interpolation d'hermite
     
    172170        /*FUNCTION GeometricalEdge::SetRequired{{{1*/
    173171        void   GeometricalEdge::SetRequired()    {
    174                 type |= 64;/*=>=>6th digit to 1*/
     172                type |= 64;/*=>6th digit to 1*/
    175173        }/*}}}*/
    176174          /*FUNCTION GeometricalEdge::Tg{{{1*/
  • TabularUnified issm/trunk/src/c/objects/Bamg/Mesh.cpp

    r5401 r5447  
    224224        /*}}}1*/
    225225        /*FUNCTION Mesh::Mesh(long maxnbv,Geometry & G,BamgOpts* bamgopts){{{1*/
    226         Mesh::Mesh(long maxnbv,Geometry & G,BamgOpts* bamgopts) :Gh(G),BTh(*this){
     226        Mesh::Mesh(long maxnbv,Geometry & G,BamgOpts* bamgopts):Gh(G),BTh(*this){
    227227                TriangulateFromGeom0(maxnbv,bamgopts);
    228228        }
     
    26742674                /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/PreInit)*/
    26752675
    2676                 long int verbose=0;
    2677 
     2676                /* initialize random seed: */
    26782677                srand(19999999);
     2678
     2679                /*Initialize fields*/
    26792680                NbRef=0;
     2681                quadtree=NULL;
    26802682                nbv=0;
     2683                nbt=0;
     2684                nbe=0;
     2685                edges=NULL;
     2686                nbq=0;
     2687                nbsubdomains=0;
     2688                subdomains=NULL;
    26812689                maxnbv=maxnbv_in;
    2682                 nbt=0;
    2683                 nbq = 0;
    2684                 maxnbt=2*maxnbv_in-2;
    2685                 nbsubdomains=0;
     2690                maxnbt=2 *maxnbv_in-2;
    26862691                NbVertexOnBThVertex=0;
     2692                VertexOnBThVertex=NULL;
    26872693                NbVertexOnBThEdge=0;
    2688                 VertexOnBThVertex=NULL;
    26892694                VertexOnBThEdge=NULL;
    2690 
    26912695                NbCrackedVertices=0;
    2692                 CrackedVertices  =NULL; 
    2693                 NbCrackedEdges   =0;
    2694                 CrackedEdges     =NULL; 
    2695                 nbe = 0;
    2696 
     2696                CrackedVertices =NULL;
     2697                NbCrackedEdges =0;
     2698                CrackedEdges =NULL;
     2699                NbVerticesOnGeomVertex=0;
     2700                VerticesOnGeomVertex=NULL;
     2701                NbVerticesOnGeomEdge=0;
     2702                VerticesOnGeomEdge=NULL;
     2703
     2704                /*Allocate if maxnbv_in>0*/
    26972705                if (maxnbv_in) {
    26982706                        vertices=new BamgVertex[maxnbv];
     
    27092717                        maxnbt=0;
    27102718                }
    2711 
    2712                 quadtree=NULL;
    2713                 edges=NULL;
    2714                 VerticesOnGeomVertex=NULL;
    2715                 VerticesOnGeomEdge=NULL;
    2716                 NbVerticesOnGeomVertex=0;
    2717                 NbVerticesOnGeomEdge=0;
    2718                 subdomains=NULL;
    2719                 nbsubdomains=0;
    27202719        }
    27212720        /*}}}1*/
     
    48744873        void Mesh::TriangulateFromGeom0(long imaxnbv,BamgOpts* bamgopts){
    48754874                /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/GeomToTriangles0)*/
    4876 
    48774875                /*Generate mesh from geometry*/
    48784876
  • TabularUnified issm/trunk/src/c/objects/Bamg/VertexOnGeom.cpp

    r5150 r5447  
    1111
    1212        /*Constructors/Destructors*/
    13         /*FUNCTION VertexOnGeom::constructor{{{1*/
     13        /*FUNCTION VertexOnGeom::VertexOnGeom(){{{1*/
    1414        VertexOnGeom::VertexOnGeom(): mv(0),abscisse(0){
    1515                gv=0;
    1616        }
    1717        /*}}}*/
    18         /*FUNCTION VertexOnGeom::constructor{{{1*/
     18        /*FUNCTION VertexOnGeom::VertexOnGeom(BamgVertex & m,GeometricalVertex &g){{{1*/
    1919        VertexOnGeom::VertexOnGeom(BamgVertex & m,GeometricalVertex &g) : mv(&m),abscisse(-1){
    2020                gv=&g;
    2121        }
    2222        /*}}}*/
    23         /*FUNCTION VertexOnGeom::constructor{{{1*/
     23        /*FUNCTION VertexOnGeom::VertexOnGeom(BamgVertex & m,GeometricalEdge &g,double s){{{1*/
    2424        VertexOnGeom::VertexOnGeom(BamgVertex & m,GeometricalEdge &g,double s) : mv(&m),abscisse(s){
    2525                ge=&g;
Note: See TracChangeset for help on using the changeset viewer.