Prepares bodyorces used by CDIFS.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(cdifs_obj), | intent(inout) | :: | this |
CDIFS solver |
subroutine cdifs_obj_PrepareSolverBodyforce(this) !> Prepares bodyorces used by CDIFS. use leapBC implicit none class(cdifs_obj), intent(inout) :: this !! CDIFS solver character(str64) :: bodyforce_type ! Get information from input call this%parser%Get("Bodyforce type", bodyforce_type, default='NONE') select case (bodyforce_type) case ('NONE') allocate(bodyforce_NONE:: this%bodyforce) case ('CPG' ) allocate(bodyforce_CPG :: this%bodyforce) select type(bodyforce=>this%bodyforce) type is (bodyforce_CPG) call this%parser%Get("Bodyforce CPG", bodyforce%CPG) end select case default call this%parallel%Stop("Unknown bodyforce type") end select return end subroutine cdifs_obj_PrepareSolverBodyforce