833 INTEGER, POINTER :: A1(:)
834 INTEGER, POINTER, OPTIONAL :: A2(:), A3(:), A4(:), A5(:),
835 & A6(:), A7(:)
836 INTEGER(8), OPTIONAL :: MEMCNT
837 INTEGER(8) :: IMEMCNT
838 imemcnt = 0
839 IF(associated(a1)) THEN
840 imemcnt = imemcnt+int(size(a1),8)*isize
841 DEALLOCATE(a1)
842 NULLIFY(a1)
843 END IF
844 IF(present(a2)) THEN
845 IF(associated(a2)) THEN
846 imemcnt = imemcnt+int(size(a2),8)*isize
847 DEALLOCATE(a2)
848 NULLIFY(a2)
849 END IF
850 END IF
851 IF(present(a3)) THEN
852 IF(associated(a3)) THEN
853 imemcnt = imemcnt+int(size(a3),8)*isize
854 DEALLOCATE(a3)
855 NULLIFY(a3)
856 END IF
857 END IF
858 IF(present(a4)) THEN
859 IF(associated(a4)) THEN
860 imemcnt = imemcnt+int(size(a4),8)*isize
861 DEALLOCATE(a4)
862 NULLIFY(a4)
863 END IF
864 END IF
865 IF(present(a5)) THEN
866 IF(associated(a5)) THEN
867 imemcnt = imemcnt+int(size(a5),8)*isize
868 DEALLOCATE(a5)
869 NULLIFY(a5)
870 END IF
871 END IF
872 IF(present(a6)) THEN
873 IF(associated(a6)) THEN
874 imemcnt = imemcnt+int(size(a6),8)*isize
875 DEALLOCATE(a6)
876 NULLIFY(a6)
877 END IF
878 END IF
879 IF(present(a7)) THEN
880 IF(associated(a7)) THEN
881 imemcnt = imemcnt+int(size(a7),8)*isize
882 DEALLOCATE(a7)
883 NULLIFY(a7)
884 END IF
885 END IF
886 IF(present(memcnt)) memcnt = memcnt-imemcnt
887 RETURN