MED fichier: Fichier source de Unittest_MEDlink_1.f

MED fichier

- Documentation MED
- Guides d'utilisation
- Guides de référence

Unittest_MEDlink_1.f
Aller à la documentation de ce fichier.
1 C* This file is part of MED.
2 C*
3 C* COPYRIGHT (C) 1999 - 2017 EDF R&D, CEA/DEN
4 C* MED is free software: you can redistribute it and/or modify
5 C* it under the terms of the GNU Lesser General Public License as published by
6 C* the Free Software Foundation, either version 3 of the License, or
7 C* (at your option) any later version.
8 C*
9 C* MED is distributed in the hope that it will be useful,
10 C* but WITHOUT ANY WARRANTY; without even the implied warranty of
11 C* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 C* GNU Lesser General Public License for more details.
13 C*
14 C* You should have received a copy of the GNU Lesser General Public License
15 C* along with MED. If not, see <http://www.gnu.org/licenses/>.
16 C*
17
18 C******************************************************************************
19 C * Tests for link module
20 C *
21 C *****************************************************************************
22 program medlink1
23 C
24 implicit none
25 include 'med.hf'
26 C
27 C
28 integer cret
29 integer fid
30 character*64 fname
31 parameter(fname = "Unittest_MEDlink_1.med")
32 character*64 mname1, mname2,lname1,lname2
33 parameter(mname1 = "mesh name")
34 parameter(lname1 = "/local/study1/filename.med")
35 parameter(mname2 = "second mesh name")
36 parameter(lname2 = "/local/study2/filename.med")
37 C
38 C
39 C file creation
40 call mfiope(fid,fname,med_acc_creat,cret)
41 print *,'Open file',cret
42 if (cret .ne. 0 ) then
43 print *,'ERROR : file creation'
44 call efexit(-1)
45 endif
46 C
47 C
48 C links creation
49 call mlnliw(fid,mname1,lname1,cret)
50 print *,'Create a link',cret
51 if (cret .ne. 0 ) then
52 print *,'ERROR : link creation'
53 call efexit(-1)
54 endif
55 c
56 call mlnliw(fid,mname2,lname2,cret)
57 print *,'Create a link',cret
58 if (cret .ne. 0 ) then
59 print *,'ERROR : link creation'
60 call efexit(-1)
61 endif
62 C
63 C
64 C close file
65 call mficlo(fid,cret)
66 print *,'Close file',cret
67 if (cret .ne. 0 ) then
68 print *,'ERROR : close file'
69 call efexit(-1)
70 endif
71 C
72 C
73 C
74 end
75
mficlo
subroutine mficlo(fid, cret)
Fermeture d'un fichier MED.
Definition: medfile.f:80
medlink1
program medlink1
Definition: Unittest_MEDlink_1.f:22
mlnliw
subroutine mlnliw(fid, mname, lname, cret)
Cette routine permet d'écrire un lien dans un fichier MED.
Definition: medlink.f:21
mfiope
subroutine mfiope(fid, name, access, cret)
Ouverture d'un fichier MED.
Definition: medfile.f:41