| 995 | } |
| 996 | |
| 997 | int |
| 998 | SSPbrick::getResponse(int responseID, Information &eleInfo) |
| 999 | { |
| 1000 | if (responseID == 1234432100) { |
| 1001 | // get stress from the material |
| 1002 | const Vector &mStress = theMaterial->getStress(); |
| 1003 | return eleInfo.setVector(mStress); |
| 1004 | } else if (responseID == 1234432101) { |
| 1005 | // get strain from the material |
| 1006 | |
| 1007 | const Vector &mStrain = theMaterial->getStrain(); |
| 1008 | return eleInfo.setVector(mStrain); |
| 1009 | } else { |
| 1010 | // no special recorders for this element, call the method in the material class |
| 1011 | return theMaterial->getResponse(responseID, eleInfo); |
| 1012 | } |
| 1013 | } |
| 1014 | |
| 1015 | int |
| 1016 | SSPbrick::setParameter(const char **argv, int argc, Parameter ¶m) |