    C*************************************************************************
    C COPYRIGHT (C) 1999 - 2003  EDF R&D
    C THIS LIBRARY IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
    C IT UNDER THE TERMS OF THE GNU LESSER GENERAL PUBLIC LICENSE
    C AS PUBLISHED BY THE FREE SOFTWARE FOUNDATION;
    C EITHER VERSION 2.1 OF THE LICENSE, OR (AT YOUR OPTION) ANY LATER VERSION.
    C
    C THIS LIBRARY IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
    C WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
    C MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
    C LESSER GENERAL PUBLIC LICENSE FOR MORE DETAILS.
    C
    C YOU SHOULD HAVE RECEIVED A COPY OF THE GNU LESSER GENERAL PUBLIC LICENSE
    C ALONG WITH THIS LIBRARY; IF NOT, WRITE TO THE FREE SOFTWARE FOUNDATION,
    C INC., 59 TEMPLE PLACE, SUITE 330, BOSTON, MA 02111-1307 USA
    C
    C**************************************************************************

    C ******************************************************************************
    C * - Nom du fichier : test32.f
    C *
    C * - Description : lecture nominale d'une numerotation globale dans un maillage MED
    C *
    C ******************************************************************************
            program test32
    C
            implicit none
            include 'med.hf'
    C
    C
            integer cret,fid
            character*32 maa
            character*200 des
            integer nmaa, mdim ,  nnoe,type

            integer numglb(100),i

    C  ** Ouverture du fichier test31.med **
            call efouvr(fid,'test31.med',MED_LECTURE, cret)
            print '(I1)',cret
            if (cret .ne. 0 ) then
               print *,'Erreur ouverture du fichier test31.med'
               call efexit(-1)
            endif

    C ** lecture du nombre de maillage                      **

            call efnmaa(fid,nmaa,cret)
            print '(I1)',cret
            if (cret .ne. 0 ) then
               print *,'Erreur lecture du nombre de maillage'
               call efexit(-1)
            endif
            print '(A,I1)','Nombre de maillages = ',nmaa

    C ** lecture des infos pour le premier maillage

            call efmaai(fid,1,maa,mdim,type,des,cret)
            print '(I1)',cret
            if (cret .ne. 0 ) then
               print *,'Erreur acces au premier maillage'
               call efexit(-1)
            endif

            nnoe = 0
            call efnema(fid,maa,MED_COOR,MED_NOEUD,0,0,nnoe,cret)
            if (cret .ne. 0 ) then
               print *,'Erreur acces au nombre de noeud du premier maillage'
               call efexit(-1)
            endif

             print '(A,I1,A,A4,A,I1,A,I4)','maillage '
         &        ,0,' de nom ',maa,' et de dimension ',mdim,
         &        ' comportant le nombre de noeud ',nnoe

    C ** lecture de la numerotation globale

             call efgnml(fid,maa,numglb,min(nnoe,100),MED_NOEUD,0,cret)

            if (cret .ne. 0 ) then
               print *,'Erreur lecture numerotation globale '
               call efexit(-1)
            endif

    C ** Ecriture à l'ecran des numeros globaux

             do i=1,min(nnoe,100)
                print '(A,I3,A,I4)',
         &   'Numero global du noeud ',i,' : ',numglb(i)
             enddo

    C ** Fermeture du fichier                                **
            call efferm (fid,cret)
            print '(I1)',cret
            if (cret .ne. 0 ) then
               print *,'Erreur fermeture du fichier'
               call efexit(-1)
            endif
    C
            end