Index: /issm/branches/trunk-larour-SLPS2022/src/c/classes/Inputs/TriaInput.cpp
===================================================================
--- /issm/branches/trunk-larour-SLPS2022/src/c/classes/Inputs/TriaInput.cpp	(revision 27207)
+++ /issm/branches/trunk-larour-SLPS2022/src/c/classes/Inputs/TriaInput.cpp	(revision 27208)
@@ -375,7 +375,7 @@
 
 	/*xinput is of the same type, so cast it: */
-	if(xinput->ObjectEnum()!=TriaInputEnum) _error_("Operation not permitted because xinput is of type " << EnumToStringx(xinput->ObjectEnum()));
+	if(xinput->ObjectEnum()!=TriaInputEnum) _error_("TriaInput (" << this->InstanceEnum() << ") error message: operation not permitted because xinput (" << xinput->InstanceEnum() << ") is of type " << EnumToStringx(xinput->ObjectEnum()));
 	TriaInput* xtriainput=xDynamicCast<TriaInput*>(xinput);
-	if(xtriainput->GetInterpolation()!=this->interpolation) _error_("Operation not permitted because xinput is of type " << EnumToStringx(xinput->ObjectEnum()));
+	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()));
 
 	/*Carry out the AXPY operation depending on type:*/
@@ -401,5 +401,5 @@
 	if(xtriainput->M!=this->M||xtriainput->N!=this->N) _error_("Operation not permitted because the inputs have different sizes");
 
-	/*Carry out the AXPY operation depending on type:*/
+	/*Carry out the pointwise mult operation depending on type:*/
 	for(int i=0;i<this->M*this->N;i++) this->values[i] = xtriainput->values[i] * this->values[i];
 	for(int i=0;i<TriaRef::NumberofNodes(this->interpolation);i++) this->element_values[i] = xtriainput->element_values[i] * this->element_values[i];
