Changeset 8260


Ignore:
Timestamp:
05/11/11 10:50:18 (14 years ago)
Author:
Mathieu Morlighem
Message:

copy function really ugly, removed.

Location:
issm/trunk/src/c/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Node.cpp

    r8245 r8260  
    266266}
    267267/*}}}*/
    268 /*FUNCTION Node::copy {{{1*/
    269 Object* Node::copy() {
    270                
    271         int k,l;
    272 
    273         Node* node=NULL;
    274         node=new Node();
    275 
    276         /*Deal with hooks*/
    277         node->hvertex=(Hook*)this->hvertex->copy();
    278         node->indexing=(DofIndexing)new DofIndexing(this->indexing);
    279 
    280         /*id: */
    281         node->id=this->id;
    282         node->sid=this->sid;
    283         node->analysis_type=this->analysis_type;
    284 
    285         /*intialize inputs : */
    286         if(this->inputs){
    287                 node->inputs=(Inputs*)this->inputs->Copy();
    288         }
    289         else{
    290                 node->inputs=new Inputs();
    291         }
    292         for(k=0;k<3;k++) for(l=0;l<3;l++) node->referential[k][l]=this->referential[k][l];
    293 }
    294 
    295 /*}}}*/
    296268
    297269/*Node management:*/
  • issm/trunk/src/c/objects/Node.h

    r8245 r8260  
    4646                void  Demarshall(char** pmarshalled_dataset);
    4747                int   Enum();
    48                 Object* copy();
     48                Object* copy(){_error_("Not implemented yet (similar to Elements)");};
    4949                /*}}}*/
    5050                /*Update virtual functions definitions: {{{1*/
Note: See TracChangeset for help on using the changeset viewer.