Changeset 22279 for issm/trunk-jpl/src/c/classes/FemModel.cpp
- Timestamp:
- 11/29/17 02:32:12 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/FemModel.cpp
r22277 r22279 4469 4469 /*Intermediaries*/ 4470 4470 Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(j)); 4471 transient_input->Configure(element->parameters);4471 //transient_input->Configure(element->parameters); 4472 4472 element->inputs->AddInput(transient_input); 4473 4473 } … … 4513 4513 /*}}}*/ 4514 4514 void FemModel::AverageTransientOutputx(int* input_enum,IssmDouble init_time,int numoutputs){ /*{{{*/ 4515 IssmDouble* time_averaged=NULL; 4515 4516 4516 for(int i=0;i<numoutputs;i++){ 4517 4517 if(input_enum[i]<0){ … … 4523 4523 Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(j)); 4524 4524 int numvertices = element->GetNumberOfVertices(); 4525 //xNew<IssmDouble>(numvertices);4525 IssmDouble* time_averaged=NULL; 4526 4526 4527 4527 Input* input=element->inputs->GetInput(input_enum[i]); _assert_(input); 4528 4528 TransientInput* stacking_input=NULL; 4529 4529 stacking_input=dynamic_cast<TransientInput*>(input); 4530 stacking_input->GetInputAverageOnTimes(&time_averaged, init_time); 4531 4532 element->AddInput(TimeAverageEffectivePressureEnum,time_averaged,P1Enum); 4530 stacking_input->GetInputAverageOnTimes(&time_averaged,init_time); 4531 4532 element->AddInput(TimeAverageEffectivePressureEnum,&time_averaged[0],P1Enum); 4533 xDelete<IssmDouble>(time_averaged); 4533 4534 } 4534 4535 }
Note:
See TracChangeset
for help on using the changeset viewer.