| 849 | } |
| 850 | |
| 851 | int |
| 852 | SSPquad::getResponse(int responseID, Information &eleInfo) |
| 853 | { |
| 854 | if (responseID == 1234432101) { |
| 855 | // return the stress vector |
| 856 | Vector stress(3); |
| 857 | stress = theMaterial->getStress(); |
| 858 | eleInfo.setVector(stress); |
| 859 | return 0; |
| 860 | } else if (responseID == 1234432102) { |
| 861 | // return the strain vector |
| 862 | Vector strain(3); |
| 863 | strain = theMaterial->getStrain(); |
| 864 | eleInfo.setVector(strain); |
| 865 | return 0; |
| 866 | } else { |
| 867 | // default is to call getResponse in the material |
| 868 | return theMaterial->getResponse(responseID, eleInfo); |
| 869 | } |
| 870 | } |
| 871 | |
| 872 | int |
| 873 | SSPquad::setParameter(const char **argv, int argc, Parameter ¶m) |