MED fichier
Unittest_MEDlibrary_1.f
Aller à la documentation de ce fichier.
1C* This file is part of MED.
2C*
3C* COPYRIGHT (C) 1999 - 2020 EDF R&D, CEA/DEN
4C* MED is free software: you can redistribute it and/or modify
5C* it under the terms of the GNU Lesser General Public License as published by
6C* the Free Software Foundation, either version 3 of the License, or
7C* (at your option) any later version.
8C*
9C* MED is distributed in the hope that it will be useful,
10C* but WITHOUT ANY WARRANTY; without even the implied warranty of
11C* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12C* GNU Lesser General Public License for more details.
13C*
14C* You should have received a copy of the GNU Lesser General Public License
15C* along with MED. If not, see <http://www.gnu.org/licenses/>.
16C*
17
18C******************************************************************************
19C * Tests for library module
20C *
21C *****************************************************************************
22 program medlib
23C
24 implicit none
25 include 'med.hf'
26C
27C
28 integer cret
29 integer major,minor,rel
30 character*20 version
31C
32C
33C 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
41C
42C
43C 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
51C
52C
53C 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
61C
62C
63C 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
71C
72C
73C 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
program medlib
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
subroutine mlbnuv(major, minor, rel, cret)
Renvoie les 3 numéros de version de la librairie MED.
Definition medflibrary.f:35
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
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
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