| 1911 | } |
| 1912 | |
| 1913 | int 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 | |
| 1928 | int OPS_setNumThreads() |
| 1929 | { |
no test coverage detected