[ET Trac] [Einstein Toolkit] #1892: Compile error when _OPENMP not defined.

Einstein Toolkit trac-noreply at einsteintoolkit.org
Wed May 18 16:25:48 CDT 2016


#1892: Compile error when _OPENMP not defined.
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:                     
     Type:  defect     |      Status:  new                
 Priority:  unset      |   Milestone:                     
Component:  Other      |     Version:  development version
 Keywords:             |  
-----------------------+----------------------------------------------------
 There is a compile error when _OPENMP is not defined. The following fixes
 it:

 {{{
 diff --git a/CarpetLib/src/dist.hh b/CarpetLib/src/dist.hh
 index acc646d..a5ba5be 100644
 --- a/CarpetLib/src/dist.hh
 +++ b/CarpetLib/src/dist.hh
 @@ -18,6 +18,7 @@
  #else
  static inline int omp_get_max_threads() { return 1; }
  static inline int omp_get_thread_num() { return 0; }
 +static inline int omp_get_num_threads() { return 1; }
  #endif

  #include "defs.hh"
 }}}

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1892>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list