Initalising function for triprisim SDF.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | h1 |
Height of triprisim |
||
real(kind=wp), | intent(in) | :: | h2 |
length of triprisim |
||
type(opticalProp_t), | intent(in) | :: | optProp |
Optical properties of the SDF |
||
integer, | intent(in) | :: | layer |
ID number of sdf |
||
real(kind=wp), | intent(in), | optional | :: | transform(4,4) |
Optional transform to apply to SDF |
function triprism_init(h1, h2, optProp, layer, transform) result(out) !! Initalising function for triprisim SDF. type(triprism) :: out !> Height of triprisim real(kind=wp), intent(IN) :: h1 !> length of triprisim real(kind=wp), intent(IN) :: h2 !> ID number of sdf integer, intent(IN) :: layer !> Optional transform to apply to SDF real(kind=wp), optional, intent(IN) :: transform(4, 4) !> Optical properties of the SDF type(opticalProp_t), intent(in) :: optProp real(kind=wp) :: t(4, 4) if(present(transform))then t = transform else t = identity() end if out%h1 = h1 out%h2 = h2 out%layer = layer out%transform = t out%optProps = optProp end function triprism_init