Changeset 27208
- Timestamp:
- 08/16/22 11:53:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-larour-SLPS2022/src/c/classes/Inputs/TriaInput.cpp
r26121 r27208 375 375 376 376 /*xinput is of the same type, so cast it: */ 377 if(xinput->ObjectEnum()!=TriaInputEnum) _error_(" Operation not permitted because xinputis of type " << EnumToStringx(xinput->ObjectEnum()));377 if(xinput->ObjectEnum()!=TriaInputEnum) _error_("TriaInput (" << this->InstanceEnum() << ") error message: operation not permitted because xinput (" << xinput->InstanceEnum() << ") is of type " << EnumToStringx(xinput->ObjectEnum())); 378 378 TriaInput* xtriainput=xDynamicCast<TriaInput*>(xinput); 379 if(xtriainput->GetInterpolation()!=this->interpolation) _error_(" Operation not permitted because xinput is of type " << EnumToStringx(xinput->ObjectEnum()));379 if(xtriainput->GetInterpolation()!=this->interpolation) _error_("TriaInput " << this->InstanceEnum() << "error message: operation not permitted because xinput (" << xinput->InstanceEnum() << ") is of interpolation type " << EnumToStringx(xtriainput->GetInterpolation()) << " while calling input is of type " << EnumToStringx(this->GetInterpolation())); 380 380 381 381 /*Carry out the AXPY operation depending on type:*/ … … 401 401 if(xtriainput->M!=this->M||xtriainput->N!=this->N) _error_("Operation not permitted because the inputs have different sizes"); 402 402 403 /*Carry out the AXPYoperation depending on type:*/403 /*Carry out the pointwise mult operation depending on type:*/ 404 404 for(int i=0;i<this->M*this->N;i++) this->values[i] = xtriainput->values[i] * this->values[i]; 405 405 for(int i=0;i<TriaRef::NumberofNodes(this->interpolation);i++) this->element_values[i] = xtriainput->element_values[i] * this->element_values[i];
Note:
See TracChangeset
for help on using the changeset viewer.