--- /dev/null
+from numpy.oldnumeric import *
<script><code><![CDATA[import sys
import os
+<<<<<<< cata_s_polymers_st_1.xml
+sys.path.append(os.path.join('/local/noyret/Install_Eficas/EficasV1/MAP/Templates/s_polymers_st_1'))
+=======
sys.path.append(os.path.join(os.getenv('EFICAS_ROOT'),'MAP/Templates/s_polymers_st_1'))
+>>>>>>> 1.1.2.5
print sys.path
from s_polymers_st_1_YACS_nodes import *
<inline name="init">
<script><code><![CDATA[phase_number=1
rve_size=50.0
+<<<<<<< cata_s_polymers_st_1.xml
+study_path="/local/noyret/MAP/studies/demonstrateur_s_polymers_st_1/"
+=======
+>>>>>>> 1.1.2.5
sieve_curve_in=study_path+"inclusion_size_distribution.txt"
sieve_curve_out=study_path+"pygmee_v2_test_YACS.sieve_out"
repulsion_distance=0.1
finesse=10
lambda_I=100.
lambda_M=1.
+<<<<<<< cata_s_polymers_st_1.xml
+benhur_template="/local/noyret/EficasV1/MAP/templates/s_polymers_st_1/benhur_template.txt"
+=======
+>>>>>>> 1.1.2.5
]]></code></script>
<inport name="study_name" type="string"/>
<inport name="study_path" type="string"/>
<script><code><![CDATA[import sys
import os
+<<<<<<< cata_s_polymers_st_1.xml
+sys.path.append(os.path.join('/local/noyret/Install_Eficas/EficasV1/MAP/Templates/s_polymers_st_1'))
+=======
sys.path.append(os.path.join(os.getenv('EFICAS_ROOT'),'MAP/Templates/s_polymers_st_1'))
+>>>>>>> 1.1.2.5
from s_polymers_st_1_YACS_nodes import *
commande=parameter.write_for_shell(pygmee_v2_input)
os.system(commande)
- commande= "cd /local00/bin/MAP/components/pygmee_v2/src;"
+ commande= "cd /local/noyret/MAP/components/pygmee_v2/src;"
commande+= "python pygmee_v2.py -i "+pygmee_v2_input+";\n"
os.system(commande)
if (finesse < 32): finesse=32
- fdvgrid_path="/local00/bin/MAP/components/fdvgrid/bin"
+ fdvgrid_path="/local/noyret/MAP/components/fdvgrid/bin"
commande= "cd "+fdvgrid_path+";\n"
commande+= "echo "+ str(rve_size)+" > "+"rve.input"+";\n"
commande+= "cp " + file_inclusions+" "+"inclusions.input"+";\n"
parameter.add_parameter(composant, 'file_result_inclusions', file_result_inclusions)
parameter.add_parameter(composant, 'file_result_rve', file_result_rve)
-pygmee_v2_input = "/local00/bin/MAP/studies/demonstrateur_s_polymers_st_1/pygmee_v2_for_YACS_20101116.input"
+pygmee_v2_input = "/local/noyret/MAP/studies/demonstrateur_s_polymers_st_1/pygmee_v2_for_YACS_20101116.input"
commande=parameter.write_for_shell(pygmee_v2_input)
os.system(commande)
-commande= "cd /local00/bin/MAP/components/pygmee_v2/src;"
+commande= "cd /local/noyret/MAP/components/pygmee_v2/src;"
commande+= "python pygmee_v2.py -i "+pygmee_v2_input+";\n"
os.system(commande)
\r
# INSTALLDIR sert à localiser l'installation d'Eficas\r
INSTALLDIR=os.path.join(REPINI,'..')\r
-#PATH_MAP="/local/noyret/MAP/"\r
-PATH_MAP="/local00/bin/MAP/"\r
+PATH_MAP="/local/noyret/MAP/"\r
+#PATH_MAP="/local00/bin/MAP/"\r
PATH_PYGMEE=PATH_MAP+"/components/pygmee_v2"\r
PATH_BENHUR=PATH_MAP+"/components/benhur"\r
PATH_FDVGRID=PATH_MAP+"components/fdvgrid/ther2d/bin"\r
-PATH_MODULE=PATH_MAP+"/modules/polymers"\r
PATH_STUDY=PATH_MAP+"/studies/demonstrateur_s_polymers_st_1"\r
+PATH_MODULE=PATH_MAP+"/module"\r
#PATH_ASTER="/local/noyret/bin/Aster10/bin"\r
PATH_ASTER="/local00/aster"\r
PATH_GMSH="/usr/bin"\r
-## -*- coding: utf-8 -*-
+#)# -*- coding: utf-8 -*-
#
## --------------------------------------------------
## debut entete
## --------------------------------------------------
#
from Accas import *
+import os
+import sys
+
from prefs_MAP import PATH_MODULE
from prefs_MAP import PATH_STUDY
from prefs_MAP import PATH_PYGMEE
+try :
+ fichUtilisateur=os.path.join(os.environ['HOME'],'.Eficas_MAP/prefs_MAP.py')
+ f=open(fichUtilisateur)
+ txt=f.read()
+ f.close()
+ exec txt in locals()
+except :
+ pass
+
+
class Tuple:
def __init__(self,ntuple):
self.ntuple=ntuple
ETUDE= PROC(nom="ETUDE",op=None,
fr="determination du nom et du repertoire de l'etude)",
- study_name=SIMP(statut = "f",fr="", typ='TXM',defaut="s_polymers_st_1_for_YACS"),
- study_path=SIMP(statut = "f",fr="", typ='TXM',defaut=PATH_STUDY),
+ study_name=SIMP(statut = "o",fr="", typ='TXM',defaut="s_polymers_st_1_for_YACS"),
+ study_path=SIMP(statut = "o",fr="", typ='TXM',defaut=PATH_STUDY),
)
METHODE= PROC(nom="METHODE",op=None,