Unittest_MEDlink_1.f

Aller à la documentation de ce fichier.
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 C******************************************************************************
00019 C * Tests for link module
00020 C *
00021 C *****************************************************************************
00022       program MEDlink1
00023 C     
00024       implicit none
00025       include 'med.hf'
00026 C
00027 C     
00028       integer cret
00029       integer fid
00030       character*64 fname
00031       parameter (fname = "Unittest_MEDlink_1.med")
00032       character*64 mname1, mname2,lname1,lname2
00033       parameter(mname1 = "mesh name")
00034       parameter(lname1 = "/local/study1/filename.med")
00035       parameter(mname2 = "second mesh name")
00036       parameter(lname2 = "/local/study2/filename.med")
00037 C 
00038 C
00039 C     file creation
00040       call mfiope(fid,fname,MED_ACC_CREAT,cret)
00041       print *,'Open file',cret
00042       if (cret .ne. 0 ) then
00043          print *,'ERROR : file creation'
00044          call efexit(-1)
00045       endif 
00046 C
00047 C
00048 C     links creation
00049       call mlnliw(fid,mname1,lname1,cret)
00050       print *,'Create a link',cret
00051       if (cret .ne. 0 ) then
00052          print *,'ERROR : link creation'
00053          call efexit(-1)
00054       endif 
00055 c
00056       call mlnliw(fid,mname2,lname2,cret)
00057       print *,'Create a link',cret
00058       if (cret .ne. 0 ) then
00059          print *,'ERROR : link creation'
00060          call efexit(-1)
00061       endif 
00062 C
00063 C
00064 C     close file
00065       call mficlo(fid,cret)
00066       print *,'Close file',cret
00067       if (cret .ne. 0 ) then
00068          print *,'ERROR :  close file'
00069          call efexit(-1)
00070       endif  
00071 C
00072 C
00073 C
00074       end
00075 

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