Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(KORC_PARAMS), | intent(in) | :: | params | |||
type(FIELDS), | intent(in) | :: | F | |||
type(PROFILES), | intent(inout) | :: | P |
SUBROUTINE finalize_fio(params, F, P)
TYPE(KORC_PARAMS), INTENT(IN) :: params
TYPE(FIELDS), INTENT(IN) :: F
TYPE(PROFILES), INTENT(INOUT) :: P
INTEGER :: status
INTEGER :: ii
status = fio_close_field(F%FIO_B)
status = fio_close_field(F%FIO_B+1)
if (F%FIO_A.gt.0) then
status = fio_close_field(F%FIO_A)
endif
status = fio_close_field(P%FIO_ne)
if (P%FIO_te.gt.0) then
status = fio_close_field(P%FIO_te)
endif
if (P%FIO_ni.gt.0) then
status = fio_close_field(P%FIO_ni)
endif
if (params%collisions) then
do ii=1,params%num_impurity_species
status = fio_close_field(P%FIO_nimp(ii))
end do
end if
status=fio_close_source(F%isrc)
end SUBROUTINE FINALIZE_FIO