f/2.3.6/test29.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 : test29.f
00021 C *
00022 C * - Description : ecriture d'un joint dans un maillage MED 
00023 C *
00024 C ******************************************************************************
00025         program test29
00026 C     
00027         implicit none
00028         include 'med.hf'
00029 C
00030 C
00031         integer cret,fid, domdst
00032         character*32 maa , jnt, maadst
00033         character*200 des
00034         integer mdim ,ncor
00035         integer cor(6)
00036 
00037         parameter (maa ="maa1",maadst="maa1", domdst=2,
00038      &     mdim = 3,ncor = 3 )
00039         data cor /1,2,3,4,5,6/, jnt / "joint"/
00040         data des / "joint avec le sous-domaine 2" /
00041 
00042 
00043 
00044 C  ** Creation du fichier test29.med **
00045         call efouvr(fid,'test29.med',MED_LECTURE_ECRITURE, cret)
00046         print *,cret
00047         if (cret .ne. 0 ) then
00048            print *,'Erreur creation du fichier'
00049            call efexit(-1)
00050         endif      
00051 
00052   
00053 C  ** Creation du maillage **
00054         call efmaac(fid,maa,mdim,MED_NON_STRUCTURE,
00055      &                 'Un maillage pour test29',cret)
00056         print *,cret  
00057         if (cret .ne. 0 ) then
00058            print *,'Erreur creation du maillage'
00059            call efexit(-1)
00060         endif      
00061   
00062 C ** Creation du joint **
00063         call efjntc(fid,maa,jnt,des,domdst,maadst,cret)
00064         print *,cret  
00065         if (cret .ne. 0 ) then
00066            print *,'Erreur creation joint'
00067            call efexit(-1)
00068         endif      
00069         
00070 
00071 C ** Ecriture de la correspondance Noeud, Noeud **
00072         call efjnte(fid,maa,jnt,cor,ncor,
00073      &    MED_NOEUD,0,MED_NOEUD,0,
00074      &    cret)
00075         print *,cret  
00076         if (cret .ne. 0 ) then
00077            print *,'Erreur ecriture correspondance (Noeud,Noeud)'
00078            call efexit(-1)
00079         endif      
00080 
00081 
00082 C ** Ecriture de la correspondance Noeud, TRIA3 **
00083         call efjnte(fid,maa,jnt,cor,ncor,
00084      &    MED_NOEUD,0,MED_MAILLE,MED_TRIA3,
00085      &    cret)
00086         print *,cret  
00087         if (cret .ne. 0 ) then
00088            print *,'Erreur ecriture correspondance (Noeud,Tria3)'
00089            call efexit(-1)
00090         endif      
00091         
00092 C ** Fermeture du fichier                                **
00093         call efferm (fid,cret)
00094         print *,cret
00095         if (cret .ne. 0 ) then
00096            print *,'Erreur fermeture du fichier'
00097            call efexit(-1)
00098         endif      
00099 C     
00100         end

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