Changeset 4274


Ignore:
Timestamp:
06/28/10 15:22:03 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added Extrude method for inputs

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

Legend:

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

    r4273 r4274  
    5656
    5757        if isnan(iomodel->upperelements[index]){
    58                 penta_elements_ids[0]=this->id; //upper penta is the same penta
     58                penta_elements_ids[1]=this->id; //upper penta is the same penta
    5959        }
    6060        else{
    61                 penta_elements_ids[0]=(int)(iomodel->upperelements[index]);
     61                penta_elements_ids[1]=(int)(iomodel->upperelements[index]);
    6262        }
    6363       
    6464        if isnan(iomodel->lowerelements[index]){
    65                 penta_elements_ids[1]=this->id; //lower penta is the same penta
     65                penta_elements_ids[0]=this->id; //lower penta is the same penta
    6666        }
    6767        else{
    68                 penta_elements_ids[1]=(int)(iomodel->lowerelements[index]);
     68                penta_elements_ids[0]=(int)(iomodel->lowerelements[index]);
    6969        }
    7070        this->InitHookNodes(nummodels);this->nodes=NULL;
     
    41414141        Input* original_input=NULL;
    41424142
    4143         /*Make a copy of the original input: */
     4143        /*Extrude the original input: */
    41444144        original_input=(Input*)this->inputs->GetInput(enum_type);
     4145        original_input->Extrude();
    41454146
    41464147        /*recover parameters: */
  • issm/trunk/src/c/objects/Inputs/BeamVertexInput.h

    r4248 r4274  
    6969                void AXPY(Input* xinput,double scalar);
    7070                void Constrain(double cm_min, double cm_max);
     71                void Extrude(void){ISSMERROR("not supported yet");};
    7172                void GetVectorFromInputs(Vec vector,int* doflist);
    7273                void GetValuesPtr(double** pvalues,int* pnum_values);
  • issm/trunk/src/c/objects/Inputs/BoolInput.h

    r4248 r4274  
    6969                void AXPY(Input* xinput,double scalar);
    7070                void Constrain(double cm_min, double cm_max);
     71                void Extrude(void){ISSMERROR("not supported yet");};
    7172                void GetVectorFromInputs(Vec vector,int* doflist);
    7273                void GetValuesPtr(double** pvalues,int* pnum_values);
  • issm/trunk/src/c/objects/Inputs/DoubleInput.h

    r4248 r4274  
    6868                void AXPY(Input* xinput,double scalar);
    6969                void Constrain(double cm_min, double cm_max);
     70                void Extrude(void){ISSMERROR("not supported yet");};
    7071                void GetVectorFromInputs(Vec vector,int* doflist);
    7172                void GetValuesPtr(double** pvalues,int* pnum_values);
  • issm/trunk/src/c/objects/Inputs/Input.h

    r4248 r4274  
    5252                virtual void AXPY(Input* xinput,double scalar)=0;
    5353                virtual void Constrain(double cm_min, double cm_max)=0;
     54                virtual void Extrude()=0;
    5455                virtual void GetVectorFromInputs(Vec vector,int* doflist)=0;
    5556                virtual void GetValuesPtr(double** pvalues,int* pnum_values)=0;
  • issm/trunk/src/c/objects/Inputs/IntInput.h

    r4248 r4274  
    6969                void AXPY(Input* xinput,double scalar);
    7070                void Constrain(double cm_min, double cm_max);
     71                void Extrude(void){ISSMERROR("not supported yet");};
    7172                void GetVectorFromInputs(Vec vector,int* doflist);
    7273                void GetValuesPtr(double** pvalues,int* pnum_values);
  • issm/trunk/src/c/objects/Inputs/PentaVertexInput.cpp

    r4248 r4274  
    944944}
    945945/*}}}*/
     946/*FUNCTION PentaVertexInput::Extrude(double cm_min, double cm_max){{{1*/
     947void PentaVertexInput::Extrude(void){
     948
     949        int i;
     950
     951        /*First 3 values copied on 3 last values*/
     952        for(i=0;i<3;i++) this->values[3+i]=this->values[i];
     953
     954}
     955/*}}}*/
    946956/*FUNCTION PentaVertexInput::GetVectorFromInputs(Vec vector,int* doflist){{{1*/
    947957void PentaVertexInput::GetVectorFromInputs(Vec vector,int* doflist){
  • issm/trunk/src/c/objects/Inputs/PentaVertexInput.h

    r4248 r4274  
    7878                void AXPY(Input* xinput,double scalar);
    7979                void Constrain(double cm_min, double cm_max);
     80                void Extrude(void);
    8081                void GetVectorFromInputs(Vec vector,int* doflist);
    8182                void GetValuesPtr(double** pvalues,int* pnum_values);
  • issm/trunk/src/c/objects/Inputs/SingVertexInput.h

    r4248 r4274  
    6868                void AXPY(Input* xinput,double scalar);
    6969                void Constrain(double cm_min, double cm_max);
     70                void Extrude(void){ISSMERROR("not supported yet");};
    7071                void GetVectorFromInputs(Vec vector,int* doflist);
    7172                void GetValuesPtr(double** pvalues,int* pnum_values);
  • issm/trunk/src/c/objects/Inputs/TriaVertexInput.h

    r4248 r4274  
    7676                void AXPY(Input* xinput,double scalar);
    7777                void Constrain(double cm_min, double cm_max);
     78                void Extrude(void){ISSMERROR("not supported yet");};
    7879                void GetVectorFromInputs(Vec vector,int* doflist);
    7980                void GetValuesPtr(double** pvalues,int* pnum_values);
Note: See TracChangeset for help on using the changeset viewer.