56 subroutine scalar_z_split_ic(s, split_value, value_below, value_above)
57 type(field_t),
intent(inout) :: s
58 real(kind=rp),
intent(in) :: split_value
59 real(kind=rp),
intent(in) :: value_below, value_above
61 real(kind=rp) :: z_value
64 do i = 1, s%dof%size()
65 z_value = s%dof%z(i, 1, 1, 1)
67 if (z_value .gt. split_value)
then
68 s%x(i, 1, 1, 1) = value_above
70 s%x(i, 1, 1, 1) = value_below
75 call s%copy_from(host_to_device, .true.)