f/test33.f
C* This file is part of MED.
C*
C* COPYRIGHT (C) 1999 - 2020 EDF R&D, CEA/DEN
C* MED is free software: you can redistribute it and/or modify
C* it under the terms of the GNU Lesser General Public License as published by
C* the Free Software Foundation, either version 3 of the License, or
C* (at your option) any later version.
C*
C* MED is distributed in the hope that it will be useful,
C* but WITHOUT ANY WARRANTY; without even the implied warranty of
C* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
C* GNU 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 MED. If not, see <http://www.gnu.org/licenses/>.
C*
C ******************************************************************************
C * - Nom du fichier : test33.f
C *
C * - Description : lecture d'une numerotation globale inexistante dans un maillage MED
C *
C ******************************************************************************
program test33
C
implicit none
include 'med.hf'
C
C
integer*8 fid
integer cret
character*64 maa
character*200 desc
integer nmaa,mdim,type,narr,chgt,tsf
integer numglb(100)
C ** Ouverture du fichier test31.med **
call mfiope(fid,'test31.med',med_acc_rdonly, cret)
print '(I1)',cret
if (cret .ne. 0 ) then
print *,'Erreur ouverture du fichier test31.med'
call efexit(-1)
endif
C ** lecture des infos pour le premier maillage
call mmhnme(fid,'maa1',med_no_dt,med_no_it,
& med_descending_edge,med_seg2,
& med_connectivity,med_descending,
& chgt,tsf,narr,cret)
if (cret .ne. 0 ) then
print *,'Erreur acces au nombre d''arretes',
& ' du premier maillage'
call efexit(-1)
endif
print '(A,I1,A,A4,A,I4)','maillage '
& ,0,' de nom ','maa1',
& ' comportant le nombre d''arretes ',narr
C ** lecture de la numerotation globale liée aux arretes
call mmhgnr(fid,'maa1',med_no_dt,med_no_it,med_descending_edge,
& med_seg2,numglb,cret)
if (cret .ge. 0 ) then
print '(A)','Erreur lecture numerotation globale ARRETE'
print '(A)','cette numerotation devait etre inexistante '
call efexit(-1)
endif
print *,éé"Ce test doit gnrer une erreur."
C ** Fermeture du fichier **
call mficlo(fid,cret)
print '(I1)',cret
if (cret .ne. 0 ) then
print *,'Erreur fermeture du fichier'
call efexit(-1)
endif
C
end
mfiope
subroutine mfiope(fid, name, access, cret)
Definition medfile.f:42
mficlo
subroutine mficlo(fid, cret)
Definition medfile.f:82
mmhgnr
subroutine mmhgnr(fid, name, numdt, numit, entype, geotype, num, cret)
Definition medmesh.f:997
mmhnme
subroutine mmhnme(fid, name, numdt, numit, entype, geotype, datype, cmode, chgt, tsf, n, cret)
Definition medmesh.f:551
test33
program test33
Definition test33.f:25