| 44 | |
| 45 | |
| 46 | void* OPS_NewmarkExplicit(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) { |
| 53 | opserr << "WARNING - incorrect number of args want NewmarkExplicit $gamma\n"; |
| 54 | return 0; |
| 55 | } |
| 56 | |
| 57 | double gamma; |
| 58 | if (OPS_GetDouble(&argc, &gamma) != 0) { |
| 59 | opserr << "WARNING - invalid args want NewmarkExplicit $gamma\n"; |
| 60 | return 0; |
| 61 | } |
| 62 | |
| 63 | theIntegrator = new NewmarkExplicit(gamma); |
| 64 | |
| 65 | if (theIntegrator == 0) |
| 66 | opserr << "WARNING - out of memory creating NewmarkExplicit integrator\n"; |
| 67 | |
| 68 | return theIntegrator; |
| 69 | } |
| 70 | |
| 71 | |
| 72 | NewmarkExplicit::NewmarkExplicit() |
no test coverage detected