From 2486837a1ee44dae0fc95b64faa80182947e0271 Mon Sep 17 00:00:00 2001
From: Cristian C Lalescu <Cristian.Lalescu@ds.mpg.de>
Date: Thu, 23 May 2019 15:29:34 +0200
Subject: [PATCH] finalize rename

---
 TurTLE/DNS.py          |  4 ++--
 TurTLE/PP.py           |  4 ++--
 TurTLE/TEST.py         |  4 ++--
 TurTLE/_code.py        | 22 +++++++++++-----------
 tests/run_all_tests.sh | 14 +++++++-------
 5 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/TurTLE/DNS.py b/TurTLE/DNS.py
index cf52a853..e6808f11 100644
--- a/TurTLE/DNS.py
+++ b/TurTLE/DNS.py
@@ -98,8 +98,8 @@ class DNS(_code):
             int main(int argc, char *argv[])
             {{
                 bool fpe = (
-                    (getenv("BFPS_FPE_OFF") == nullptr) ||
-                    (getenv("BFPS_FPE_OFF") != std::string("TRUE")));
+                    (getenv("TURTLE_FPE_OFF") == nullptr) ||
+                    (getenv("TURTLE_FPE_OFF") != std::string("TRUE")));
                 return main_code< {0} >(argc, argv, fpe);
             }}
             """.format(self.dns_type + '<{0}>'.format(self.C_field_dtype))
diff --git a/TurTLE/PP.py b/TurTLE/PP.py
index 4b19e7b7..b34470ed 100644
--- a/TurTLE/PP.py
+++ b/TurTLE/PP.py
@@ -97,8 +97,8 @@ class PP(_code):
             int main(int argc, char *argv[])
             {{
                 bool fpe = (
-                    (getenv("BFPS_FPE_OFF") == nullptr) ||
-                    (getenv("BFPS_FPE_OFF") != std::string("TRUE")));
+                    (getenv("TURTLE_FPE_OFF") == nullptr) ||
+                    (getenv("TURTLE_FPE_OFF") != std::string("TRUE")));
                 return main_code< {0} >(argc, argv, fpe);
             }}
             """.format(self.dns_type + '<{0}>'.format(self.C_field_dtype))
