00001 #ifdef CH_LANG_CC 00002 /* 00003 * _______ __ 00004 * / ___/ / ___ __ _ / / ___ 00005 * / /__/ _ \/ _ \/ V \/ _ \/ _ \ 00006 * \___/_//_/\___/_/_/_/_.__/\___/ 00007 * Please refer to Copyright.txt, in Chombo's root directory. 00008 */ 00009 #endif 00010 00011 #ifdef _OPENMP 00012 #include <omp.h> 00013 #endif 00014 00015 #ifndef _CH_THREAD_H_ 00016 #define _CH_THREAD_H_ 00017 00018 00019 //returns true if we are on thread 0 (or if not threaded) 00020 extern bool onThread0(); 00021 00022 //returns the value of OMP_NUM_THREADS (or 1 if not threaded) 00023 extern int getMaxThreads(); 00024 00025 00026 #endif