Changeset 15433 for issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
- Timestamp:
- 07/04/13 17:14:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r15429 r15433 31 31 this->material = NULL; 32 32 this->matpar = NULL; 33 for(i=0;i<3;i++)this->horizontalneighborsids[i]=UNDEF;34 33 this->inputs = NULL; 35 34 this->parameters = NULL; … … 49 48 //this->parameters: we still can't point to it, it may not even exist. Configure will handle this. 50 49 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;55 50 56 51 /*intialize inputs and results: */ … … 117 112 tria->material=(Material*)tria->hmaterial->delivers(); 118 113 tria->matpar=(Matpar*)tria->hmatpar->delivers(); 119 120 /*neighbors: */121 for(i=0;i<3;i++)tria->horizontalneighborsids[i]=this->horizontalneighborsids[i];122 114 123 115 return tria; … … 561 553 else _printf_("results=NULL\n"); 562 554 563 _printf_("neighboor sids: \n");564 _printf_(" " << horizontalneighborsids[0] << " " << horizontalneighborsids[1] << " " << horizontalneighborsids[2] << "\n");565 566 555 return; 567 556 } … … 672 661 if (results) results->Echo(); 673 662 else _printf_("results=NULL\n"); 674 675 _printf_("neighboor sids: \n");676 _printf_(" " << horizontalneighborsids[0] << " " << horizontalneighborsids[1] << " " << horizontalneighborsids[2] << "\n");677 663 } 678 664 /*}}}*/ … … 729 715 /*return TriaRef field*/ 730 716 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];739 717 740 718 }
Note:
See TracChangeset
for help on using the changeset viewer.