5 #include <petsc/finclude/petsc.h>
26 logical :: allocated = .false.
27 integer(kind=intType),
dimension(:),
allocatable :: famlist
29 integer(Kind=intType) :: sps
30 integer(kind=intType) :: nnodes
34 integer(kind=intType),
pointer,
dimension(:) :: famlist
48 character(len=maxCGNSNameLen),
dimension(:),
allocatable ::
famnames
52 integer(kind=intType),
dimension(:),
allocatable ::
fullfamlist
56 real(kind=realtype),
dimension(:, :),
allocatable,
target ::
zerocellval
57 real(kind=realtype),
dimension(:, :),
allocatable,
target ::
onecellval
58 real(kind=realtype),
dimension(:, :),
allocatable,
target ::
zeronodeval
66 integer(kind=inttype),
intent(out) :: nfam
77 character(len=maxCGNSNameLen),
intent(out) :: fam
78 integer(kind=intType),
intent(in) :: i
90 integer(kind=intType) :: ierr
91 if (exch%allocated)
then
93 call vecdestroy(exch%nodeValLocal, ierr)
94 call vecdestroy(exch%nodeValGlobal, ierr)
95 call vecdestroy(exch%sumGlobal, ierr)
96 call vecscatterdestroy(exch%scatter, ierr)
100 exch%allocated = .false.
type(bcgrouptype), dimension(nfamexchange) bcfamgroups
subroutine destroyfamilyexchange(exch)
character(len=maxcgnsnamelen), dimension(:), allocatable famnames
real(kind=realtype), dimension(:, :), allocatable, target zeronodeval
real(kind=realtype), dimension(:, :), allocatable, target onecellval
subroutine getfam(i, fam)
real(kind=realtype), dimension(:, :), allocatable, target zerocellval
integer(kind=inttype), dimension(:), allocatable fullfamlist
type(familyexchange), dimension(:, :), allocatable, target bcfamexchange