16 logical :: used = .false.
17 type(hecmwST_matrix),
pointer :: mat
18 type(hecmwST_local_mesh),
pointer :: mesh
21 integer(kind=kint),
parameter :: MAX_MM = 8
23 type(mat_mesh),
save :: mm(MAX_MM)
31 integer(kind=kint),
intent(out) :: id
32 integer(kind=kint) :: i
35 if (.not. mm(i)%used)
then
41 stop
'ERROR: hecmw_mat_id_set: too many matrices set'
44 mm(id)%mesh => hecmesh
50 integer(kind=kint),
intent(in) :: id
53 if (id <= 0 .or. max_mm < id)
then
54 stop
'ERROR: hecmw_mat_id_get: id out of range'
56 if (.not. mm(id)%used)
then
57 stop
'ERROR: hecmw_mat_id_get: invalid id'
60 hecmesh => mm(id)%mesh
65 integer(kind=kint),
intent(in) :: id
66 if (.not. mm(id)%used)
then
67 stop
'ERROR: hecmw_mat_id_clear: invalid id'
subroutine, public hecmw_mat_id_set(hecMAT, hecMESH, id)
subroutine, public hecmw_mat_id_get(id, hecMAT, hecMESH)
subroutine, public hecmw_mat_id_clear(id)