MED fichier
Unittest_MEDlocalization_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 localization module
20 C *
21 C *****************************************************************************
22  program medloc1
23 C
24  implicit none
25  include 'med.hf'
26 C
27 C
28  integer cret
29  integer fid
30  character*64 fname,lname,giname,isname
31  parameter(fname = "Unittest_MEDlocalization_1.med")
32  parameter(lname = "Localization name")
33  parameter(giname=med_no_interpolation)
34  parameter(isname=med_no_mesh_support)
35  integer gtype,sdim,nip
36  parameter(gtype=med_tria3)
37  parameter(sdim=2)
38  parameter(nip=3)
39  real*8 ecoo(6), ipcoo(6), wght(3)
40  data ecoo / 0.0, 0.0, 1.0, 0.0, 0.0,1.0 /
41  data ipcoo / 0.166666, 0.166666, 0.66666, 0.166666,
42  & 0.166666, 0.666666 /
43  data wght / 0.166666, 0.166666, 0.166666 /
44 C
45 C
46 C file creation
47  call mfiope(fid,fname,med_acc_creat,cret)
48  print *,'Open file',cret
49  if (cret .ne. 0 ) then
50  print *,'ERROR : file creation'
51  call efexit(-1)
52  endif
53 C
54 C
55 C localization creation
56  call mlclow(fid,lname,gtype,sdim,ecoo,med_full_interlace,
57  & nip,ipcoo, wght, giname, isname, cret)
58  print *,'localization creation',cret
59  if (cret .ne. 0 ) then
60  print *,'ERROR : localization creation'
61  call efexit(-1)
62  endif
63 C
64 C
65 C close file
66  call mficlo(fid,cret)
67  print *,'Close file',cret
68  if (cret .ne. 0 ) then
69  print *,'ERROR : close file'
70  call efexit(-1)
71  endif
72 C
73 C
74 C
75  end
76 
subroutine mficlo(fid, cret)
Fermeture d'un fichier MED.
Definition: medfile.f:80
subroutine mlclow(fid, lname, gtype, sdim, ecoo, swm, nip, ipcoo, wght, giname, isname, cret)
Cette routine permet l'écriture d'une localisation localizationname de points d'intégration dans/auto...
program medloc1
subroutine mfiope(fid, name, access, cret)
Ouverture d'un fichier MED.
Definition: medfile.f:41