| 49 | ID FiberSection2d::code(2); |
| 50 | |
| 51 | void* OPS_FiberSection2d() |
| 52 | { |
| 53 | int numData = OPS_GetNumRemainingInputArgs(); |
| 54 | if(numData < 1) { |
| 55 | opserr<<"insufficient arguments for FiberSection2d\n"; |
| 56 | return 0; |
| 57 | } |
| 58 | |
| 59 | numData = 1; |
| 60 | int tag; |
| 61 | if (OPS_GetIntInput(&numData,&tag) < 0) return 0; |
| 62 | |
| 63 | bool computeCentroid = true; |
| 64 | if (OPS_GetNumRemainingInputArgs() > 0) { |
| 65 | const char* opt = OPS_GetString(); |
| 66 | if (strcmp(opt, "-noCentroid") == 0) |
| 67 | computeCentroid = false; |
| 68 | } |
| 69 | |
| 70 | int num = 30; |
| 71 | return new FiberSection2d(tag, num, computeCentroid); |
| 72 | } |
| 73 | |
| 74 | // constructors: |
| 75 | FiberSection2d::FiberSection2d(int tag, int num, Fiber **fibers, bool compCentroid): |
no test coverage detected