Skip to content
Snippets Groups Projects
Commit 653929eb authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

made some OpenMP runtime functions work even without OpenMP

parent 072019f6
No related merge requests found
......@@ -62,10 +62,10 @@ inline void omp_set_max_active_levels (int) { WALBERLA_OPENMP_FUNCTION_ERROR
inline void omp_set_schedule (omp_sched_t, int) { WALBERLA_OPENMP_FUNCTION_ERROR }
/* query API functions */
inline int omp_get_num_threads (void) { WALBERLA_OPENMP_FUNCTION_ERROR }
inline int omp_get_num_threads (void) { return 1; }
inline int omp_get_dynamic (void) { WALBERLA_OPENMP_FUNCTION_ERROR }
inline int omp_get_nested (void) { WALBERLA_OPENMP_FUNCTION_ERROR }
inline int omp_get_max_threads (void) { WALBERLA_OPENMP_FUNCTION_ERROR }
inline int omp_get_max_threads (void) { return 1; }
inline int omp_get_thread_num (void) { WALBERLA_OPENMP_FUNCTION_ERROR }
inline int omp_get_num_procs (void) { WALBERLA_OPENMP_FUNCTION_ERROR }
inline int omp_in_parallel (void) { WALBERLA_OPENMP_FUNCTION_ERROR }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment