forked from t-weber/takin2
-
Notifications
You must be signed in to change notification settings - Fork 6
Compiling the Magnon Modules
Tobias Weber (Institut Laue-Langevin) edited this page Oct 15, 2024
·
9 revisions
The magnon code consists of the following sub-modules:
- The basic calculation library can be found in the directory tlibs2/libs/magdyn.
- The code for the GUI is in the directory mag-core/tools/magdyn.
- The code for the Python scripting interface can be found in the directory mag-core/tools_py/magdyn.
- The code for the resolution plug-in module is in the folder magnon-plugin.
- After having cloned the source repository (see Compiling Takin), go to the module's directory:
cd takin/mag-core
. - Download the external libraries:
../setup/externals/setup_externals_mag.sh
. - Go to the GUI's directory:
cd tools/magdyn/
. - Create a "build" directory:
mkdir build && cd build
. - Build the binary:
cmake -DCMAKE_BUILD_TYPE=Release .. && make -j4
. - The stand-alone program can be launched via
./takin_magdyn
.
- After having cloned the source repository (see Compiling Takin), go to the plugin's directory:
cd takin/magnon-plugin
. - Create a "build" directory:
mkdir build && cd build
. - Build the plugin:
cmake -DCMAKE_BUILD_TYPE=Release .. && make -j4
. - Create Takin's plugin directory if needed:
mkdir -p ~/.takin/plugins
. - Copy the plugin to the plugin directory:
- On Mac:
cp libmagnonmod.dylib ~/.takin/plugins/
, - On Linux:
cp libmagnonmod.so ~/.takin/plugins/
.
- On Mac:
- After having cloned the source repository (see Compiling Takin), go to the module's directory:
cd takin/mag-core/tools_py/magdyn/
. - Create a "build" directory:
mkdir build && cd build
. - Build the Python package:
cmake -DCMAKE_BUILD_TYPE=Release .. && make -j4
. - Install the Python package:
sudo make install
.