MED fichier: Fichier source de Unittest_MEDlocalization_1.f

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 - 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 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*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 /
45 C
46 C
47 C 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
54 C
55 C
56 C 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
64 C
65 C
66 C 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
73 C
74 C
75 C
76 end
77
mficlo
subroutine mficlo(fid, cret)
Fermeture d'un fichier MED.
Definition: medfile.f:82
mlclow
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...
Definition: medlocalization.f:22
mfiope
subroutine mfiope(fid, name, access, cret)
Ouverture d'un fichier MED.
Definition: medfile.f:42
medloc1
program medloc1
Definition: Unittest_MEDlocalization_1.f:22