@brief Subroutine that allocates the cylindrical components of a 3-D field.
@param[in,out] F Vector field to be allocated. @param[in] dims Dimension of the mesh containing the field data.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(V_FIELD_3D), | intent(inout) | :: | F | |||
integer, | intent(in), | DIMENSION(3) | :: | dims |
subroutine ALLOCATE_V_FIELD_3D(F,dims)
TYPE(V_FIELD_3D), INTENT(INOUT) :: F
INTEGER, DIMENSION(3), INTENT(IN) :: dims
ALLOCATE(F%R(dims(1),dims(2),dims(3)))
ALLOCATE(F%PHI(dims(1),dims(2),dims(3)))
ALLOCATE(F%Z(dims(1),dims(2),dims(3)))
end subroutine ALLOCATE_V_FIELD_3D