Changeset 12493 for issm/trunk-jpl/src/c/objects/Inputs/PentaP1Input.cpp
- Timestamp:
- 06/21/12 10:02:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/Inputs/PentaP1Input.cpp
r12426 r12493 455 455 case ControlInputEnum:{ 456 456 ControlInput* cont_input=(ControlInput*)xinput; 457 if(cont_input->values->ObjectEnum()!=PentaP1InputEnum) _error _("not supported yet");457 if(cont_input->values->ObjectEnum()!=PentaP1InputEnum) _error2_("not supported yet"); 458 458 PentaP1Input* cast_input=(PentaP1Input*)cont_input->values; 459 459 for(i=0;i<numnodes;i++)this->values[i]=this->values[i]+scalar*(cast_input->values[i]);} 460 460 return; 461 461 default: 462 _error _("not implemented yet");462 _error2_("not implemented yet"); 463 463 } 464 464 … … 495 495 496 496 /*Check that input provided is a thickness*/ 497 if (thickness_input->InstanceEnum()!=ThicknessEnum) _error _("Input provided is not a Thickness (enum_type is %s)",EnumToStringx(thickness_input->InstanceEnum()));497 if (thickness_input->InstanceEnum()!=ThicknessEnum) _error2_("Input provided is not a Thickness (enum_type is " << EnumToStringx(thickness_input->InstanceEnum()) << ")"); 498 498 499 499 /*Get Thickness value pointer*/ … … 511 511 512 512 default: 513 _error _("not implemented yet");513 _error2_("not implemented yet"); 514 514 } 515 515 } … … 529 529 530 530 /*Check that inputB is of the same type*/ 531 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error _("Operation not permitted because inputB is of type %s",EnumToStringx(inputB->ObjectEnum()));531 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error2_("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum())); 532 532 xinputB=(PentaP1Input*)inputB; 533 533 … … 560 560 561 561 /*Check that inputB is of the same type*/ 562 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error _("Operation not permitted because inputB is of type %s",EnumToStringx(inputB->ObjectEnum()));562 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error2_("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum())); 563 563 xinputB=(PentaP1Input*)inputB; 564 564 … … 591 591 592 592 /*Check that inputB is of the same type*/ 593 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error _("Operation not permitted because inputB is of type %s",EnumToStringx(inputB->ObjectEnum()));593 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error2_("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum())); 594 594 xinputB=(PentaP1Input*)inputB; 595 595
Note:
See TracChangeset
for help on using the changeset viewer.