Changeset 17268


Ignore:
Timestamp:
02/12/14 15:36:41 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: removing inputs from Pengrid

Location:
issm/trunk-jpl/src/c/classes/Loads
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Loads/Pengrid.cpp

    r17236 r17268  
    2121/*FUNCTION Pengrid::Pengrid(){{{*/
    2222Pengrid::Pengrid(){
    23         this->inputs=NULL;
    2423        this->parameters=NULL;
    2524        this->hnode=NULL;
     
    6261        this->hmatpar=new Hook(&pengrid_matpar_id,1);
    6362
    64         //initialize inputs: none needed
    65         this->inputs=new Inputs();
    66 
    6763        //this->parameters: we still can't point to it, it may not even exist. Configure will handle this.
    6864        this->parameters=NULL;
     
    7975/*FUNCTION Pengrid::~Pengrid(){{{*/
    8076Pengrid::~Pengrid(){
    81         delete inputs;
    8277        delete hnode;
    8378        delete helement;
     
    106101        _printf_("   parameters\n");
    107102        parameters->DeepEcho();
    108         _printf_("   inputs\n");
    109         inputs->DeepEcho();
    110103}
    111104/*}}}*/
     
    129122        pengrid->id=this->id;
    130123        pengrid->analysis_type=this->analysis_type;
    131         if(this->inputs){
    132                 pengrid->inputs=(Inputs*)this->inputs->Copy();
    133         }
    134         else{
    135                 pengrid->inputs=new Inputs();
    136         }
     124
    137125        /*point parameters: */
    138126        pengrid->parameters=this->parameters;
     
    368356/*FUNCTION Pengrid::InputUpdateFromConstant(IssmDouble constant, int name) {{{*/
    369357void  Pengrid::InputUpdateFromConstant(IssmDouble constant, int name){
    370         switch(name){
    371 
    372                 case MeltingOffsetEnum:
    373                         inputs->AddInput(new DoubleInput(name,constant));
    374                         return;
    375 
    376         }
     358        /*Nothing*/
    377359}
    378360/*}}}*/
     
    506488        ElementMatrix* Ke=new ElementMatrix(&node,1,this->parameters);
    507489
    508         /*Retrieve all inputs and parameters*/
     490        /*Retrieve all parameters*/
    509491        penta->GetInputValue(&pressure,node,PressureEnum);
    510492        penta->GetInputValue(&temperature,node,TemperatureEnum);
     
    557539        ElementVector* pe=new ElementVector(&node,NUMVERTICES,this->parameters);
    558540
    559         /*Retrieve all inputs and parameters*/
     541        /*Retrieve all parameters*/
    560542        penta->GetInputValue(&pressure,node,PressureEnum);
    561543        penta->GetInputValue(&temperature,node,TemperatureEnum);
    562         inputs->GetInputValue(&melting_offset,MeltingOffsetEnum);
     544        parameters->FindParam(&melting_offset,MeltingOffsetEnum);
    563545        parameters->FindParam(&dt,TimesteppingTimeStepEnum);
    564546        parameters->FindParam(&penalty_factor,ThermalPenaltyFactorEnum);
     
    596578        ElementVector* pe=new ElementVector(&node,1,this->parameters);
    597579
    598         /*Retrieve all inputs and parameters*/
     580        /*Retrieve all parameters*/
    599581        penta->GetInputValue(&pressure,node,PressureEnum);
    600582        parameters->FindParam(&penalty_factor,ThermalPenaltyFactorEnum);
  • issm/trunk-jpl/src/c/classes/Loads/Pengrid.h

    r17236 r17268  
    2323        private:
    2424
    25                 int             id;
    26                 int analysis_type;
     25                int        id;
     26                int        analysis_type;
    2727
    2828                /*Hooks*/
     
    3737
    3838                Parameters* parameters; //pointer to solution parameters
    39                 Inputs*  inputs;
    4039
    4140                /*internals: */
Note: See TracChangeset for help on using the changeset viewer.