Browse Source

Fixed errors

Adam Kelly 5 years ago
parent
commit
7858d930b7
3 changed files with 5 additions and 2 deletions
  1. 1 1
      CMakeLists.txt
  2. 1 1
      python/__init__.py
  3. 3 0
      python/pytangle.pyx

+ 1 - 1
CMakeLists.txt

@@ -3,7 +3,7 @@ project(tangle_project)
 
 
 option(DISTRIBUTED "Use MPI" OFF)
-option(MULTITHREADED "Use OpenMP" ON)
+option(MULTITHREADED "Use OpenMP" OFF)
 
 
 if (NOT DEFINED ${TANGLE_LIB_PATH})

+ 1 - 1
python/__init__.py

@@ -1 +1 @@
-from .pytangle import say_hi
+from .pytangle import say_hi, count

+ 3 - 0
python/pytangle.pyx

@@ -6,3 +6,6 @@ cdef extern from "tangle.h":
 
 def say_hi():
     return count_to(5)
+
+def count(i):
+    return count_to(i)