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

Function OPS_PDeltaCrdTransf2d

SRC/coordTransformation/PDeltaCrdTransf2d.cpp:50–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

OPS_PDeltaCrdTransfFunction · 0.85

Calls 4

OPS_GetIntInputFunction · 0.50
OPS_GetStringFunction · 0.50
OPS_GetDoubleInputFunction · 0.50

Tested by

no test coverage detected