MED fichier
Unittest_MEDlibrary_1.f
Aller à la documentation de ce fichier.
1 C* This file is part of MED.
2 C*
3 C* COPYRIGHT (C) 1999 - 2021 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 library module
20 C *
21 C *****************************************************************************
22  program medlib
23 C
24  implicit none
25  include 'med.hf'
26 C
27 C
28  integer cret
29  integer major,minor,rel
30  character*20 version
31 C
32 C
33 C get library version numbers
34  call mlbnuv(major,minor,rel,cret)
35  print *,cret
36  print *,major,minor,rel
37  if (cret .ne. 0 ) then
38  print *,'ERROR : get library version numbers'
39  call efexit(-1)
40  endif
41 C
42 C
43 C get library version numbers in a string
44  call mlbstv(version,cret)
45  print *,cret
46  print *,version
47  if (cret .ne. 0 ) then
48  print *,'ERROR : get library version numbers in a string'
49  call efexit(-1)
50  endif
51 C
52 C
53 C get Hdf library version numbers
54  call mlbhnv(major,minor,rel,cret)
55  print *,cret
56  print *,major,minor,rel
57  if (cret .ne. 0 ) then
58  print *,'ERROR : get hdf-5 library version numbers'
59  call efexit(-1)
60  endif
61 C
62 C
63 C get Hdf library version numbers in a string
64  call mlbhsv(version,cret)
65  print *,cret
66  print *,version
67  if (cret .ne. 0 ) then
68  print *,'ERROR : get hdf-5 library version numbers in a string'
69  call efexit(-1)
70  endif
71 C
72 C
73 C flush all data and clean memory
74  call mlbclo(cret)
75  print *,cret
76  if (cret .ne. 0 ) then
77  print *,'ERROR : MED library close'
78  call efexit(-1)
79  endif
80 
81  end
mlbnuv
subroutine mlbnuv(major, minor, rel, cret)
Renvoie les 3 numéros de version de la librairie MED.
Definition: medflibrary.f:35
mlbhsv
subroutine mlbhsv(version, cret)
Renvoie le numéro de version de la librairie HDF utilisée par la bibliothèque MED dans une chaîne de ...
Definition: medflibrary.f:84
mlbclo
subroutine mlbclo(cret)
Cette routine force l'écriture des données sur disque, nettoie la mémoire et ferme tous les fichiers ...
Definition: medflibrary.f:19
medlib
program medlib
Definition: Unittest_MEDlibrary_1.f:22
mlbstv
subroutine mlbstv(version, cret)
Renvoie le numéro de version de la librairie MED dans une chaîne de caractères.
Definition: medflibrary.f:51
mlbhnv
subroutine mlbhnv(major, minor, rel, cret)
Renvoie les 3 numéros de version de la librairie HDF5 utilisée par MED.
Definition: medflibrary.f:68