MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / OPS_ElasticSection2d

Function OPS_ElasticSection2d

SRC/material/section/ElasticSection2d.cpp:43–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41ID ElasticSection2d::code(2);
42
43void* 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
69extern void* OPS_ElasticSection3d(void);
70extern void* OPS_ElasticShearSection2d(void);

Callers 2

OPS_ElasticSectionFunction · 0.85
OPS_ElasticSectionFunction · 0.85

Calls 3

OPS_GetIntInputFunction · 0.50
OPS_GetDoubleInputFunction · 0.50

Tested by

no test coverage detected