]> SALOME platform Git repositories - modules/med.git/blob - src/MEDMEM/DataTest/constituedump.sh
Salome HOME
correct small problem from the version in the MedFileV2_2 branch.
[modules/med.git] / src / MEDMEM / DataTest / constituedump.sh
1 #!/bin/sh
2 #
3 #  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5
6 #  This library is free software; you can redistribute it and/or 
7 #  modify it under the terms of the GNU Lesser General Public 
8 #  License as published by the Free Software Foundation; either 
9 #  version 2.1 of the License. 
10
11 #  This library is distributed in the hope that it will be useful, 
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 #  Lesser General Public License for more details. 
15
16 #  You should have received a copy of the GNU Lesser General Public 
17 #  License along with this library; if not, write to the Free Software 
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19
20 #  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 #
22 #
23 #
24 #  File   : constituedump.sh
25 #  Module : MED
26
27 cd Data
28 for i in `ls *.med`
29 do
30         echo "constitution de $i : 1er maillage"
31         mdump $i > ${i}.coor.dump << EOF
32 1
33 1
34 1
35 EOF
36 cp ${i}.coor.dump ${i}.ent.dump
37 done
38
39 for i in `echo zzzz121b.med`
40 do
41         echo "constitution de $i : 2nd maillage"
42         mdump $i > ${i}.2.coor.dump << EOF
43 1
44 1
45 2
46 EOF
47 cp ${i}.2.coor.dump ${i}.2.ent.dump
48 done
49
50 mv *.dump ../Ref
51 cd ../Ref
52
53 for j in `ls *.ent.dump`
54 do
55 echo "Traitement de $j  : "
56 vi ${j} << EOF
57 :/INFORMATIONS GENERALES
58 :-2
59 :1,.d
60 :/Nombre de familles
61 :.,\$d
62 :wq
63 EOF
64 done
65
66 for j in `ls *.coor.dump`
67 do
68 echo "Traitement de $j  : "
69 vi ${j} << EOF
70 :/NOEUDS DU MAILLAGE
71 :-2
72 :1,.d
73 :/Coordonnees des noeuds
74 : +2
75 :.,\$d
76 :wq
77 EOF
78 done
79
80