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

Function OPS_getPID

SRC/interpreter/OpenSeesMiscCommands.cpp:1594–1609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1592}
1593
1594int OPS_getPID()
1595{
1596 int pid = 0;
1597
1598#ifdef _PARALLEL_INTERPRETERS
1599 MPI_Comm_rank(MPI_COMM_WORLD, &pid);
1600#endif
1601
1602 int size = 1;
1603 if (OPS_SetIntOutput(&size, &pid, true) < 0) {
1604 opserr << "WARNING: failed to set pid\n";
1605 return -1;
1606 }
1607
1608 return 0;
1609}
1610
1611int OPS_getNP()
1612{

Callers 2

Tcl_ops_getPIDFunction · 0.85
Py_ops_getPIDFunction · 0.85

Calls 1

OPS_SetIntOutputFunction · 0.70

Tested by

no test coverage detected