diff --git a/TurTLE/TEST.py b/TurTLE/TEST.py
index 8de48ac6..651290bb 100644
--- a/TurTLE/TEST.py
+++ b/TurTLE/TEST.py
@@ -97,8 +97,8 @@ class TEST(_code):
             int main(int argc, char *argv[])
             {{
                 bool fpe = (
-                    (getenv("BFPS_FPE_OFF") == nullptr) ||
-                    (getenv("BFPS_FPE_OFF") != std::string("TRUE")));
+                    (getenv("TURTLE_FPE_OFF") == nullptr) ||
+                    (getenv("TURTLE_FPE_OFF") != std::string("TRUE")));
                 return main_code< {0} >(argc, argv, fpe);
             }}
             """.format(self.dns_type + '<{0}>'.format(self.C_field_dtype))
diff --git a/TurTLE/_code.py b/TurTLE/_code.py
index c1c47820..ec11fd4c 100644
--- a/TurTLE/_code.py
+++ b/TurTLE/_code.py
@@ -76,7 +76,7 @@ class _code(_base):
                 //begincpp
                 int main(int argc, char *argv[])
                 {
-                    if(getenv("BFPS_FPE_OFF") == nullptr || getenv("BFPS_FPE_OFF") != std::string("TRUE")){
+                    if(getenv("TURTLE_FPE_OFF") == nullptr || getenv("TURTLE_FPE_OFF") != std::string("TRUE")){
                         feenableexcept(FE_INVALID | FE_OVERFLOW);
                     }
                     else{
@@ -215,20 +215,20 @@ class _code(_base):
             outfile.write('    message(STATUS "Using CMAKE_C_COMPILER=MPICC")\n')
             outfile.write('endif()\n')
             #ideally we should use something like the following 2 lines
-            #outfile.write('set(CMAKE_CXX_COMPILER ${BFPS_CXX_COMPILER})\n')
-            #outfile.write('set(CMAKE_C_COMPILER ${BFPS_C_COMPILER})\n')
+            #outfile.write('set(CMAKE_CXX_COMPILER ${TURTLE_CXX_COMPILER})\n')
+            #outfile.write('set(CMAKE_C_COMPILER ${TURTLE_C_COMPILER})\n')
             outfile.write('project(project_{0} LANGUAGES CXX)\n'.format(self.name))
-            outfile.write('find_package(BFPS REQUIRED)\n')
+            outfile.write('find_package(TurTLE REQUIRED)\n')
             outfile.write('set(CMAKE_CXX_STANDARD 11)\n')
             outfile.write('set(CMAKE_CXX_STANDARD_REQUIRED ON)\n')
-            outfile.write('set(CMAKE_CXX_COMPILE_FLAGS "${CMAKE_CXX_COMPILE_FLAGS} ${BFPS_CXX_COMPILE_FLAGS}")\n')
-            outfile.write('set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${BFPS_EXE_LINKER_FLAGS}")\n')
-            outfile.write('include_directories(${BFPS_INCLUDE_DIRECTORIES} ${BFPS_INCLUDE_DIR}/TurTLE)\n')
-            outfile.write('link_directories(${BFPS_LINK_DIRECTORIES} ${BFPS_LIBRARIES_DIR})\n')
-            outfile.write('find_library(BFPS_STATIC_LIBRARY TurTLE)\n')
+            outfile.write('set(CMAKE_CXX_COMPILE_FLAGS "${CMAKE_CXX_COMPILE_FLAGS} ${TURTLE_CXX_COMPILE_FLAGS}")\n')
+            outfile.write('set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TURTLE_EXE_LINKER_FLAGS}")\n')
+            outfile.write('include_directories(${TURTLE_INCLUDE_DIRECTORIES} ${TURTLE_INCLUDE_DIR}/TurTLE)\n')
+            outfile.write('link_directories(${TURTLE_LINK_DIRECTORIES} ${TURTLE_LIBRARIES_DIR})\n')
+            outfile.write('find_library(TURTLE_STATIC_LIBRARY TurTLE)\n')
             outfile.write('add_executable({0} {0}.cpp)\n'.format(self.name))
-            outfile.write('target_link_libraries(' + self.name + ' ${BFPS_STATIC_LIBRARY})\n')
-            outfile.write('target_link_libraries(' + self.name + ' ${BFPS_LIBS})\n')
+            outfile.write('target_link_libraries(' + self.name + ' ${TURTLE_STATIC_LIBRARY})\n')
+            outfile.write('target_link_libraries(' + self.name + ' ${TURTLE_LIBS})\n')
         subprocess.check_call(['cmake', '.'])
         current_environment = os.environ
         if not no_debug:
diff --git a/tests/run_all_tests.sh b/tests/run_all_tests.sh
index 7865a8a3..63038e6d 100644
--- a/tests/run_all_tests.sh
+++ b/tests/run_all_tests.sh
@@ -2,12 +2,12 @@
 
 set -e
 
-bfps.test_fftw
-bfps.test_Parseval
-bfps.test_NSVEparticles
+turtle.test_fftw
+turtle.test_Parseval
+turtle.test_NSVEparticles
 
 # test postprocessing
-bfps PP field_single_to_double --simname dns_nsveparticles --iter0 32 --iter1 32
-bfps PP get_rfields --simname dns_nsveparticles --iter0 0 --iter1 64
-bfps PP joint_acc_vel_stats --simname dns_nsveparticles --iter0 0 --iter1 64
-bfps PP resize --simname dns_nsveparticles --new_nx 96 --new_ny 96 --new_nz 96 --new_simname dns_nsveparticles_resized
+turtle PP field_single_to_double --simname dns_nsveparticles --iter0 32 --iter1 32
+turtle PP get_rfields --simname dns_nsveparticles --iter0 0 --iter1 64
+turtle PP joint_acc_vel_stats --simname dns_nsveparticles --iter0 0 --iter1 64
+turtle PP resize --simname dns_nsveparticles --new_nx 96 --new_ny 96 --new_nz 96 --new_simname dns_nsveparticles_resized
-- 
GitLab