Changeset 3817


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

problem in Penta compilation

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

Legend:

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

    r3811 r3817  
    4545        int penta_matice_id;
    4646        int penta_matpar_id;
    47         int penta_element_ids[2];
     47        int penta_elements_ids[2];
    4848        double nodeinputs[6];
    4949        bool collapse;
     
    5858        penta_matice_id=index+1; //refers to the corresponding ice material object
    5959        penta_matpar_id=iomodel->numberofelements+1; //refers to the constant material parameters object
    60         penta_elements_ids[0]=(int)*(iomodel->upperelements[index]);
    61         penta_elements_ids[1]=(int)*(iomodel->lowerelements[index]);
     60        penta_elements_ids[0]=(int)(iomodel->upperelements[index]);
     61        penta_elements_ids[1]=(int)(iomodel->lowerelements[index]);
    6262
    6363        this->InitHookNodes(penta_node_ids); this->nodes=NULL;
    6464        this->InitHookMatice(penta_matice_id);this->matice=NULL;
    6565        this->InitHookMatpar(penta_matpar_id);this->matpar=NULL;
    66         this->InitHookNeighboors(penta_element_ids);this->neighboors=NULL;
     66        this->InitHookNeighboors(penta_elements_ids);this->neighboors=NULL;
    6767
    6868        //intialize inputs, and add as many inputs per element as requested:
     
    208208        penta->matice=(Matice*)penta->hmatice.delivers();
    209209        penta->matpar=(Matpar*)penta->hmatpar.delivers();
    210         penta->neighboors=(Penta**)penta->hneighboors.deliverp();
     210        penta->neighboors=(Penta*)penta->hneighboors.deliverp();
    211211
    212212        return penta;
     
    229229        this->matice=(Matice*)this->hmatice.delivers();
    230230        this->matpar=(Matpar*)this->hmatpar.delivers();
    231         this->neighboors=(Penta**)this->hneighboors.deliverp();
     231        this->neighboors=(Penta*)this->hneighboors.deliverp();
    232232
    233233        /*point parameters to real dataset: */
     
    286286        matice->DeepEcho();
    287287        matpar->DeepEcho();
    288         printf("   neigboor ids: %i-%i\n",neigboors[0]->Id(),neigboors[1]->Id());
     288        printf("   neighbor ids: %i-%i\n",neighbors[0]->Id(),neighbors[1]->Id());
    289289        printf("   parameters\n");
    290290        parameters->DeepEcho();
  • issm/trunk/src/c/objects/Elements/Penta.h

    r3811 r3817  
    3232                Matice      *matice;       // 1 material ice
    3333                Matpar      *matpar;       // 1 material parameter
    34                 Penta       *neighboors;   // 2 neighboors: first one under, second one above
     34                Penta       *neighbors;   // 2 neighbors: first one under, second one above
    3535
    3636                Parameters  *parameters;   //pointer to solution parameters
Note: See TracChangeset for help on using the changeset viewer.