Skip to content
Snippets Groups Projects
Commit 86f0f082 authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

explaining how getdp and cim.py communicate in README + add BLAS for getdp in dependency.sh

parent 40e5eb07
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,20 @@ Please run: ...@@ -42,6 +42,20 @@ Please run:
cim.py -h cim.py -h
for more information. 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 Dependencies
------------ ------------
cim.py is a Python 2.7 script. It relies on the following modules: cim.py is a Python 2.7 script. It relies on the following modules:
...@@ -72,6 +86,7 @@ features: ...@@ -72,6 +86,7 @@ features:
In other words, PETSc should be compiled without MPI, with complex algebra and 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 with a sequential version of MUMPS. GetDP can then be compiled with the
following options: following options:
ENABLE_BLAS_LAPACK: ON
ENABLE_BUILD_DYNAMIC: ON ENABLE_BUILD_DYNAMIC: ON
ENABLE_BUILD_SHARED: ON ENABLE_BUILD_SHARED: ON
ENABLE_KERNEL: ON ENABLE_KERNEL: ON
......
...@@ -68,6 +68,7 @@ mkdir build ...@@ -68,6 +68,7 @@ mkdir build
cd build cd build
cmake -DDEFAULT=0 -DENABLE_BUILD_DYNAMIC=1 -DENABLE_BUILD_SHARED=1 \ cmake -DDEFAULT=0 -DENABLE_BUILD_DYNAMIC=1 -DENABLE_BUILD_SHARED=1 \
-DENABLE_KERNEL=1 -DENABLE_PETSC=1 -DENABLE_WRAP_PYTHON=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" .. -DPython_ADDITIONAL_VERSIONS="2.7" ..
echo "Compiling GetDP" echo "Compiling GetDP"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment