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

Function OPS_QuadPatch

SRC/material/section/repres/patch/QuadPatch.cpp:36–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#include <elementAPI.h>
35
36void* OPS_QuadPatch()
37{
38 if(OPS_GetNumRemainingInputArgs() < 11) {
39 opserr<<"insufficient arguments for QuadPatch\n";
40 return 0;
41 }
42
43 // get idata
44 int numData = 3;
45 int idata[3];
46 if(OPS_GetIntInput(&numData,&idata[0]) < 0) return 0;
47
48 // get data
49 static Matrix vertexCoords(4,2);
50 double data[8];
51 numData = 8;
52 if(OPS_GetDoubleInput(&numData,&data[0]) < 0) return 0;
53 for(int i=0; i<4; i++) {
54 for(int j=0; j<2; j++) {
55 vertexCoords(i,j) = data[i*2+j];
56 }
57 }
58
59 return new QuadPatch(idata[0],idata[1],idata[2],vertexCoords);
60}
61
62void* OPS_RectPatch()
63{

Callers 2

OPS_PatchFunction · 0.85
ops_addPatchFunction · 0.85

Calls 3

OPS_GetIntInputFunction · 0.50
OPS_GetDoubleInputFunction · 0.50

Tested by

no test coverage detected