Allocate convdata.f90 colour-field registry for nf fields.
Names and units blank, ranges empty until widened by update_field_range.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | nf |
Number of fields. |
subroutine reset_field_registry(nf) !! Allocate convdata.f90 colour-field registry for `nf` fields. !! !! Names and units blank, ranges empty until widened by `update_field_range`. ! Arguments integer(int32), intent(in) :: nf !! Number of fields. if (allocated(field_names)) deallocate (field_names) if (allocated(field_vmin)) deallocate (field_vmin) if (allocated(field_vmax)) deallocate (field_vmax) if (allocated(field_vpos)) deallocate (field_vpos) if (allocated(field_log)) deallocate (field_log) if (allocated(field_units)) deallocate (field_units) nfields = nf allocate (field_names(nf), field_vmin(nf), field_vmax(nf), field_vpos(nf), & field_log(nf)) allocate (field_units(nf)) if (nf > 0) then field_names = '' field_units = '' field_vmin = huge(1.d0) field_vmax = -huge(1.d0) field_vpos = huge(1.d0) field_log = .false. end if end subroutine reset_field_registry