@@ -48,7 +48,7 @@ struct DummyFieldsBCs {
4848
4949Inline auto equal (real_t a, real_t b, const char * msg, real_t acc) -> bool {
5050 if (not (math::abs (a - b) < acc)) {
51- printf (" %.12e != %.12e [%.12e] %s\n " , a, b, math::abs (a - b), msg);
51+ Kokkos:: printf (" %.12e != %.12e [%.12e] %s\n " , a, b, math::abs (a - b), msg);
5252 return false ;
5353 }
5454 return true ;
@@ -118,19 +118,19 @@ void testFldsBCs(const std::vector<std::size_t>& res) {
118118 FOUR * math::abs (x + HALF - xg_edge) / dx_abs);
119119 const auto factor2 = math::tanh (FOUR * math::abs (x - xg_edge) / dx_abs);
120120 if (not cmp::AlmostEqual (flds (i1, em::ex1), TWO * (ONE - factor1))) {
121- printf (" %f != %f\n " , flds (i1, em::ex1), TWO * (ONE - factor1));
121+ Kokkos:: printf (" %f != %f\n " , flds (i1, em::ex1), TWO * (ONE - factor1));
122122 raise::KernelError (HERE, " incorrect ex1" );
123123 }
124124 if (not cmp::AlmostEqual (flds (i1, em::ex2), THREE * (ONE - factor2))) {
125- printf (" %f != %f\n " , flds (i1, em::ex2), THREE * (ONE - factor2));
125+ Kokkos:: printf (" %f != %f\n " , flds (i1, em::ex2), THREE * (ONE - factor2));
126126 raise::KernelError (HERE, " incorrect ex2" );
127127 }
128128 if (not cmp::AlmostEqual (flds (i1, em::bx2), FOUR * (ONE - factor1))) {
129- printf (" %f != %f\n " , flds (i1, em::bx2), FOUR * (ONE - factor1));
129+ Kokkos:: printf (" %f != %f\n " , flds (i1, em::bx2), FOUR * (ONE - factor1));
130130 raise::KernelError (HERE, " incorrect bx2" );
131131 }
132132 if (not cmp::AlmostEqual (flds (i1, em::bx3), FIVE * (ONE - factor1))) {
133- printf (" %f != %f\n " , flds (i1, em::bx3), FIVE * (ONE - factor1));
133+ Kokkos:: printf (" %f != %f\n " , flds (i1, em::bx3), FIVE * (ONE - factor1));
134134 raise::KernelError (HERE, " incorrect bx3" );
135135 }
136136 });
@@ -145,19 +145,19 @@ void testFldsBCs(const std::vector<std::size_t>& res) {
145145 FOUR * math::abs (x + HALF - xg_edge) / dx_abs);
146146 const auto factor2 = math::tanh (FOUR * math::abs (x - xg_edge) / dx_abs);
147147 if (not cmp::AlmostEqual (flds (i1, i2, em::ex1), TWO * (ONE - factor1))) {
148- printf (" %f != %f\n " , flds (i1, i2, em::ex1), TWO * (ONE - factor1));
148+ Kokkos:: printf (" %f != %f\n " , flds (i1, i2, em::ex1), TWO * (ONE - factor1));
149149 raise::KernelError (HERE, " incorrect ex1" );
150150 }
151151 if (not cmp::AlmostEqual (flds (i1, i2, em::ex2), THREE * (ONE - factor2))) {
152- printf (" %f != %f\n " , flds (i1, i2, em::ex2), THREE * (ONE - factor2));
152+ Kokkos:: printf (" %f != %f\n " , flds (i1, i2, em::ex2), THREE * (ONE - factor2));
153153 raise::KernelError (HERE, " incorrect ex2" );
154154 }
155155 if (not cmp::AlmostEqual (flds (i1, i2, em::bx2), FOUR * (ONE - factor1))) {
156- printf (" %f != %f\n " , flds (i1, i2, em::bx2), FOUR * (ONE - factor1));
156+ Kokkos:: printf (" %f != %f\n " , flds (i1, i2, em::bx2), FOUR * (ONE - factor1));
157157 raise::KernelError (HERE, " incorrect bx2" );
158158 }
159159 if (not cmp::AlmostEqual (flds (i1, i2, em::bx3), FIVE * (ONE - factor1))) {
160- printf (" %f != %f\n " , flds (i1, i2, em::bx3), FIVE * (ONE - factor1));
160+ Kokkos:: printf (" %f != %f\n " , flds (i1, i2, em::bx3), FIVE * (ONE - factor1));
161161 raise::KernelError (HERE, " incorrect bx3" );
162162 }
163163 });
@@ -173,22 +173,22 @@ void testFldsBCs(const std::vector<std::size_t>& res) {
173173 FOUR * math::abs (x + HALF - xg_edge) / dx_abs);
174174 const auto factor2 = math::tanh (FOUR * math::abs (x - xg_edge) / dx_abs);
175175 if (not cmp::AlmostEqual (flds (i1, i2, i3, em::ex1), TWO * (ONE - factor1))) {
176- printf (" %f != %f\n " , flds (i1, i2, i3, em::ex1), TWO * (ONE - factor1));
176+ Kokkos:: printf (" %f != %f\n " , flds (i1, i2, i3, em::ex1), TWO * (ONE - factor1));
177177 raise::KernelError (HERE, " incorrect ex1" );
178178 }
179179 if (not cmp::AlmostEqual (flds (i1, i2, i3, em::ex2),
180180 THREE * (ONE - factor2))) {
181- printf (" %f != %f\n " , flds (i1, i2, i3, em::ex2), THREE * (ONE - factor2));
181+ Kokkos:: printf (" %f != %f\n " , flds (i1, i2, i3, em::ex2), THREE * (ONE - factor2));
182182 raise::KernelError (HERE, " incorrect ex2" );
183183 }
184184 if (not cmp::AlmostEqual (flds (i1, i2, i3, em::bx2),
185185 FOUR * (ONE - factor1))) {
186- printf (" %f != %f\n " , flds (i1, i2, i3, em::bx2), FOUR * (ONE - factor1));
186+ Kokkos:: printf (" %f != %f\n " , flds (i1, i2, i3, em::bx2), FOUR * (ONE - factor1));
187187 raise::KernelError (HERE, " incorrect bx2" );
188188 }
189189 if (not cmp::AlmostEqual (flds (i1, i2, i3, em::bx3),
190190 FIVE * (ONE - factor1))) {
191- printf (" %f != %f\n " , flds (i1, i2, i3, em::bx3), FIVE * (ONE - factor1));
191+ Kokkos:: printf (" %f != %f\n " , flds (i1, i2, i3, em::bx3), FIVE * (ONE - factor1));
192192 raise::KernelError (HERE, " incorrect bx3" );
193193 }
194194 });
0 commit comments