Changeset 5152


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

No need to reconfigure everything in SetSurrentConfiguration:

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

Legend:

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

    r5129 r5152  
    16731673        this->element_type=this->element_type_list[analysis_counter];
    16741674
    1675         /*Pick up the objects inside the hooks: */
     1675        /*Pick up nodes */
    16761676        if (this->hnodes[analysis_counter]) this->nodes=(Node**)this->hnodes[analysis_counter]->deliverp();
    16771677        else this->nodes=NULL;
    1678         this->matice=(Matice*)this->hmatice->delivers();
    1679         this->matpar=(Matpar*)this->hmatpar->delivers();
    1680         this->neighbors=(Penta**)this->hneighbors->deliverp();
    1681 
    1682         /*point parameters to real dataset: */
    1683         this->parameters=parametersin;
    16841678}
    16851679/*}}}*/
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r5135 r5152  
    511511        this->element_type=this->element_type_list[analysis_counter];
    512512
    513         /*Pick up the objects inside the hooks: */
     513        /*Pick up nodes*/
    514514        if(this->hnodes[analysis_counter]) this->nodes=(Node**)this->hnodes[analysis_counter]->deliverp();
    515515        else this->nodes=NULL;
    516         this->matice=(Matice*)this->hmatice->delivers();
    517         this->matpar=(Matpar*)this->hmatpar->delivers();
    518 
    519         /*point parameters to real dataset: */
    520         this->parameters=parametersin;
    521516
    522517}
  • issm/trunk/src/c/objects/Loads/Icefront.cpp

    r5138 r5152  
    274274void  Icefront::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){
    275275
    276         /*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective
    277          * datasets, using internal ids and offsets hidden in hooks: */
    278         hnodes->configure(nodesin);
    279         helement->configure(elementsin);
    280         hmatpar->configure(materialsin);
    281 
    282         /*point parameters to real dataset: */
    283         this->parameters=parametersin;
    284276}
    285277/*}}}*/
  • issm/trunk/src/c/objects/Loads/Numericalflux.cpp

    r5103 r5152  
    294294void  Numericalflux::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){
    295295
    296         /*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective
    297          * datasets, using internal ids and offsets hidden in hooks: */
    298         hnodes->configure(nodesin);
    299         helement->configure(elementsin);
    300 
    301         /*point parameters to real dataset: */
    302         this->parameters=parametersin;
    303 
    304296}
    305297/*}}}*/
  • issm/trunk/src/c/objects/Loads/Pengrid.cpp

    r5103 r5152  
    257257void  Pengrid::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){
    258258
    259         /*Take care of hooking up all objects for this load, ie links the objects in the hooks to their respective
    260          * datasets, using internal ids and offsets hidden in hooks: */
    261         hnode->configure(nodesin);
    262         helement->configure(elementsin);
    263         hmatpar->configure(materialsin);
    264 
    265         /*point parameters to real dataset: */
    266         this->parameters=parametersin;
    267259}
    268260/*}}}1*/
  • issm/trunk/src/c/objects/Loads/Penpair.cpp

    r5103 r5152  
    181181void  Penpair::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){
    182182
    183         /*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective
    184          * datasets, using internal ids and offsets hidden in hooks: */
    185         hnodes->configure(nodesin);
    186 
    187         /*point parameters to real dataset: */
    188         this->parameters=parametersin;
    189183}
    190184/*}}}1*/
  • issm/trunk/src/c/objects/Loads/Riftfront.cpp

    r5103 r5152  
    305305/*FUNCTION Riftfront::SetCurrentConfiguration {{{1*/
    306306void  Riftfront::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){
    307 
    308         /*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective
    309          * datasets, using internal ids and offsets hidden in hooks: */
    310         hnodes->configure(nodesin);
    311         helements->configure(elementsin);
    312         hmatpar->configure(materialsin);
    313 
    314         /*point parameters to real dataset: */
    315         this->parameters=parametersin;
    316307
    317308}
  • issm/trunk/src/c/objects/Materials/Matice.cpp

    r5103 r5152  
    245245void  Matice::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){
    246246
    247         /*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective
    248          * datasets, using internal ids and offsets hidden in hooks: */
    249         helement->configure(elementsin);
    250247}
    251248/*}}}*/
  • issm/trunk/src/c/objects/Node.cpp

    r5114 r5152  
    313313void  Node::SetCurrentConfiguration(DataSet* nodesin,Vertices* verticesin){
    314314
    315         int i;
    316 
    317         /*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective
    318          * datasets, using internal ids and offsets hidden in hooks: */
    319         hvertex->configure(verticesin);
    320 
    321315}
    322316/*FUNCTION Node::GetDof {{{1*/
Note: See TracChangeset for help on using the changeset viewer.