The sources are x, y, z of the position, unscaled.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(DataSource), | intent(in) | :: | s(3) |
x, y, z data sources |
pure logical function is_position_xyz(s) type(DataSource), intent(in) :: s(3) !! x, y, z data sources integer :: k is_position_xyz = .true. do k = 1, 3 if (s(k)%src /= SOURCE_POSOPT .or. s(k)%opt /= 0 .or. s(k)%element /= k .or. s(k)%scale /= 1.0_wp) & is_position_xyz = .false. end do end function is_position_xyz