Changeset 6349


Ignore:
Timestamp:
10/20/10 12:26:06 (14 years ago)
Author:
Eric.Larour
Message:

Dt now in parameters

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

Legend:

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

    r6320 r6349  
    575575        if (iomodel->elementonwater) this->inputs->AddInput(new BoolInput(ElementOnWaterEnum,(IssmBool)iomodel->elementonwater[index]));
    576576        if (iomodel->elementonsurface) this->inputs->AddInput(new BoolInput(ElementOnSurfaceEnum,(IssmBool)iomodel->elementonsurface[index]));
     577
     578        /*time: */
     579        this->inputs->AddInput(new DoubleInput(DtEnum,iomodel->dt));
    577580
    578581        /*Control Inputs*/
     
    28812884        heatcapacity=matpar->GetHeatCapacity();
    28822885        thermalconductivity=matpar->GetThermalConductivity();
    2883         this->parameters->FindParam(&dt,DtEnum);
     2886        this->inputs->GetParameterValue(&dt,DtEnum);
    28842887        this->parameters->FindParam(&artdiff,ArtDiffEnum);
    28852888        this->parameters->FindParam(&epsvel,EpsVelEnum);
     
    37833786        heatcapacity=matpar->GetHeatCapacity();
    37843787        thermalconductivity=matpar->GetThermalConductivity();
    3785         this->parameters->FindParam(&dt,DtEnum);
     3788        this->inputs->GetParameterValue(&dt,DtEnum);
    37863789        this->parameters->FindParam(&artdiff,ArtDiffEnum);
    37873790        Input* vx_input=inputs->GetInput(VxEnum); ISSMASSERT(vx_input);
     
    53325335                                name==SurfaceEnum ||
    53335336                                name==BedEnum ||
     5337                                name==DtEnum ||
    53345338                                name==SurfaceSlopeXEnum ||
    53355339                                name==SurfaceSlopeYEnum ||
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r6347 r6349  
    642642        if (iomodel->elementonsurface) this->inputs->AddInput(new BoolInput(ElementOnSurfaceEnum,(IssmBool)iomodel->elementonsurface[index]));
    643643
     644        /*time: */
     645        this->inputs->AddInput(new DoubleInput(DtEnum,iomodel->dt));
     646
    644647        /*Control Inputs*/
    645648        if (iomodel->control_analysis && iomodel->control_type){
     
    32573260        /*Retrieve all inputs and parameters*/
    32583261        GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES);
    3259         this->parameters->FindParam(&dt,DtEnum);
     3262        this->inputs->GetParameterValue(&dt,DtEnum);
    32603263        this->parameters->FindParam(&dim,DimEnum);
    32613264        this->parameters->FindParam(&artdiff,ArtDiffEnum);
     
    33763379        /*Retrieve all inputs and parameters*/
    33773380        GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES);
    3378         this->parameters->FindParam(&dt,DtEnum);
     3381        this->inputs->GetParameterValue(&dt,DtEnum);
    33793382        this->parameters->FindParam(&dim,DimEnum);
    33803383        Input* vxaverage_input=NULL;
     
    34983501        /*Retrieve all inputs and parameters*/
    34993502        GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES);
    3500         this->parameters->FindParam(&dt,DtEnum);
     3503        this->inputs->GetParameterValue(&dt,DtEnum);
    35013504        mixed_layer_capacity=matpar->GetMixedLayerCapacity();
    35023505        thermal_exchange_velocity=matpar->GetThermalExchangeVelocity();
     
    45034506        rho_ice=matpar->GetRhoIce();
    45044507        heatcapacity=matpar->GetHeatCapacity();
    4505         this->parameters->FindParam(&dt,DtEnum);
     4508        this->inputs->GetParameterValue(&dt,DtEnum);
    45064509        Input* vx_input=inputs->GetInput(VxEnum);                         ISSMASSERT(vx_input);
    45074510        Input* vy_input=inputs->GetInput(VyEnum);                         ISSMASSERT(vy_input);
     
    50925095                                name==SurfaceSlopeYEnum ||
    50935096                                name==MeltingRateEnum ||
     5097                                name==DtEnum ||
    50945098                                name==AccumulationRateEnum ||
    50955099                                name==SurfaceAreaEnum||
Note: See TracChangeset for help on using the changeset viewer.