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

Function OPS_domainCommitTag

SRC/interpreter/OpenSeesCommands.cpp:3595–3615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3593}
3594
3595int OPS_domainCommitTag() {
3596 if (cmds == 0) {
3597 return 0;
3598 }
3599
3600 int commitTag = cmds->getDomain()->getCommitTag();
3601 int numdata = 1;
3602 if (OPS_GetNumRemainingInputArgs() > 0) {
3603 if (OPS_GetIntInput(&numdata, &commitTag) < 0) {
3604 opserr << "WARNING: failed to get commitTag\n";
3605 return -1;
3606 }
3607 cmds->getDomain()->setCommitTag(commitTag);
3608 }
3609 if (OPS_SetIntOutput(&numdata, &commitTag, true) < 0) {
3610 opserr << "WARNING failed to set commitTag\n";
3611 return 0;
3612 }
3613
3614 return 0;
3615}
3616
3617void* OPS_ParallelRCM() {
3618

Callers 1

Py_ops_domainCommitTagFunction · 0.85

Calls 6

OPS_GetIntInputFunction · 0.70
OPS_SetIntOutputFunction · 0.70
getCommitTagMethod · 0.45
getDomainMethod · 0.45
setCommitTagMethod · 0.45

Tested by

no test coverage detected