Register every named non-structural .kipp column as a colour field.
Sets names, units and reset ranges of shared registry in convdata.f90.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | names(:) |
Name of each column, blank if unnamed. |
||
| character(len=*), | intent(in) | :: | colunits(:) |
Unit of each column, blank if none. |
||
| integer(kind=int32), | intent(in) | :: | ncols |
Number of columns. |
||
| integer(kind=int32), | intent(out), | allocatable | :: | fld_col(:) |
Source column of each registered field. |
|
| integer(kind=int32), | intent(out) | :: | nf |
Number of registered fields. |
subroutine register_kipp_fields(names, colunits, ncols, fld_col, nf) !! Register every named non-structural `.kipp` column as a colour field. !! !! Sets names, units and reset ranges of shared registry in convdata.f90. ! Arguments character(len=*), intent(in) :: names(:) !! Name of each column, blank if unnamed. character(len=*), intent(in) :: colunits(:) !! Unit of each column, blank if none. integer(int32), intent(in) :: ncols !! Number of columns. integer(int32), allocatable, intent(out) :: fld_col(:) !! Source column of each registered field. integer(int32), intent(out) :: nf !! Number of registered fields. integer(int32) :: c integer(int32), allocatable :: tmpcol(:) allocate (tmpcol(ncols)) nf = 0 do c = 1, ncols if (len_trim(names(c)) == 0) cycle if (is_structural_kipp(names(c))) cycle nf = nf + 1 tmpcol(nf) = c end do call reset_field_registry(nf) allocate (fld_col(nf)) do c = 1, nf fld_col(c) = tmpcol(c) field_names(c) = names(tmpcol(c)) field_units(c) = colunits(tmpcol(c)) end do deallocate (tmpcol) end subroutine register_kipp_fields