Skip to content

Commit 2e29e91

Browse files
authored
Merge pull request #407 from pdziekan/master
get rid of warnings
2 parents 0ebb8b1 + 929f8eb commit 2e29e91

File tree

6 files changed

+7
-14
lines changed

6 files changed

+7
-14
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ target_include_directories(cloudphxx_lgrngn
108108
)
109109

110110
# enabling additional warnings
111-
target_compile_options(cloudphxx_lgrngn PRIVATE $<$<COMPILE_LANGUAGE:CXX>: -Wextra>)
111+
#target_compile_options(cloudphxx_lgrngn PRIVATE $<$<COMPILE_LANGUAGE:CXX>: -Wextra>)
112112
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra")
113113

114114
# enabling c++11

include/libcloudph++/common/detail/toms748.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ T toms748_solve(F f, const T& ax, const T& bx, const T& fax, const T& fbx, Tol t
295295

296296
a = ax;
297297
b = bx;
298+
299+
fa = fax;
300+
fb = fbx;
298301

299302
#if !defined(NDEBUG)
300303
if(a >= b)
@@ -303,10 +306,6 @@ T toms748_solve(F f, const T& ax, const T& bx, const T& fax, const T& fbx, Tol t
303306
assert(0);
304307
}
305308
#endif
306-
307-
308-
fa = fax;
309-
fb = fbx;
310309

311310
if(tol(a, b) || (fa == 0) || (fb == 0))
312311
{

src/detail/kernels.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ namespace libcloudphxx
2828
k_params(k_params), n_user_params(n_user_params), r_max(r_max) {}
2929

3030
// thrust requires that a default ctor exists
31-
BOOST_GPU_ENABLED
3231
kernel_base() = default;
3332

3433
BOOST_GPU_ENABLED
@@ -45,7 +44,6 @@ namespace libcloudphxx
4544
kernel_golovin(thrust_device::pointer<real_t> k_params) : kernel_base<real_t, n_t>(k_params, 1) {}
4645

4746
// thrust requires that a default ctor exists
48-
BOOST_GPU_ENABLED
4947
kernel_golovin() = default;
5048

5149
BOOST_GPU_ENABLED
@@ -134,7 +132,6 @@ namespace libcloudphxx
134132
kernel_geometric_with_multiplier(thrust_device::pointer<real_t> k_params) : kernel_geometric<real_t, n_t>(k_params, 1) {}
135133

136134
// thrust requires that a default ctor exists
137-
BOOST_GPU_ENABLED
138135
kernel_geometric_with_multiplier() = default;
139136

140137
BOOST_GPU_ENABLED
@@ -186,7 +183,6 @@ namespace libcloudphxx
186183
kernel_geometric_with_efficiencies(thrust_device::pointer<real_t> k_params, real_t r_max) : kernel_geometric<real_t, n_t>(k_params, 0, r_max) {}
187184

188185
// thrust requires that a default ctor exists
189-
BOOST_GPU_ENABLED
190186
kernel_geometric_with_efficiencies() = default;
191187

192188
BOOST_GPU_ENABLED
@@ -220,7 +216,6 @@ namespace libcloudphxx
220216
kernel_onishi(thrust_device::pointer<real_t> k_params, real_t r_max) : kernel_geometric<real_t, n_t>(k_params, 1, r_max) {}
221217

222218
// thrust requires that a default ctor exists
223-
BOOST_GPU_ENABLED
224219
kernel_onishi() = default;
225220

226221
BOOST_GPU_ENABLED

src/impl/particles_impl_hskpng_count.ipp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ namespace libcloudphxx
2828
count_num.begin() // output - values
2929
);
3030
count_n = n.first - count_ijk.begin();
31-
assert(count_n >= 0);
3231
assert(count_n <= n_cell);
3332
}
3433
};

src/impl/particles_impl_init_count_num.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ namespace libcloudphxx
124124

125125
switch(n_dims)
126126
{
127-
case 0 : throw std::runtime_error("init_count_num_src called in 0D"); break;
128-
case 1 : throw std::runtime_error("init_count_num_src called in 1D"); break;
127+
case 0 : throw std::runtime_error("init_count_num_src called in 0D");
128+
case 1 : throw std::runtime_error("init_count_num_src called in 1D");
129129
case 2:
130130
thrust::transform(
131131
zero,

src/impl/particles_impl_moms.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ namespace libcloudphxx
216216
}
217217
}
218218
#endif
219-
assert(count_n >= 0 && count_n <= n_cell);
219+
assert(count_n <= n_cell);
220220
if(specific)
221221
{
222222
// dividing by dv

0 commit comments

Comments
 (0)