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

Function OPS_FiberSection2d

SRC/material/section/FiberSection2d.cpp:51–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49ID FiberSection2d::code(2);
50
51void* 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:
75FiberSection2d::FiberSection2d(int tag, int num, Fiber **fibers, bool compCentroid):

Callers 1

OPS_FiberSectionFunction · 0.85

Calls 3

OPS_GetIntInputFunction · 0.50
OPS_GetStringFunction · 0.50

Tested by

no test coverage detected