mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Creation of OpenFOAM-dev repository 15/04/2008
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 1997, Regents of the University of Minnesota
|
||||
*
|
||||
* omp.c
|
||||
*
|
||||
* This file contains "fake" implementations of OpenMP's runtime libraries
|
||||
*
|
||||
*/
|
||||
|
||||
#include <GKlib.h>
|
||||
|
||||
#if !defined(__OPENMP__)
|
||||
void omp_set_num_threads(int num_threads) { return; }
|
||||
int omp_get_num_threads(void) { return 1; }
|
||||
int omp_get_max_threads(void) { return 1; }
|
||||
int omp_get_thread_num(void) { return 1; }
|
||||
int omp_get_num_procs(void) { return 1; }
|
||||
int omp_in_parallel(void) { return 0; }
|
||||
void omp_set_dynamic(int num_threads) { return; }
|
||||
int omp_get_dynamic(void) { return 0; }
|
||||
void omp_set_nested(int nested) { return; }
|
||||
int omp_get_nested(void) { return 0; }
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user