Ignore:
Timestamp:
07/04/13 17:14:42 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: tria's do not need neighbors' ids, so do not need to marshall md.mesh.elementconnectivity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r15429 r15433  
    3131        this->material = NULL;
    3232        this->matpar   = NULL;
    33         for(i=0;i<3;i++)this->horizontalneighborsids[i]=UNDEF;
    3433        this->inputs     = NULL;
    3534        this->parameters = NULL;
     
    4948                //this->parameters: we still can't point to it, it may not even exist. Configure will handle this.
    5049                this->parameters=NULL;
    51 
    52                 /*Build horizontalneighborsids list: */
    53                 _assert_(iomodel->Data(MeshElementconnectivityEnum));
    54                 //for (i=0;i<3;i++) this->horizontalneighborsids[i]=(int)iomodel->elementconnectivity[3*index+i]-1;
    5550
    5651                /*intialize inputs and results: */
     
    117112        tria->material=(Material*)tria->hmaterial->delivers();
    118113        tria->matpar=(Matpar*)tria->hmatpar->delivers();
    119 
    120         /*neighbors: */
    121         for(i=0;i<3;i++)tria->horizontalneighborsids[i]=this->horizontalneighborsids[i];
    122114
    123115        return tria;
     
    561553        else _printf_("results=NULL\n");
    562554
    563         _printf_("neighboor sids: \n");
    564         _printf_(" " << horizontalneighborsids[0] << " " << horizontalneighborsids[1] << " " << horizontalneighborsids[2] << "\n");
    565 
    566555        return;
    567556}
     
    672661        if (results) results->Echo();
    673662        else _printf_("results=NULL\n");
    674 
    675         _printf_("neighboor sids: \n");
    676         _printf_(" " << horizontalneighborsids[0] << " " << horizontalneighborsids[1] << " " << horizontalneighborsids[2] << "\n");
    677663}
    678664/*}}}*/
     
    729715        /*return TriaRef field*/
    730716        return this->element_type;
    731 
    732 }
    733 /*}}}*/
    734 /*FUNCTION Tria::GetHorizontalNeighboorSids {{{*/
    735 int* Tria::GetHorizontalNeighboorSids(){
    736 
    737         /*return TriaRef field*/
    738         return &this->horizontalneighborsids[0];
    739717
    740718}
Note: See TracChangeset for help on using the changeset viewer.