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

Function OPS_getNumThreads

SRC/interpreter/OpenSeesMiscCommands.cpp:1913–1926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1911}
1912
1913int OPS_getNumThreads()
1914{
1915#ifdef _OPENMP
1916 int num = omp_get_max_threads();
1917 int numdata = 1;
1918
1919 if (OPS_SetIntOutput(&numdata,&num,true) < 0) {
1920 opserr << "WARNING: failed to set output -- getNumThreads\n";
1921 return -1;
1922 }
1923#endif
1924
1925 return 0;
1926}
1927
1928int OPS_setNumThreads()
1929{

Callers 2

Tcl_ops_getNumThreadsFunction · 0.85
Py_ops_getNumThreadsFunction · 0.85

Calls 1

OPS_SetIntOutputFunction · 0.70

Tested by

no test coverage detected