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