SUBDIRS += src
if SALOME_MODULE
-SUBDIRS += resources bin
+SUBDIRS += resources bin samples
endif
if SPHINX_IS_OK
testsdasalomedir = $(testsdir)/daSalome
testsplateformedir = $(testsdir)/daComposant/Plateforme
+# Directory for installing samples files
+samplesdir = $(prefix)/share/salome/adao_samples
+samplesdasalomedir = $(samplesdir)/daSalome
+
# Directories for installing admin files
admlocaldir = $(prefix)/adm_local
admlocalunixdir = $(admlocaldir)/unix
src/daSalome/daGUI/daUtils/Makefile
src/daSalome/daGUI/daGuiImpl/Makefile
src/daSalome/daGUI/daEficasWrapper/Makefile
- src/tests/Makefile
- src/tests/daSalome/Makefile
- src/tests/daSalome/test000_Blue_AnalysisFile.py
- src/tests/daSalome/test017.comm
- src/tests/daSalome/test_aster_zzzz159a_init_parameters.py
- src/tests/daSalome/test_aster_zzzz159a_LBFGSB.comm
- src/tests/daSalome/zzzz159a.export.esclave
+ samples/Makefile
+ samples/daSalome/Makefile
+ samples/daSalome/test003_ADAO_JDC_using_scripts.comm
+ samples/daSalome/test004_ADAO_JDC_using_scripts.comm
bin/Makefile
bin/qtEficas_adao_study.py
doc/Makefile
# If false, no module index is generated.
#latex_use_modindex = True
+
+source_encoding = 'iso-8859-15'
--- /dev/null
+SUBDIRS = daSalome
+
--- /dev/null
+include $(top_srcdir)/adm_local/make_common_starter.am
+
+DATA_INST = \
+ test001_ADAO_JDC_using_strings.comm \
+ test002_ADAO_JDC_using_strings.comm \
+ test003_ADAO_JDC_using_scripts.comm \
+ test003_ADAO_scripts_for_JDC.py \
+ test004_ADAO_JDC_using_scripts.comm \
+ test004_ADAO_scripts_for_JDC.py
+
+samplesdasalome_DATA = ${DATA_INST}
+
+EXTRA_DIST = \
+ test001_ADAO_JDC_using_strings.comm \
+ test002_ADAO_JDC_using_strings.comm \
+ test003_ADAO_JDC_using_scripts.comm.in \
+ test003_ADAO_scripts_for_JDC.py \
+ test004_ADAO_JDC_using_scripts.comm.in \
+ test004_ADAO_scripts_for_JDC.py
--- /dev/null
+
+ASSIMILATION_STUDY(Study_name='Test',
+ Debug=0,
+ Algorithm='Blue',
+ Background=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='String',
+ STRING='0 0 0',),),
+ BackgroundError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
+ Observation=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='String',
+ STRING='1 1 1',),),
+ ObservationError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
+ ObservationOperator=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),);
--- /dev/null
+
+ASSIMILATION_STUDY(Study_name='Test',
+ Debug=0,
+ Algorithm='3DVAR',
+ Background=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='String',
+ STRING='0 0 0',),),
+ BackgroundError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
+ Observation=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='String',
+ STRING='1 1 1',),),
+ ObservationError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
+ ObservationOperator=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),);
--- /dev/null
+
+ASSIMILATION_STUDY(Study_name='Test',
+ Study_repertory='@prefix@/share/salome/adao_samples/daSalome',
+ Debug=0,
+ Algorithm='3DVAR',
+ Background=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
+ BackgroundError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
+ Observation=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
+ ObservationError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
+ ObservationOperator=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),);
--- /dev/null
+#-*-coding:iso-8859-1-*-
+import numpy
+#
+# Definition of the Background as a vector
+# ----------------------------------------
+Background = [0, 0, 0]
+#
+# Definition of the Observation as a vector
+# -----------------------------------------
+Observation = "1 1 1"
+#
+# Definition of the Background Error covariance as a matrix
+# ---------------------------------------------------------
+BackgroundError = numpy.array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]])
+#
+# Definition of the Observation Error covariance as a matrix
+# ----------------------------------------------------------
+ObservationError = numpy.matrix("1 0 0 ; 0 1 0 ; 0 0 1")
+#
+# Definition of the Observation Operator as a matrix
+# --------------------------------------------------
+ObservationOperator = numpy.identity(3)
--- /dev/null
+
+ASSIMILATION_STUDY(Study_name='Test',
+ Study_repertory='@prefix@/share/salome/adao_samples/daSalome',
+ Debug=0,
+ Algorithm='Blue',
+ Background=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
+ BackgroundError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
+ Observation=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
+ ObservationError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
+ ObservationOperator=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
+ UserPostAnalysis=_F(FROM='String',
+ STRING=
+"""import numpy
+Xa = ADD.get("Analysis").valueserie(-1)
+print
+print "Size of Analysis = %i"%len(Xa)
+print "Min, mean, max = %8.3f, %8.3f, %8.3f"%(min(Xa),numpy.mean(Xa),max(Xa))
+print
+""",),);
--- /dev/null
+#-*-coding:iso-8859-1-*-
+import numpy
+#
+n = 100
+#
+# Definition of the Background as a vector
+# ----------------------------------------
+Background = n * [0]
+#
+# Definition of the Observation as a vector
+# -----------------------------------------
+Observation = n * "1 "
+Observation = Observation.strip()
+#
+# Definition of the Background Error covariance as a matrix
+# ---------------------------------------------------------
+BackgroundError = numpy.identity(n)
+#
+# Definition of the Observation Error covariance as a matrix
+# ----------------------------------------------------------
+ObservationError = numpy.identity(n)
+#
+# Definition of the Observation Operator as a matrix
+# --------------------------------------------------
+ObservationOperator = numpy.identity(n)
-SUBDIRS = daComposant tests
+SUBDIRS = daComposant
if SALOME_MODULE
SUBDIRS += daSalome daEficas
+++ /dev/null
-
-ASSIMILATION_STUDY(Study_name='Test',
- Debug=0,
- Algorithm='Blue',
- Background=_F(INPUT_TYPE='Vector',
- data=_F(FROM='String',
- STRING='0 0 0',),),
- BackgroundError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
- Observation=_F(INPUT_TYPE='Vector',
- data=_F(FROM='String',
- STRING='1 1 1',),),
- ObservationError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
- ObservationOperator=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),);
+++ /dev/null
-
-ASSIMILATION_STUDY(Study_name='Test',
- Debug=0,
- Algorithm='3DVAR',
- Background=_F(INPUT_TYPE='Vector',
- data=_F(FROM='String',
- STRING='0 0 0',),),
- BackgroundError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
- Observation=_F(INPUT_TYPE='Vector',
- data=_F(FROM='String',
- STRING='1 1 1',),),
- ObservationError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
- ObservationOperator=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),);
+++ /dev/null
-
-ASSIMILATION_STUDY(Study_name='Test',
- Study_repertory='@prefix@/examples/daSalome',
- Debug=0,
- Algorithm='3DVAR',
- Background=_F(INPUT_TYPE='Vector',
- data=_F(FROM='Script',
- SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
- BackgroundError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
- Observation=_F(INPUT_TYPE='Vector',
- data=_F(FROM='Script',
- SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
- ObservationError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
- ObservationOperator=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),);
+++ /dev/null
-#-*-coding:iso-8859-1-*-
-import numpy
-#
-# Definition of the Background as a vector
-# ----------------------------------------
-Background = [0, 0, 0]
-#
-# Definition of the Observation as a vector
-# -----------------------------------------
-Observation = "1 1 1"
-#
-# Definition of the Background Error covariance as a matrix
-# ---------------------------------------------------------
-BackgroundError = numpy.array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]])
-#
-# Definition of the Observation Error covariance as a matrix
-# ----------------------------------------------------------
-ObservationError = numpy.matrix("1 0 0 ; 0 1 0 ; 0 0 1")
-#
-# Definition of the Observation Operator as a matrix
-# --------------------------------------------------
-ObservationOperator = numpy.identity(3)
+++ /dev/null
-
-ASSIMILATION_STUDY(Study_name='Test',
- Study_repertory='@prefix@/examples/daSalome',
- Debug=0,
- Algorithm='Blue',
- Background=_F(INPUT_TYPE='Vector',
- data=_F(FROM='Script',
- SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
- BackgroundError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
- Observation=_F(INPUT_TYPE='Vector',
- data=_F(FROM='Script',
- SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
- ObservationError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
- ObservationOperator=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
- UserPostAnalysis=_F(FROM='String',
- STRING=
-"""import numpy
-Xa = ADD.get("Analysis").valueserie(-1)
-print
-print "Size of Analysis = %i"%len(Xa)
-print "Min, mean, max = %8.3f, %8.3f, %8.3f"%(min(Xa),numpy.mean(Xa),max(Xa))
-print
-""",),);
+++ /dev/null
-#-*-coding:iso-8859-1-*-
-import numpy
-#
-n = 100
-#
-# Definition of the Background as a vector
-# ----------------------------------------
-Background = n * [0]
-#
-# Definition of the Observation as a vector
-# -----------------------------------------
-Observation = n * "1 "
-Observation = Observation.strip()
-#
-# Definition of the Background Error covariance as a matrix
-# ---------------------------------------------------------
-BackgroundError = numpy.identity(n)
-#
-# Definition of the Observation Error covariance as a matrix
-# ----------------------------------------------------------
-ObservationError = numpy.identity(n)
-#
-# Definition of the Observation Operator as a matrix
-# --------------------------------------------------
-ObservationOperator = numpy.identity(n)