@@ -154,7 +154,7 @@ namespace libmpdataxx
154154 )
155155 {
156156 return return_helper<ix_t >(
157- - 1.0 / 24 *
157+ - fconst< arr_3d_t >( 1.0 / 24 ) *
158158 (
159159 4 * GC[dim](pi<dim>(i+h, j, k)) * ndxx_psi<opts, dim>(psi, i, j, k)
160160 + 2 * ndx_psi<opts, dim>(psi, i, j, k) * ndx_GC0<dim>(GC[dim], i, j, k)
@@ -204,9 +204,9 @@ namespace libmpdataxx
204204 // spatial terms
205205 + div_3rd_spatial<opts, dim, sptl_intrp>(psi_np1, GC, G, i, j, k)
206206 // mixed terms
207- + 0.5 * abs (GC[dim](pi<dim>(i+h, j, k))) * ndx_fdiv<opts, dim>(psi_np1, GC, G, i, j, k)
207+ + fconst< arr_3d_t >( 0.5 ) * abs (GC[dim](pi<dim>(i+h, j, k))) * ndx_fdiv<opts, dim>(psi_np1, GC, G, i, j, k)
208208 // temporal terms
209- + 1.0 / 24 *
209+ + fconst< arr_3d_t >( 1.0 / 24 ) *
210210 (
211211 - 8 * GC[dim](pi<dim>(i+h, j, k)) * nfdiv_fdiv<opts, dim>(psi_np1, GC, G, i, j, k)
212212 + div_3rd_temporal<opts, dim, tmprl_extrp>(psi_np1, ndtt_GC, i, j, k)
@@ -238,9 +238,9 @@ namespace libmpdataxx
238238 // spatial terms
239239 + div_3rd_spatial<opts, dim, sptl_intrp>(psi_np1, GC, G, i, j, k)
240240 // mixed terms
241- - 0.5 * abs (GC[dim](pi<dim>(i+h, j, k))) * ndtx_psi<opts, dim>(psi_np1, psi_n, i, j, k)
241+ - fconst< arr_3d_t >( 0.5 ) * abs (GC[dim](pi<dim>(i+h, j, k))) * ndtx_psi<opts, dim>(psi_np1, psi_n, i, j, k)
242242 // temporal terms
243- + 1.0 / 24 *
243+ + fconst< arr_3d_t >( 1.0 / 24 ) *
244244 (
245245 + 8 * GC[dim](pi<dim>(i+h, j, k)) * nfdiv_dt<opts, dim>(psi_np1, psi_n, GC, G, i, j, k)
246246 + div_3rd_temporal<opts, dim, tmprl_extrp>(psi_np1, ndtt_GC, i, j, k)
0 commit comments