Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
2486837a
Commit
2486837a
authored
6 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
finalize rename
parent
d294c760
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#49663
passed
6 years ago
Stage: build
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
TurTLE/DNS.py
+2
-2
2 additions, 2 deletions
TurTLE/DNS.py
TurTLE/PP.py
+2
-2
2 additions, 2 deletions
TurTLE/PP.py
TurTLE/TEST.py
+2
-2
2 additions, 2 deletions
TurTLE/TEST.py
TurTLE/_code.py
+11
-11
11 additions, 11 deletions
TurTLE/_code.py
tests/run_all_tests.sh
+7
-7
7 additions, 7 deletions
tests/run_all_tests.sh
with
24 additions
and
24 deletions
TurTLE/DNS.py
+
2
−
2
View file @
2486837a
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
TurTLE/PP.py
+
2
−
2
View file @
2486837a
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
TurTLE/TEST.py
+
2
−
2
View file @
2486837a
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
TurTLE/_code.py
+
11
−
11
View file @
2486837a
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
tests/run_all_tests.sh
+
7
−
7
View file @
2486837a
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment