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

Dt now in parameters

File:
1 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 ||
Note: See TracChangeset for help on using the changeset viewer.