set_regions Subroutine

private subroutine set_regions(self, regions)

The regions to draw: an ior of SHADOW_UMBRA, SHADOW_PENUMBRA and SHADOW_ANTUMBRA (default SHADOW_ALL).

Type Bound

ShadowCones

Arguments

Type IntentOptional Attributes Name
class(ShadowCones), intent(inout) :: self
integer, intent(in) :: regions

an ior of SHADOW_UMBRA, SHADOW_PENUMBRA, SHADOW_ANTUMBRA


Source Code

    subroutine set_regions(self, regions)
        class(ShadowCones), intent(inout) :: self
        integer, intent(in) :: regions                      !! an ior of SHADOW_UMBRA, SHADOW_PENUMBRA, SHADOW_ANTUMBRA
        self%regions_ = iand(regions, SHADOW_ALL)
        self%shaped = -1.0_wp                               ! (redrawn at the next update)
    end subroutine set_regions