| 121 | |
| 122 | |
| 123 | int OPS_getStrain(ClientData clientData, Tcl_Interp *interp, int argc, TCL_Char **argv) { |
| 124 | |
| 125 | double strain = 0.0; |
| 126 | |
| 127 | if (theTestingUniaxialMaterial !=0) { |
| 128 | strain = theTestingUniaxialMaterial->getStrain(); |
| 129 | sprintf(interp->result,"%.10e",strain); |
| 130 | return TCL_OK; |
| 131 | } else { |
| 132 | Tcl_SetResult(interp, "WARNING no active UniaxialMaterial - use testUniaxialMaterial command", TCL_STATIC); |
| 133 | return TCL_ERROR; |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | int OPS_getStress(ClientData clientData, Tcl_Interp *interp, int argc, TCL_Char **argv) { |
| 138 |
no test coverage detected