Skip to content

Commit bfcbfef

Browse files
authored
chore: remove warnings (#137)
1 parent 19e19ab commit bfcbfef

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/samurai/petsc/utils.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ namespace samurai
1818
template <class Field>
1919
void copy(Field& f, Vec& v)
2020
{
21-
auto n = static_cast<PetscInt>(f.mesh().nb_cells() * Field::size);
22-
2321
PetscInt n_vec;
2422
VecGetSize(v, &n_vec);
25-
assert(n == n_vec);
23+
assert(static_cast<PetscInt>(f.mesh().nb_cells() * Field::size) == n_vec);
2624

2725
double* v_data;
2826
VecGetArray(v, &v_data);

include/samurai/utils.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace samurai
1313
{
1414
template <class value_t, class index_t>
15-
class Interval;
15+
struct Interval;
1616
}
1717

1818
template <class T>

0 commit comments

Comments
 (0)