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

Function OPS_NDCommitState

SRC/interpreter/OpenSeesNDTestCommands.cpp:299–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298
299void* OPS_NDCommitState()
300{
301 int tag = 0;
302 double strains[6];
303 int size = 6;
304 double stressdata[6] = {1 , 2 , 3, 4, 5, 6};
305
306 int numdata = 1;
307 if (OPS_GetIntInput(&numdata, &tag) < 0) return 0;
308
309
310 NDMaterial* mat = OPS_getNDMaterial(tag);
311
312 if (mat == NULL)
313 {
314 opserr << "OPS_NDCommitState - material with tag " << tag << " does not exist" << endln;
315 return 0;
316 }
317
318
319 mat->commitState();
320
321 return 0;
322}
323
324
325void* OPS_NDUpdateIntegerParameter()

Callers

nothing calls this directly

Calls 3

OPS_GetIntInputFunction · 0.70
OPS_getNDMaterialFunction · 0.50
commitStateMethod · 0.45

Tested by

no test coverage detected