33 u gridman_dbg,gridman_unit
38 INTEGER(GRIDMAN_SP),
INTENT(IN) :: N
40 INTEGER(GRIDMAN_SP),
INTENT(IN) :: L
42 INTEGER,
INTENT(OUT) :: IERR
47 w
WRITE(gridman_unit,*)
"Starting GRIDMAN_INDLIST_ALLOCATE"
51 IF(n.LT.1.OR.l.LT.1.OR.n.GT.l)
THEN
53 WRITE(gridman_unit,*)
"ERROR in GRIDMAN_INDLIST_ALLOCATE: ",
54 w
"incorrect array size"
55 WRITE(gridman_unit,*)
" N, L ",n,l
61 WRITE(gridman_unit,*)
"GRIDMAN_INDLIST_ALLOCATE terminated"
68 ALLOCATE(indlist%IFIRST(n),stat=st)
71 WRITE(gridman_unit,*)
"ERROR in GRIDMAN_INDLIST_ALLOCATE: ",
72 w
"cannot allocate array IFIRST"
73 WRITE(gridman_unit,*)
" N ",n
77 ALLOCATE(indlist%ILAST(n),stat=st)
80 WRITE(gridman_unit,*)
"ERROR in GRIDMAN_INDLIST_ALLOCATE: ",
81 w
"cannot allocate array ILAST"
82 WRITE(gridman_unit,*)
" N ",n
86 ALLOCATE(indlist%IND(l),stat=st)
89 WRITE(gridman_unit,*)
"ERROR in GRIDMAN_INDLIST_ALLOCATE: ",
90 w
"cannot allocate array IND"
91 WRITE(gridman_unit,*)
" L ",l
97 w
WRITE(gridman_unit,*)
"GRIDMAN_INDLIST_ALLOCATE finished"
111 INTEGER,
INTENT(OUT) :: IERR
116 w
WRITE(
gridman_unit,*)
"Starting GRIDMAN_INDLIST_DEALLOCATE"
120 IF(
ALLOCATED(indlist%IND))
THEN
121 DEALLOCATE(indlist%IND,stat=st)
125 w
"WARNING from GRIDMAN_INDLIST_DEALLOCATE: ",
126 w
"can not deallocate IND"
130 IF(
ALLOCATED(indlist%IFIRST))
THEN
131 DEALLOCATE(indlist%IFIRST,stat=st)
135 w
"WARNING from GRIDMAN_INDLIST_DEALLOCATE: ",
136 w
"can not deallocate IEDGESS"
140 IF(
ALLOCATED(indlist%ILAST))
THEN
141 DEALLOCATE(indlist%ILAST,stat=st)
145 w
"WARNING from GRIDMAN_INDLIST_DEALLOCATE: ",
146 w
"can not deallocate ILAST"
154 w
WRITE(
gridman_unit,*)
"GRIDMAN_CELLS_DEALLOCATE finished"
subroutine gridman_indlist_allocate(INDLIST, N, L, IERR)
Allocate list of elements.
integer, save, public gridman_unit
Index of the standard output unit.
subroutine gridman_indlist_deallocate(INDLIST, IERR)
Deallocate list of indices.
logical, save, public gridman_dbg
Switch for debugging mode.
Data-type which describes lists of elements with variable number of indices for each element...
Definition of data types, global constants and variables.
integer, parameter, public gridman_sp
Kind parameter for integer numbers.