| 50 | Matrix LinearCrdTransf2d::kg(6,6); |
| 51 | |
| 52 | void* OPS_LinearCrdTransf2d() |
| 53 | { |
| 54 | if(OPS_GetNumRemainingInputArgs() < 1) { |
| 55 | opserr<<"insufficient arguments for LinearCrdTransf2d\n"; |
| 56 | return 0; |
| 57 | } |
| 58 | |
| 59 | // get tag |
| 60 | int tag; |
| 61 | int numData = 1; |
| 62 | if(OPS_GetIntInput(&numData,&tag) < 0) return 0; |
| 63 | |
| 64 | // get option |
| 65 | Vector jntOffsetI(2), jntOffsetJ(2); |
| 66 | double *iptr=&jntOffsetI(0), *jptr=&jntOffsetJ(0); |
| 67 | while(OPS_GetNumRemainingInputArgs() > 4) { |
| 68 | std::string type = OPS_GetString(); |
| 69 | if(type == "-jntOffset") { |
| 70 | numData = 2; |
| 71 | if(OPS_GetDoubleInput(&numData,iptr) < 0) return 0; |
| 72 | if(OPS_GetDoubleInput(&numData,jptr) < 0) return 0; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | return new LinearCrdTransf2d(tag,jntOffsetI,jntOffsetJ); |
| 77 | } |
| 78 | |
| 79 | // constructor: |
| 80 | LinearCrdTransf2d::LinearCrdTransf2d(int tag): |
no test coverage detected