Skip to content

Commit 7a649d1

Browse files
committed
add 0 initialization to total_number_particles, l_min and l_max
1 parent e94a62c commit 7a649d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/data_structures/APR/GenInfo.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class GenInfo {
1515
}
1616

1717
public:
18-
int l_min;
19-
int l_max;
18+
int l_min = 0;
19+
int l_max = 0;
2020
int org_dims[3]={0,0,0};
2121

2222
uint8_t number_dimensions = 3;
@@ -25,7 +25,7 @@ class GenInfo {
2525
std::vector<int> y_num;
2626
std::vector<int> z_num;
2727

28-
uint64_t total_number_particles;
28+
uint64_t total_number_particles = 0;
2929

3030
std::vector<int> level_size; // precomputation of the size of each level, used by the iterators.
3131

0 commit comments

Comments
 (0)