Last change
on this file since 21726 was 21726, checked in by Mathieu Morlighem, 8 years ago |
CHG added Archive/21337-21723
|
File size:
1.2 KB
|
Rev | Line | |
---|
[21726] | 1 | Index: ../trunk-jpl/src/c/classes/Elements/Element.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/classes/Elements/Element.cpp (revision 21512)
|
---|
| 4 | +++ ../trunk-jpl/src/c/classes/Elements/Element.cpp (revision 21513)
|
---|
| 5 | @@ -1042,6 +1042,30 @@
|
---|
| 6 | input->GetInputValue(pvalue,gauss);
|
---|
| 7 |
|
---|
| 8 | }/*}}}*/
|
---|
| 9 | +void Element::GetInputsInterpolations(Vector<IssmDouble>* interpolations){/*{{{*/
|
---|
| 10 | +
|
---|
| 11 | + int interpolation;
|
---|
| 12 | +
|
---|
| 13 | + /*Go through all inputs and assign interpolation in vector*/
|
---|
| 14 | + _assert_(this->inputs);
|
---|
| 15 | + for(int i=0;i<this->inputs->Size();i++){
|
---|
| 16 | + Input* input=xDynamicCast<Input*>(this->inputs->GetObjectByOffset(i));
|
---|
| 17 | + switch(input->ObjectEnum()){
|
---|
| 18 | + case BoolInputEnum:
|
---|
| 19 | + case DoubleInputEnum:
|
---|
| 20 | + case IntInputEnum:
|
---|
| 21 | + interpolations->SetValue(input->InstanceEnum(),reCast<IssmDouble>(input->ObjectEnum()),INS_VAL);
|
---|
| 22 | + break;
|
---|
| 23 | + case TriaInputEnum:
|
---|
| 24 | + interpolation = input->GetResultInterpolation();
|
---|
| 25 | + interpolations->SetValue(input->InstanceEnum(),interpolation,INS_VAL);
|
---|
| 26 | + break;
|
---|
| 27 | + default:
|
---|
| 28 | + _error_("Input "<<EnumToStringx(input->ObjectEnum())<<" not supported yet");
|
---|
| 29 | + }
|
---|
| 30 | + }
|
---|
| 31 | +
|
---|
| 32 | +}/*}}}*/
|
---|
| 33 | IssmDouble Element::GetMaterialParameter(int enum_in){/*{{{*/
|
---|
| 34 |
|
---|
| 35 | _assert_(this->matpar);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.