From 86f0f082eb75482b9f71620ebc4dd87245790d58 Mon Sep 17 00:00:00 2001
From: Nicolas Marsic <marsic@temf.tu-darmstadt.de>
Date: Thu, 4 May 2017 20:05:44 +0200
Subject: [PATCH] explaining how getdp and cim.py communicate in README + add
 BLAS for getdp in dependency.sh

---
 README.txt      | 15 +++++++++++++++
 dependencies.sh |  1 +
 2 files changed, 16 insertions(+)

diff --git a/README.txt b/README.txt
index 37e1a08..e0b7b08 100644
--- a/README.txt
+++ b/README.txt
@@ -42,6 +42,20 @@ Please run:
   cim.py -h
 for more information.
 
+Driving GetDP from cim.py
+-------------------------
+cim.py and GetDP are exchanging the following ONELAB variables:
+  angularFreqRe - the real part of the frequency
+  angularFreqIm - the imaginary part of the frequency
+  x()           - the solution vector of the linear system
+  b()           - the right hand side (RHS) of the linear system
+  imposeRHS     - flag signalling if an other RHS should be imposed
+  doPostpro     - flag signalling if only a post-processing should be done
+  doApply       - flag signalling if x() should be applied to the linear system
+  fileName      - name of the post-processing file
+More information can be found in bin/solver.py. Furthermore, examples are
+provided in example/maxwell_sibc/ and example/maxwell_linear/.
+
 Dependencies
 ------------
 cim.py is a Python 2.7 script. It relies on the following modules:
@@ -72,6 +86,7 @@ features:
 In other words, PETSc should be compiled without MPI, with complex algebra and
 with a sequential version of MUMPS. GetDP can then be compiled with the
 following options:
+  ENABLE_BLAS_LAPACK:   ON
   ENABLE_BUILD_DYNAMIC: ON
   ENABLE_BUILD_SHARED:  ON
   ENABLE_KERNEL:        ON
diff --git a/dependencies.sh b/dependencies.sh
index 0cdfed0..c550630 100755
--- a/dependencies.sh
+++ b/dependencies.sh
@@ -68,6 +68,7 @@ mkdir build
 cd build
 cmake -DDEFAULT=0 -DENABLE_BUILD_DYNAMIC=1 -DENABLE_BUILD_SHARED=1 \
       -DENABLE_KERNEL=1 -DENABLE_PETSC=1 -DENABLE_WRAP_PYTHON=1 \
+      -DENABLE_BLAS_LAPACK=1 -DBLAS_LAPACK_LIBRARIES=$BLAS/libopenblas.so \
       -DPython_ADDITIONAL_VERSIONS="2.7" ..
 
 echo "Compiling GetDP"
-- 
GitLab