File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ ginkgo_find_package(Ginkgo "Ginkgo::ginkgo" FALSE 1.8.0)
139
139
include (cmake/ginkgo.cmake)
140
140
141
141
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -O0 -ggdb" )
142
+
142
143
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} \
143
144
-Wall -Wpedantic -Wextra -march=native -fopenmp -Wno-undefined-var-template" )
144
145
@@ -164,6 +165,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
164
165
set (CMAKE_CXX_FLAGS_DEBUG
165
166
"${CMAKE_CXX_FLAGS_DEBUG} \
166
167
--coverage\
168
+ --fopenmp \
167
169
-fprofile-arcs \
168
170
-ggdb3 \
169
171
" )
Original file line number Diff line number Diff line change
1
+ // SPDX-FileCopyrightText: 2024 OGL authors
2
+ //
3
+ // SPDX-License-Identifier: GPL-3.0-or-later
4
+
5
+
6
+ #include "fvCFD.H"
7
+ #include "MatrixWrapper/Combination/Combination.H"
8
+ #include <gtest/gtest.h>
9
+
10
+
11
+ TEST (Combination , CanCreateCombination )
12
+ {
13
+ auto cmb = Combination < double , int , gko ::matrix ::Coo > ::create (this -> exec );
14
+
15
+ ASSERT_EQ (cmb -> get_size (), gko ::dim < 2 > (0 , 0 ));
16
+ ASSERT_EQ (cmb -> get_coefficients ().size (), 0 );
17
+ ASSERT_EQ (cmb -> get_operators ().size (), 0 );
18
+ }
You can’t perform that action at this time.
0 commit comments