Changeset 6349
- Timestamp:
- 10/20/10 12:26:06 (14 years ago)
- Location:
- issm/trunk/src/c/objects/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r6320 r6349 575 575 if (iomodel->elementonwater) this->inputs->AddInput(new BoolInput(ElementOnWaterEnum,(IssmBool)iomodel->elementonwater[index])); 576 576 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)); 577 580 578 581 /*Control Inputs*/ … … 2881 2884 heatcapacity=matpar->GetHeatCapacity(); 2882 2885 thermalconductivity=matpar->GetThermalConductivity(); 2883 this-> parameters->FindParam(&dt,DtEnum);2886 this->inputs->GetParameterValue(&dt,DtEnum); 2884 2887 this->parameters->FindParam(&artdiff,ArtDiffEnum); 2885 2888 this->parameters->FindParam(&epsvel,EpsVelEnum); … … 3783 3786 heatcapacity=matpar->GetHeatCapacity(); 3784 3787 thermalconductivity=matpar->GetThermalConductivity(); 3785 this-> parameters->FindParam(&dt,DtEnum);3788 this->inputs->GetParameterValue(&dt,DtEnum); 3786 3789 this->parameters->FindParam(&artdiff,ArtDiffEnum); 3787 3790 Input* vx_input=inputs->GetInput(VxEnum); ISSMASSERT(vx_input); … … 5332 5335 name==SurfaceEnum || 5333 5336 name==BedEnum || 5337 name==DtEnum || 5334 5338 name==SurfaceSlopeXEnum || 5335 5339 name==SurfaceSlopeYEnum || -
issm/trunk/src/c/objects/Elements/Tria.cpp
r6347 r6349 642 642 if (iomodel->elementonsurface) this->inputs->AddInput(new BoolInput(ElementOnSurfaceEnum,(IssmBool)iomodel->elementonsurface[index])); 643 643 644 /*time: */ 645 this->inputs->AddInput(new DoubleInput(DtEnum,iomodel->dt)); 646 644 647 /*Control Inputs*/ 645 648 if (iomodel->control_analysis && iomodel->control_type){ … … 3257 3260 /*Retrieve all inputs and parameters*/ 3258 3261 GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES); 3259 this-> parameters->FindParam(&dt,DtEnum);3262 this->inputs->GetParameterValue(&dt,DtEnum); 3260 3263 this->parameters->FindParam(&dim,DimEnum); 3261 3264 this->parameters->FindParam(&artdiff,ArtDiffEnum); … … 3376 3379 /*Retrieve all inputs and parameters*/ 3377 3380 GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES); 3378 this-> parameters->FindParam(&dt,DtEnum);3381 this->inputs->GetParameterValue(&dt,DtEnum); 3379 3382 this->parameters->FindParam(&dim,DimEnum); 3380 3383 Input* vxaverage_input=NULL; … … 3498 3501 /*Retrieve all inputs and parameters*/ 3499 3502 GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES); 3500 this-> parameters->FindParam(&dt,DtEnum);3503 this->inputs->GetParameterValue(&dt,DtEnum); 3501 3504 mixed_layer_capacity=matpar->GetMixedLayerCapacity(); 3502 3505 thermal_exchange_velocity=matpar->GetThermalExchangeVelocity(); … … 4503 4506 rho_ice=matpar->GetRhoIce(); 4504 4507 heatcapacity=matpar->GetHeatCapacity(); 4505 this-> parameters->FindParam(&dt,DtEnum);4508 this->inputs->GetParameterValue(&dt,DtEnum); 4506 4509 Input* vx_input=inputs->GetInput(VxEnum); ISSMASSERT(vx_input); 4507 4510 Input* vy_input=inputs->GetInput(VyEnum); ISSMASSERT(vy_input); … … 5092 5095 name==SurfaceSlopeYEnum || 5093 5096 name==MeltingRateEnum || 5097 name==DtEnum || 5094 5098 name==AccumulationRateEnum || 5095 5099 name==SurfaceAreaEnum||
Note:
See TracChangeset
for help on using the changeset viewer.