From 8b539cbe20df243000b6f9b7e8912b97dad2136e Mon Sep 17 00:00:00 2001 From: vbd Date: Tue, 15 Sep 2009 10:19:02 +0000 Subject: [PATCH] creation of a renumbering tool that : - takes as input a MED file (with only one cell type) - as output creates another file with the same topology, but with renumbered cells so that the mesh is more suitable for numerical computation. The renumbering can be computed with reverse cuthill mckee algorithm (boost) or with nested dissection (metis) --- resources/Test2D.med | Bin 0 -> 30380 bytes resources/Test2Dpoly.med | Bin 0 -> 22084 bytes resources/Test3D.med | Bin 0 -> 27300 bytes resources/Test3Dpoly.med | Bin 0 -> 16680 bytes src/RENUMBER/testRenumbering.py | 4 ++-- 5 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 resources/Test2D.med create mode 100644 resources/Test2Dpoly.med create mode 100644 resources/Test3D.med create mode 100644 resources/Test3Dpoly.med diff --git a/resources/Test2D.med b/resources/Test2D.med new file mode 100644 index 0000000000000000000000000000000000000000..8f651af39bb6a5866b3029db395f7f4caaa1cd7e GIT binary patch literal 30380 zcmeHQPi$007@sW#wotTSH5Ge!XeAYqv}MJDBy{O+yCvP-(rvXM+8U|Bq(TjisfI%n zJ!ry#gC>S};K0EcFkJB5gNK@M@W89?6w&yH=ow<&~pt*TWGYLki3$72pRJ`ctbYhcD0WvMCta)#rX zbaKFa)#C5%x3!}a1TzW9spDw6$t}vQSCRKMPsqSkg6!)hvZy-7}m`hXZM-M3Aq{*XQncv1Ng|KQPa z$ReF|uAI&_782Hv&bI_~-k^1kFtMF#I!k2XvyjWDVtSVJbjtmADH(c3NWDX}nQ4=b zdOQ+@=j$!RbA~ChYkAxY&pGZ#T~>c0$;$Zjj}5eIirXu-&yHU_H`*>^BYZwg(UZxH zA(0d6=ELIWLD(E8eahhGi-hrl=V|6cyAO*_MCYDPz^z(dmmH!!$%1b_4A=SC^TZqW z$Z|Sg3!QHboe%fxb%Y5uOqtMp7&CfpWax)!k*jfRht1KrdQwf z8pUk#go$G{RBOI@oNtI;p-?E2>&uypQgZSrvE>HS{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|<)E?dBJ`z#3c}a01es&9Oev+Tl5Dw#3?`rddNWh0{npJ1Ne|}4?fW0 zd5{Tulpzc856Ff*;8BJg;2;b2cplmSUfcuklh=UPfY*T6fY*T6z{6{xSNmPvhr0XS zMe!|x$NK-M-&FNE{o3#LTOYS&|G!@Jp|OHI+3t19r)qSGNlCGSQi&N_wrdISv4XXW z6}W!CS|vrhY#SS}7wo^?^EnT8&I0>;BzI0IR=FPdxH-X?i%c*eSN4HNOhE0q^kH(N z;LjY8_)0fQ_%~lpn-@cJL&k@;bqwQl)pX=hTy;@7OovuFq6MX>ROMMLb+S*MYfvipIMIUivX3*;J zJ|q4Dog(gnm=t1Ih)W^1wTJRv%D`dnL!1UN8^mV7gF4_a=b;YwhzCI?VmZKr4lyKs zj;;%c8G#498he6#@IVG+;aP|kffjs_1s>2t9%vyO{QwTMkb(E*VUm6ao2~QY4tbER isa)g1*DXE=`ndg%@_Xnt;5Fbi;5Fbi;59Hf8u%aLtXK>H literal 0 HcmV?d00001 diff --git a/resources/Test3D.med b/resources/Test3D.med new file mode 100644 index 0000000000000000000000000000000000000000..48eccd7a612e3eb3ea2e49582796a6d3544933a0 GIT binary patch literal 27300 zcmeI4&u^4P7{_PJ0tJe;xGI7_UZfys(bATmYGk!rTHJ0+3kDPg4J6gzj|2{tcrcNJ zCLTCwLO5~g!Gk7T@Z^C5hnjfs570=$#RCTp9=PH2nVE;~PWN4^Y+IJjG|xWoJo7xy z%seyiyffeTg>U+M`&KSrv)quHvnFd=%_5s|Kev6F_^2{ZuGK4MT#-5LFOK+pe<43? zFGZfn#c3~BHc;vt8a=wVP%4b%i-l2BD2*N+%;ybmuBp-k$PbJZ3PyUVu~kl2dltJ6 zH&^NRKWnaEt|Go8x^!}Jb4YD%QrsebTkohZ~U+RiY`p|J~qV-3qP)pXGzW|X0tk>0@*AyS*%59GtSZ42c`=Q!b|@rTN99?4^i+>N=3V=l4K zbpMR`l8P~Jl`$usT;W=J#j!iTqotu<=E-W2Bz~4N&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