Initialise the Onion modifier for a SDF.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(sdf_base), | target | :: | prim |
SDF to modify |
||
real(kind=wp), | intent(in) | :: | thickness |
Thickned to onion by. |
type(onion) function onion_init(prim, thickness) result(out) !! Initialise the Onion modifier for a SDF. !> SDF to modify class(sdf_base), target :: prim !> Thickned to onion by. real(kind=wp), intent(IN) :: thickness out%thickness = thickness out%prim => prim out%optProps = prim%optProps out%layer = prim%layer out%transform = identity() end function onion_init