1 |
francois |
449 |
#!/bin/bash |
2 |
|
|
|
3 |
|
|
function executer |
4 |
|
|
{ |
5 |
|
|
$* |
6 |
francois |
452 |
VAR=$? |
7 |
|
|
if (( $VAR )) ; then |
8 |
francois |
449 |
STATUSTXT="ERREUR dans les tests"; |
9 |
francois |
452 |
STAT=$VAR; |
10 |
francois |
449 |
fi |
11 |
|
|
} |
12 |
francois |
269 |
CHEMINCOMPILE=../../exe/app |
13 |
francois |
449 |
STATUSTXT="Test sans ERREUR" |
14 |
francois |
269 |
echo "*****************************************" |
15 |
|
|
echo " OPTIMISATION DE TOPOLOGIE" |
16 |
|
|
echo "*****************************************" |
17 |
francois |
449 |
STAT=$? |
18 |
francois |
706 |
executer $CHEMINCOMPILE/topo_optis/topo_optis.exe -optimise -design bielle.magic -nondesign bielle_bloc.magic -out bielle_resu.magic -param params.txt -paramaster aster_general.txt |
19 |
|
|
executer $CHEMINCOMPILE/topo_optis/post_optis.exe -creepeau -in bielle_resu.magic -out bielle_resu_peau.magic -param postparam.txt |
20 |
nana |
563 |
|
21 |
|
|
echo "**************************************************" |
22 |
|
|
echo " OPTIMISATION ADAPTATIVE DE TOPOLOGIE" |
23 |
|
|
echo "**************************************************" |
24 |
|
|
# SIMP adaptative |
25 |
francois |
706 |
executer $CHEMINCOMPILE/topo_optis/topo_optis.exe -adapte -design bielle.magic -nondesign bielle_bloc.magic -out bielle_resu_adapte.magic -param params_adap.txt -paramaster aster_general.txt |
26 |
francois |
568 |
#executer $CHEMINCOMPILE/topo_optis/post_optis.exe -creepeau -in bielle_resu_adapte.magic -out bielle_resu_adapte_peau.magic -param postparam.txt |
27 |
nana |
813 |
|
28 |
|
|
echo "***************************************************************" |
29 |
|
|
echo " SQUELETTISATION DE RESULTAT D'OPTIMISATION" |
30 |
|
|
echo "***************************************************************" |
31 |
|
|
# Squelettisation de SIMP |
32 |
nana |
815 |
executer $CHEMINCOMPILE/topo_optis/topo_optis.exe -optimise -design bielle.magic -nondesign bielle_bloc.magic -out bielle_resu.magic -param params.txt -paramaster aster_general.txt |
33 |
|
|
executer $CHEMINCOMPILE/topo_optis/post_optis.exe -creepeau -in bielle_resu.magic -out bielle_lisse.magic -param postparam.txt |
34 |
francois |
847 |
executer $CHEMINCOMPILE/topo_optis/skeleton.exe -construire_squelette -in bielle_resu.magic -out bielle -inpoints bielle_points.txt -incorres bielle_corres.txt -infilelisse bielle_lisse.magic -param_lissage postparam.txt |
35 |
francois |
817 |
executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -calculaster -in bielle_squelette3.magic -elastique -param aster_general.txt |
36 |
francois |
449 |
echo "**********************" |
37 |
|
|
echo $STATUSTXT |
38 |
|
|
echo "**********************" |
39 |
|
|
exit $STAT |
40 |
francois |
269 |
|
41 |
|
|
|