| 41 | ID ElasticSection2d::code(2); |
| 42 | |
| 43 | void* OPS_ElasticSection2d() |
| 44 | { |
| 45 | if(OPS_GetNumRemainingInputArgs() < 4) { |
| 46 | opserr<<"insufficient arguments for ealstic section\n"; |
| 47 | return 0; |
| 48 | } |
| 49 | |
| 50 | // get tag |
| 51 | int tag; |
| 52 | int numData = 1; |
| 53 | if(OPS_GetIntInput(&numData,&tag) < 0) { |
| 54 | opserr << "ERROR reading tag: ElasticSection" << endln; |
| 55 | return 0; |
| 56 | } |
| 57 | |
| 58 | // get data |
| 59 | numData = 3; |
| 60 | double data[3]; |
| 61 | if(OPS_GetDoubleInput(&numData,&data[0]) < 0) { |
| 62 | opserr << "ERROR reading inputs: ElasticSection" << endln; |
| 63 | return 0; |
| 64 | } |
| 65 | |
| 66 | return new ElasticSection2d(tag,data[0],data[1],data[2]); |
| 67 | } |
| 68 | |
| 69 | extern void* OPS_ElasticSection3d(void); |
| 70 | extern void* OPS_ElasticShearSection2d(void); |
no test coverage detected