Skip to content

Commit f21e430

Browse files
authored
New GridTools Storage (#13)
Support for new gridtools storage (gridtools v1.05.01).
1 parent d77fdc3 commit f21e430

File tree

191 files changed

+2647
-76964
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+2647
-76964
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/.project
55
/.cproject
66
/serialbox
7+
/external

CMakeLists.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ include(ExternalProject)
1212

1313
#----------------- CMake options
1414
# C++11 compiler support
15-
include(CheckCXXCompilerFlag)
16-
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
17-
if(NOT(COMPILER_SUPPORTS_CXX11))
18-
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support.")
19-
endif(NOT(COMPILER_SUPPORTS_CXX11))
20-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
15+
## Set C++ standard to C++11
16+
set(CMAKE_CXX_STANDARD 11)
17+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2118

2219
# Do we use terminal colors?
2320
set(GT_VERIFICATION_USE_COLOR "ON" CACHE BOOL "Enable colored terminal output")
@@ -50,8 +47,10 @@ link_directories(${Boost_LIBRARY_DIRS})
5047
#----------------- build bundled libs
5148
add_subdirectory( libs )
5249
include_directories(${GTEST_INCLUDE_DIRS})
53-
include_directories(${SERIALBOX_INCLUDE_DIRS})
5450

51+
#----------------- find Serialbox2
52+
find_package( Serialbox 2.1.0 REQUIRED )
53+
include_directories( ${SERIALBOX_INCLUDE_DIRS} )
5554

5655
#----------------- Glob the headers (for IDEs)
5756
file(GLOB_RECURSE GT_VERIFICATION_HEADERS
@@ -73,9 +72,9 @@ if( GRIDTOOLS_ROOT )
7372
endif()
7473

7574
add_library( gridtools_verification ${GT_VERIFICATION_SOURCES} )
76-
add_dependencies( gridtools_verification googletest serialbox )
75+
add_dependencies( gridtools_verification googletest )
7776
target_link_libraries( gridtools_verification ${Boost_LIBRARIES} )
78-
target_link_libraries( gridtools_verification ${SERIALBOX_LIBRARIES} ${GTEST_BOTH_LIBRARIES} )
77+
target_link_libraries( gridtools_verification ${SERIALBOX_CXX_LIBRARIES} ${GTEST_BOTH_LIBRARIES} )
7978
target_link_libraries( gridtools_verification pthread )
8079

8180
#----------------- install verification framework

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# gridtools_verification
2+
3+
## Installation instructions
4+
- Install serialbox2 with gridtools support: cmake .. -DCMAKE_INSTALL_PREFIX=../install -DGRIDTOOLS_ROOT=<PATH_TO_GRIDTOOLS> -DSERIALBOX_TESTING_GRIDTOOLS=ON
5+
- Install gridtools_verificaiton: cmake .. -DGRIDTOOLS_ROOT=<PATH_TO_GRIDTOOLS> -DSERIALBOX_ROOT=<PATH_TO_SERIALBOX_INSTALLED_ROOT>

0 commit comments

Comments
 (0)