| 44 | |
| 45 | |
| 46 | void * OPS_HHTExplicit_TP(void) |
| 47 | { |
| 48 | // pointer to an integrator that will be returned |
| 49 | TransientIntegrator *theIntegrator = 0; |
| 50 | |
| 51 | int argc = OPS_GetNumRemainingInputArgs(); |
| 52 | if (argc < 1 || argc > 2) { |
| 53 | opserr << "WARNING - incorrect number of args want HHTExplicit_TP $alpha\n"; |
| 54 | opserr << " or HHTExplicit_TP $alpha $gamma\n"; |
| 55 | return 0; |
| 56 | } |
| 57 | |
| 58 | double dData[2]; |
| 59 | if (OPS_GetDouble(&argc, dData) != 0) { |
| 60 | opserr << "WARNING - invalid args want HHTExplicit_TP $alpha\n"; |
| 61 | opserr << " or HHTExplicit_TP $alpha $gamma\n"; |
| 62 | return 0; |
| 63 | } |
| 64 | |
| 65 | if (argc == 1) |
| 66 | theIntegrator = new HHTExplicit_TP(dData[0]); |
| 67 | else if (argc == 2) |
| 68 | theIntegrator = new HHTExplicit_TP(dData[0], dData[1]); |
| 69 | |
| 70 | if (theIntegrator == 0) |
| 71 | opserr << "WARNING - out of memory creating HHTExplicit_TP integrator\n"; |
| 72 | |
| 73 | return theIntegrator; |
| 74 | } |
| 75 | |
| 76 | |
| 77 | HHTExplicit_TP::HHTExplicit_TP() |
no test coverage detected