Changeset 7110


Ignore:
Timestamp:
01/14/11 14:58:30 (15 years ago)
Author:
seroussi
Message:

dt in parameters

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

Legend:

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

    r7092 r7110  
    16791679        heatcapacity=matpar->GetHeatCapacity();
    16801680        thermalconductivity=matpar->GetThermalConductivity();
    1681         this->inputs->GetParameterValue(&dt,DtEnum);
     1681        this->parameters->FindParam(&dt,DtEnum);
    16821682        this->parameters->FindParam(&artdiff,ArtDiffEnum);
    16831683        this->parameters->FindParam(&epsvel,EpsVelEnum);
     
    28012801        heatcapacity=matpar->GetHeatCapacity();
    28022802        thermalconductivity=matpar->GetThermalConductivity();
    2803         this->inputs->GetParameterValue(&dt,DtEnum);
     2803        this->parameters->FindParam(&dt,DtEnum);
    28042804        this->parameters->FindParam(&artdiff,ArtDiffEnum);
    28052805        Input* vx_input=inputs->GetInput(VxEnum); _assert_(vx_input);
     
    39893989        if (iomodel->elementonwater) this->inputs->AddInput(new BoolInput(ElementOnWaterEnum,(IssmBool)iomodel->elementonwater[index]));
    39903990        if (iomodel->elementonsurface) this->inputs->AddInput(new BoolInput(ElementOnSurfaceEnum,(IssmBool)iomodel->elementonsurface[index]));
    3991 
    3992         /*time: */
    3993         this->inputs->AddInput(new DoubleInput(DtEnum,iomodel->dt*iomodel->yts));
    39943991
    39953992        /*Control Inputs*/
     
    51985195                                name==SurfaceEnum ||
    51995196                                name==BedEnum ||
    5200                                 name==DtEnum ||
    52015197                                name==SurfaceSlopeXEnum ||
    52025198                                name==SurfaceSlopeYEnum ||
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r7107 r7110  
    11731173        /*Retrieve all inputs and parameters*/
    11741174        GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES);
    1175         this->inputs->GetParameterValue(&dt,DtEnum);
     1175        this->parameters->FindParam(&dt,DtEnum);
    11761176        this->parameters->FindParam(&dim,DimEnum);
    11771177        this->parameters->FindParam(&artdiff,ArtDiffEnum);
     
    12921292        /*Retrieve all inputs and parameters*/
    12931293        GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES);
    1294         this->inputs->GetParameterValue(&dt,DtEnum);
     1294        this->parameters->FindParam(&dt,DtEnum);
    12951295        this->parameters->FindParam(&dim,DimEnum);
    12961296        Input* vxaverage_input=NULL;
     
    14141414        /*Retrieve all inputs and parameters*/
    14151415        GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES);
    1416         this->inputs->GetParameterValue(&dt,DtEnum);
     1416        this->parameters->FindParam(&dt,DtEnum);
    14171417        mixed_layer_capacity=matpar->GetMixedLayerCapacity();
    14181418        thermal_exchange_velocity=matpar->GetThermalExchangeVelocity();
     
    24762476        rho_ice=matpar->GetRhoIce();
    24772477        heatcapacity=matpar->GetHeatCapacity();
    2478         this->inputs->GetParameterValue(&dt,DtEnum);
     2478        this->parameters->FindParam(&dt,DtEnum);
    24792479        Input* vx_input=inputs->GetInput(VxEnum);                         _assert_(vx_input);
    24802480        Input* vy_input=inputs->GetInput(VyEnum);                         _assert_(vy_input);
     
    36733673        if (iomodel->elementonwater) this->inputs->AddInput(new BoolInput(ElementOnWaterEnum,(IssmBool)iomodel->elementonwater[index]));
    36743674        if (iomodel->elementonsurface) this->inputs->AddInput(new BoolInput(ElementOnSurfaceEnum,(IssmBool)iomodel->elementonsurface[index]));
    3675 
    3676         /*time: */
    3677         this->inputs->AddInput(new DoubleInput(DtEnum,iomodel->dt*iomodel->yts));
    36783675
    36793676        /*Control Inputs*/
     
    41884185                                name==SurfaceSlopeYEnum ||
    41894186                                name==MeltingRateEnum ||
    4190                                 name==DtEnum ||
    41914187                                name==AccumulationRateEnum ||
    41924188                                name==SurfaceAreaEnum||
Note: See TracChangeset for help on using the changeset viewer.