Skip to content

Commit 929f8eb

Browse files
committed
get rid of warnings 2
1 parent ebbd760 commit 929f8eb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

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)