| 49 | #include <elementAPI.h> |
| 50 | |
| 51 | void* OPS_ArcLength1() |
| 52 | { |
| 53 | double arcLength; |
| 54 | if (OPS_GetNumRemainingInputArgs() < 2) { |
| 55 | opserr << "WARNING integrator ArcLength arcLength alpha \n"; |
| 56 | return 0; |
| 57 | } |
| 58 | |
| 59 | int numdata = 1; |
| 60 | if (OPS_GetDoubleInput(&numdata, &arcLength) < 0) { |
| 61 | opserr << "WARNING integrator ArcLength failed to read arc length\n"; |
| 62 | return 0; |
| 63 | } |
| 64 | if (OPS_GetNumRemainingInputArgs() > 0) { |
| 65 | double alpha; |
| 66 | if (OPS_GetDoubleInput(&numdata, &alpha) < 0) { |
| 67 | opserr << "WARNING integrator ArcLength failed to read alpha\n"; |
| 68 | return 0; |
| 69 | } |
| 70 | return new ArcLength1(arcLength,alpha); |
| 71 | } else { |
| 72 | return new ArcLength1(arcLength); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | ArcLength1::ArcLength1(double arcLength, double alpha) |
| 77 | :StaticIntegrator(INTEGRATOR_TAGS_ArcLength1), |
no test coverage detected