58 u_bf, v_bf, w_bf, fringe, a_x, a_y, a_z)
60 type(
field_t),
intent(in) :: u, v, w, fringe, u_bf, v_bf, w_bf
61 real(kind=
rp),
intent(in) :: a_x, a_y, a_z
63 type(
field_t),
pointer :: fu, fv, fw
65 n = fields%item_size(1)
77 fu%x(i,1,1,1) = fu%x(i,1,1,1) + &
78 a_x * fringe%x(i,1,1,1) * (u_bf%x(i,1,1,1) - u%x(i,1,1,1))
79 fv%x(i,1,1,1) = fv%x(i,1,1,1) + &
80 a_y * fringe%x(i,1,1,1) * (v_bf%x(i,1,1,1) - v%x(i,1,1,1))
81 fw%x(i,1,1,1) = fw%x(i,1,1,1) + &
82 a_z * fringe%x(i,1,1,1) * (w_bf%x(i,1,1,1) - w%x(i,1,1,1))
subroutine, public sponge_source_term_compute_cpu(fields, u, v, w, u_bf, v_bf, w_bf, fringe, a_x, a_y, a_z)
Computes the generic sponge source term on the cpu.