]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
Pour souci avec salome5
authorPascale Noyret <pascale.noyret@edf.fr>
Mon, 29 Nov 2010 11:02:48 +0000 (11:02 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Mon, 29 Nov 2010 11:02:48 +0000 (11:02 +0000)
Aster/Cata/cataSTA9/Numeric.py [new file with mode: 0644]
MAP/Templates/s_polymers_st_1/cata_s_polymers_st_1.xml
MAP/Templates/s_polymers_st_1/s_polymers_st_1_YACS_nodes.py
MAP/cata_s_polymers_st_1.xml
MAP/prefs_MAP.py
MAP/s_polymers_st_1_V1.py

diff --git a/Aster/Cata/cataSTA9/Numeric.py b/Aster/Cata/cataSTA9/Numeric.py
new file mode 100644 (file)
index 0000000..185019e
--- /dev/null
@@ -0,0 +1 @@
+from numpy.oldnumeric import *
index 9646652130a1896053b0138c28a63c06095ce391..07b47c21278ce125d5947ef1f6ceec502e435c24 100644 (file)
       <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 *
@@ -48,6 +52,10 @@ result_rve = file_result_rve
    <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
@@ -56,6 +64,10 @@ file_result_rve=study_path+"rve.txt"
 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"/>
@@ -74,7 +86,11 @@ lambda_M=1.
       <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 *
 
index abd910b4db516c09c5f3ce67c8734ce56bed17b6..bf027ca50b987ee3fc7a0b1a1e2f39c28069dfe2 100644 (file)
@@ -26,7 +26,7 @@ def component_pygmee_v2(rve_size, phase_number, sieve_curve_in, sieve_curve_out,
     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)
 
@@ -52,7 +52,7 @@ def component_fdvgrid(lambda_I, lambda_M, rve_size, file_inclusions, finesse):
         
     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"
index ec4ec1ff124208a9d787c0bf884f1845e538b9db..7318e687a92fbc53f80454adc7b5e2bf5112ac6e 100644 (file)
@@ -38,12 +38,12 @@ parameter.add_parameter(composant, 'study_name', study_name)
 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)
 
index fab9bebf73f5c602d20650960896cde3accec3cc..7bfab5cc021758f3bbc0be4cd510b1cad42f2246 100644 (file)
@@ -31,13 +31,13 @@ initialdir=REPINI
 \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
index 0b4e9e51c686084e63b37e003e30a4b5d02bd494..7cd5c43610e52b8af47789bc95f7451a44d2f136 100644 (file)
@@ -1,14 +1,27 @@
-## -*- 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
@@ -36,8 +49,8 @@ JdC = JDC_CATA ( code = 'MAP',
 
 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,