getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] (no subject)


From: Markus Bürg
Subject: [Getfem-commits] (no subject)
Date: Wed, 20 Dec 2017 07:57:33 -0500 (EST)

branch: mb-fix_compilation_error
commit 660f33ff40b603a56d4a1fa9f9b1158171ededa8
Author: mb <address@hidden>
Date:   Wed Dec 20 13:57:28 2017 +0100

    Remove duplicated functions that are already defined in getfem_omp.h
---
 src/gmm/gmm_std.h | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/src/gmm/gmm_std.h b/src/gmm/gmm_std.h
index 4d565e5..064a196 100644
--- a/src/gmm/gmm_std.h
+++ b/src/gmm/gmm_std.h
@@ -124,8 +124,6 @@ inline void GMM_NOPERATION_(int) { }
 #include <array>
 #include <locale.h>
 
-#include "getfem/getfem_arch_config.h"
-
 namespace std {
 #if defined(__GNUC__) && (__cplusplus <= 201103L)
   template<typename _Tp>
@@ -172,23 +170,6 @@ namespace std {
 }
 
 
-
-
-#ifdef GETFEM_HAVE_OPENMP
-
-#include <omp.h>
-       /**number of OpenMP threads*/
-       inline size_t num_threads(){return omp_get_max_threads();}
-       /**index of the current thread*/
-       inline size_t this_thread() {return omp_get_thread_num();}
-       /**is the program running in the parallel section*/
-       inline bool me_is_multithreaded_now(){return 
static_cast<bool>(omp_in_parallel());}
-#else
-       inline size_t num_threads(){return size_t(1);}
-       inline size_t this_thread() {return size_t(0);}
-       inline bool me_is_multithreaded_now(){return false;}
-#endif
-
 namespace gmm {
 
        using std::endl; using std::cout; using std::cerr;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]