Changeset 27208


Ignore:
Timestamp:
08/16/22 11:53:00 (3 years ago)
Author:
Eric.Larour
Message:

CHG: much better output of error logs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-SLPS2022/src/c/classes/Inputs/TriaInput.cpp

    r26121 r27208  
    375375
    376376        /*xinput is of the same type, so cast it: */
    377         if(xinput->ObjectEnum()!=TriaInputEnum) _error_("Operation not permitted because xinput is 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()));
    378378        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()));
    380380
    381381        /*Carry out the AXPY operation depending on type:*/
     
    401401        if(xtriainput->M!=this->M||xtriainput->N!=this->N) _error_("Operation not permitted because the inputs have different sizes");
    402402
    403         /*Carry out the AXPY operation depending on type:*/
     403        /*Carry out the pointwise mult operation depending on type:*/
    404404        for(int i=0;i<this->M*this->N;i++) this->values[i] = xtriainput->values[i] * this->values[i];
    405405        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.