| 988 | } |
| 989 | |
| 990 | int |
| 991 | SSPquadUP::getResponse(int responseID, Information &eleInfo) |
| 992 | { |
| 993 | if (responseID == 1234432100) { |
| 994 | // return the stress vector |
| 995 | Vector stress(3); |
| 996 | stress = theMaterial->getStress(); |
| 997 | eleInfo.setVector(stress); |
| 998 | return 0; |
| 999 | } else if (responseID == 1234432101) { |
| 1000 | // return the strain vector |
| 1001 | Vector strain(3); |
| 1002 | strain = theMaterial->getStrain(); |
| 1003 | eleInfo.setVector(strain); |
| 1004 | return 0; |
| 1005 | } else { |
| 1006 | // default is to call getResponse in the material |
| 1007 | return theMaterial->getResponse(responseID, eleInfo); |
| 1008 | } |
| 1009 | } |
| 1010 | |
| 1011 | int |
| 1012 | SSPquadUP::setParameter(const char **argv, int argc, Parameter ¶m) |