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

Function OPS_LinearCrdTransf2d

SRC/coordTransformation/LinearCrdTransf2d.cpp:52–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50Matrix LinearCrdTransf2d::kg(6,6);
51
52void* 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:
80LinearCrdTransf2d::LinearCrdTransf2d(int tag):

Callers 1

OPS_LinearCrdTransfFunction · 0.85

Calls 4

OPS_GetIntInputFunction · 0.50
OPS_GetStringFunction · 0.50
OPS_GetDoubleInputFunction · 0.50

Tested by

no test coverage detected