Ceci est une ancienne révision du document !
EMSoft
note: les changement cmake ne sont peut-être plus nécessaire avec la dernière version 4.3.
Prérequis
Sous Ubuntu 16.04 :
sudo apt-get install nvidia-opencl-dev liblapacke-dev libblas-dev gfortran
Procedure
Admettons qu'on installe dans /opt. Si dans le home, pas besoin de sudo.
Pour le SDK
cd /opt sudo mkdir EMSoft sudo chown -R $USER EMSoft cd EMSoft git clone https://github.com/marcdegraef/EMsoftSuperbuild.git git clone https://github.com/marcdegraef/EMsoft.git mkdir SDK cd EMsoftSuperbuild mkdir Release cd Release cmake -DEMsoft_SDK=/opt/EMSoft/SDK -DCMAKE_BUILD_TYPE=Release -DINSTALL_QT5=OFF ../ make -j 8 vim /opt/EMSoft/SDK/superbuild/bcls/Source/bcls/CMakeLists.txt # changer cmake_minimum_required(VERSION 3.4.0) make -j 8
Pour le soft
cd /opt/EMSoft/EMSoft mkdir build vim CMakeLists.txt # changer cmake_minimum_required(VERSION 3.4.0) cd build cmake -DEMsoft_SDK=/opt/EMSoft/SDK/ -DCMAKE_BUILD_TYPE=Release .. make -j
Finalisation
cd Bin ./EMsoftinit vim ~/.config/EMsoft/EMsoftConfig.json # remplir avec les bons chemins
Usage
example:
./EMsampleRFZ -t cp EMsampleRFZ.template cubic.nml # edit cubic.nml to change output file from "undefined"to something else ./EMsampleRFZ