@@ -11,10 +11,10 @@ using matrix_t = dash::Matrix<
11
11
double , 2 ,
12
12
typename pattern_t ::index_type,
13
13
pattern_t >;
14
- using StencilT = dash::StencilPoint<2 >;
15
- using StencilSpecT = dash::StencilSpec<StencilT,4 >;
16
- using GlobBoundSpecT = dash::GlobalBoundarySpec<2 >;
17
- using HaloMatrixWrapperT = dash::HaloMatrixWrapper<matrix_t >;
14
+ using StencilT = dash::halo:: StencilPoint<2 >;
15
+ using StencilSpecT = dash::halo:: StencilSpec<StencilT,4 >;
16
+ using GlobBoundSpecT = dash::halo:: GlobalBoundarySpec<2 >;
17
+ using HaloMatrixWrapperT = dash::halo:: HaloMatrixWrapper<matrix_t >;
18
18
19
19
using array_t = dash::Array<double >;
20
20
@@ -48,9 +48,6 @@ int main(int argc, char *argv[])
48
48
cerr << " Not enough arguments ./<prog> matrix_ext iterations" << endl;
49
49
return 1 ;
50
50
}
51
- using HaloBlockT = dash::HaloBlock<double ,pattern_t >;
52
- using HaloMemT = dash::HaloMemory<HaloBlockT>;
53
-
54
51
auto matrix_ext = std::atoi (argv[1 ]);
55
52
auto iterations = std::atoi (argv[2 ]);
56
53
@@ -87,16 +84,16 @@ int main(int argc, char *argv[])
87
84
88
85
StencilSpecT stencil_spec ( StencilT (-1 , 0 ), StencilT (1 , 0 ), StencilT ( 0 , -1 ), StencilT (0 , 1 ));
89
86
90
- GlobBoundSpecT bound_spec (dash::BoundaryProp::CYCLIC, dash::BoundaryProp::CYCLIC);
87
+ GlobBoundSpecT bound_spec (dash::halo:: BoundaryProp::CYCLIC, dash::halo ::BoundaryProp::CYCLIC);
91
88
92
89
HaloMatrixWrapperT halomat (matrix, bound_spec, stencil_spec);
93
90
HaloMatrixWrapperT halomat2 (matrix2, bound_spec, stencil_spec);
94
91
95
92
auto stencil_op = halomat.stencil_operator (stencil_spec);
96
93
auto stencil_op2 = halomat2.stencil_operator (stencil_spec);
97
94
98
- decltype (stencil_op) * current_op = &stencil_op;
99
- decltype (stencil_op2) * new_op = &stencil_op2;
95
+ auto * current_op = &stencil_op;
96
+ auto * new_op = &stencil_op2;
100
97
101
98
HaloMatrixWrapperT* current_halo = &halomat;
102
99
HaloMatrixWrapperT* new_halo = &halomat2;
@@ -146,8 +143,8 @@ int main(int argc, char *argv[])
146
143
}
147
144
#endif
148
145
// slow version
149
- auto it_end = current_op->iend ();
150
- for (auto it = current_op->ibegin (); it != it_end; ++it)
146
+ auto it_end = current_op->inner . end ();
147
+ for (auto it = current_op->inner . begin (); it != it_end; ++it)
151
148
{
152
149
auto core = *it;
153
150
auto dtheta = (it.value_at (0 ) + it.value_at (1 ) - 2 * core) / (dx * dx) +
@@ -159,8 +156,8 @@ int main(int argc, char *argv[])
159
156
current_halo->wait ();
160
157
161
158
// Calculation of boundary Halo elements
162
- auto it_bend = current_op->bend ();
163
- for (auto it = current_op->bbegin (); it != it_bend; ++it) {
159
+ auto it_bend = current_op->boundary . end ();
160
+ for (auto it = current_op->boundary . begin (); it != it_bend; ++it) {
164
161
auto core = *it;
165
162
double dtheta =
166
163
(it.value_at (0 ) + it.value_at (1 ) - 2 * core) / (dx * dx) +
0 commit comments