@brief Subroutine that allocates the cartesian components of an axisymmetric 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_2DX), | intent(inout) | :: | F | |||
integer, | intent(in), | DIMENSION(3) | :: | dims |
subroutine ALLOCATE_V_FIELD_2DX(F,dims)
TYPE(V_FIELD_2DX), INTENT(INOUT) :: F
INTEGER, DIMENSION(3), INTENT(IN) :: dims
ALLOCATE(F%X(dims(1),dims(3)))
ALLOCATE(F%Y(dims(1),dims(3)))
ALLOCATE(F%Z(dims(1),dims(3)))
end subroutine ALLOCATE_V_FIELD_2DX