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