Changeset 3818


Ignore:
Timestamp:
05/18/10 13:42:49 (15 years ago)
Author:
seroussi
Message:

neighbors

Location:
issm/trunk/src/c/objects/Elements
Files:
3 edited

Legend:

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

    r3817 r3818  
    2626        this->matice=NULL;
    2727        this->matpar=NULL;
    28         this->neighboors=NULL;
     28        this->neighbors=NULL;
    2929       
    3030        this->inputs=NULL;
     
    6464        this->InitHookMatice(penta_matice_id);this->matice=NULL;
    6565        this->InitHookMatpar(penta_matpar_id);this->matpar=NULL;
    66         this->InitHookNeighboors(penta_elements_ids);this->neighboors=NULL;
     66        this->InitHookNeighboors(penta_elements_ids);this->neighbors=NULL;
    6767
    6868        //intialize inputs, and add as many inputs per element as requested:
     
    202202        penta->hmatice.copy(&this->hmatice);
    203203        penta->hmatpar.copy(&this->hmatpar);
    204         penta->hneighboors.copy(&this->hneighboors);
     204        penta->hneighbors.copy(&this->hneighbors);
    205205
    206206        /*recover objects: */
     
    208208        penta->matice=(Matice*)penta->hmatice.delivers();
    209209        penta->matpar=(Matpar*)penta->hmatpar.delivers();
    210         penta->neighboors=(Penta*)penta->hneighboors.deliverp();
     210        penta->neighbors=(Penta*)penta->hneighbors.deliverp();
    211211
    212212        return penta;
     
    223223        this->hmatice.configure(materialsin);
    224224        this->hmatpar.configure(materialsin);
    225         this->hneighboors.configure(elementsin);
     225        this->hneighbors.configure(elementsin);
    226226
    227227        /*Now, go pick up the objects inside the hooks: */
     
    229229        this->matice=(Matice*)this->hmatice.delivers();
    230230        this->matpar=(Matpar*)this->hmatpar.delivers();
    231         this->neighboors=(Penta*)this->hneighboors.deliverp();
     231        this->neighbors=(Penta*)this->hneighbors.deliverp();
    232232
    233233        /*point parameters to real dataset: */
     
    254254        hmatice.Demarshall(&marshalled_dataset);
    255255        hmatpar.Demarshall(&marshalled_dataset);
    256         hneighboors.Demarshall(&marshalled_dataset);
     256        hneighbors.Demarshall(&marshalled_dataset);
    257257
    258258        /*pointers are garbabe, until configuration is carried out: */
     
    260260        matice=NULL;
    261261        matpar=NULL;
    262         neighboors=NULL;
     262        neighbors=NULL;
    263263       
    264264        /*demarshall inputs: */
     
    332332        hmatice.Marshall(&marshalled_dataset);
    333333        hmatpar.Marshall(&marshalled_dataset);
    334         hneighboors.Marshall(&marshalled_dataset);
     334        hneighbors.Marshall(&marshalled_dataset);
    335335
    336336        /*Marshall inputs: */
     
    355355                +hmatice.MarshallSize()
    356356                +hmatpar.MarshallSize()
    357                 +hneighboors.MarshallSize()
     357                +hneighbors.MarshallSize()
    358358                +inputs->MarshallSize()
    359359                +sizeof(int); //sizeof(int) for enum type
  • issm/trunk/src/c/objects/Elements/PentaHook.cpp

    r3811 r3818  
    4747/*FUNCTION PentaHook::InitHookNeighboors(int* element_ids){{{1*/
    4848void PentaHook::InitHookNeighboors(int* element_ids){
    49         this->hneighboors.Init(element_ids,2);
     49        this->hneighbors.Init(element_ids,2);
    5050
    5151}
  • issm/trunk/src/c/objects/Elements/PentaHook.h

    r3814 r3818  
    1414                Hook hmatice; // 1 ice material
    1515                Hook hmatpar; // 1 material parameter
    16                 Hook hneighboors; // 2 elements, first down, second up
     16                Hook hneighbors; // 2 elements, first down, second up
    1717
    1818
Note: See TracChangeset for help on using the changeset viewer.