f/test33.f

00001 C*  This file is part of MED.
00002 C*
00003 C*  COPYRIGHT (C) 1999 - 2015  EDF R&D, CEA/DEN
00004 C*  MED is free software: you can redistribute it and/or modify
00005 C*  it under the terms of the GNU Lesser General Public License as published by
00006 C*  the Free Software Foundation, either version 3 of the License, or
00007 C*  (at your option) any later version.
00008 C*
00009 C*  MED is distributed in the hope that it will be useful,
00010 C*  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 C*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 C*  GNU Lesser General Public License for more details.
00013 C*
00014 C*  You should have received a copy of the GNU Lesser General Public License
00015 C*  along with MED.  If not, see <http://www.gnu.org/licenses/>.
00016 C*
00017 
00018 
00019 C ******************************************************************************
00020 C * - Nom du fichier : test33.f
00021 C *
00022 C * - Description : lecture d'une numerotation globale inexistante dans un maillage MED
00023 C *
00024 C ******************************************************************************
00025         program test33
00026 
00027 C     
00028         implicit none
00029         include 'med.hf'
00030 C
00031 C
00032         integer cret,fid
00033         character*64 maa 
00034         character*200 desc
00035         integer nmaa,mdim,type,narr,chgt,tsf
00036         integer numglb(100)
00037 
00038 
00039 
00040 
00041 C  ** Ouverture du fichier test31.med **
00042         call mfiope(fid,'test31.med',MED_ACC_RDONLY, cret)
00043         print '(I1)',cret
00044         if (cret .ne. 0 ) then
00045            print *,'Erreur ouverture du fichier test31.med'
00046            call efexit(-1)
00047         endif      
00048 
00049 
00050 C ** lecture des infos pour le premier maillage
00051         call mmhnme(fid,'maa1',MED_NO_DT,MED_NO_IT,
00052      &              MED_DESCENDING_EDGE,MED_SEG2,
00053      &              MED_CONNECTIVITY,MED_DESCENDING,
00054      &              chgt,tsf,narr,cret)   
00055         if (cret .ne. 0 ) then
00056            print *,'Erreur acces au nombre d''arretes',
00057      &             ' du premier maillage'
00058            call efexit(-1)
00059         endif      
00060 
00061 
00062          print '(A,I1,A,A4,A,I1,A,I4)','maillage '
00063      &        ,0,' de nom ','maa1',' et de dimension ',mdim,
00064      &        ' comportant le nombre d''arretes ',narr
00065 
00066 
00067 C ** lecture de la numerotation globale liée aux arretes 
00068          call  mmhgnr(fid,'maa1',MED_NO_DT,MED_NO_IT,MED_DESCENDING_EDGE,
00069      &                MED_SEG2,numglb,cret)
00070 
00071         if (cret .ge. 0 ) then
00072            print '(A)','Erreur lecture numerotation globale ARRETE'
00073            print '(A)','cette numerotation devait etre inexistante '
00074            call efexit(-1)
00075         endif      
00076         print *,"Ce test doit générer une erreur."
00077 
00078 C ** Fermeture du fichier                                **
00079         call mficlo(fid,cret)
00080         print '(I1)',cret
00081         if (cret .ne. 0 ) then
00082            print *,'Erreur fermeture du fichier'
00083            call efexit(-1)
00084         endif      
00085 C     
00086         end

Généré le Thu Oct 8 14:26:16 2015 pour MED fichier par  doxygen 1.6.1