177 real(kind=rp),
intent(in) :: t
178 integer,
intent(in) :: tstep
179 type(field_t),
pointer :: u, v, w
180 type(field_t),
pointer :: fu, fv, fw
184 type(field_t),
pointer :: wo1, wo2, wo3, wo4, wo5, wo6
185 type(field_t),
pointer :: t1 , t2
186 integer :: temp_indices(8)
190 fu => this%fields%get_by_index(1)
191 fv => this%fields%get_by_index(2)
192 fw => this%fields%get_by_index(3)
202 call neko_scratch_registry%request_field(wo1, temp_indices(1))
203 call neko_scratch_registry%request_field(wo2, temp_indices(2))
204 call neko_scratch_registry%request_field(wo3, temp_indices(3))
205 call neko_scratch_registry%request_field(wo4, temp_indices(4))
206 call neko_scratch_registry%request_field(wo5, temp_indices(5))
207 call neko_scratch_registry%request_field(wo6, temp_indices(6))
208 call neko_scratch_registry%request_field(t1 , temp_indices(7))
209 call neko_scratch_registry%request_field(t2 , temp_indices(8))
231 call curl(wo1, wo2, wo3, u, v, w, t1, t2, this%coef)
232 call curl(wo4, wo5, wo6, wo1, wo2, wo3, t1, t2, this%coef)
235 if (this%if_mask)
then
241 call field_add2s2(fu, wo4, this%obj_scale)
242 call field_add2s2(fv, wo5, this%obj_scale)
243 call field_add2s2(fw, wo6, this%obj_scale)
247 call neko_scratch_registry%relinquish_field(temp_indices)
subroutine adjoint_minimum_dissipation_source_term_init_from_components(this, f_x, f_y, f_z, u, v, w, obj_scale, mask, if_mask, coef)
The constructor from type components.