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