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

Function OPS_getNP

SRC/interpreter/OpenSeesMiscCommands.cpp:1611–1626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1609}
1610
1611int OPS_getNP()
1612{
1613 int nump = 1;
1614
1615#ifdef _PARALLEL_INTERPRETERS
1616 MPI_Comm_size(MPI_COMM_WORLD, &nump);
1617#endif
1618
1619 int size = 1;
1620 if (OPS_SetIntOutput(&size, &nump, true) < 0) {
1621 opserr << "WARNING: failed to set np\n";
1622 return -1;
1623 }
1624
1625 return 0;
1626}
1627
1628int OPS_barrier()
1629{

Callers 2

Tcl_ops_getNPFunction · 0.85
Py_ops_getNPFunction · 0.85

Calls 1

OPS_SetIntOutputFunction · 0.70

Tested by

no test coverage detected