码迷,mamicode.com
首页 > 系统相关 > 详细

saturne installation on Ubuntu

时间:2019-03-31 13:50:54      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:orm   .com   ble   block   png   any   created   style   inux   

saturne Installation on Ubuntu 16.04

1 installation guide on Ubuntu 16.04

  1. Install pre-packages before running install_saturne.py
    • Zlib (optional, not installed in this case)
    • BLAS (optional, not installed in this case)
    • Python
    • PyQt (optional, required for the GUI) sudo apt-get install python-pyqt5

      sudo apt-get install python3-pyqt5

      pyqt5 reference guide

    • C, C++, and Fortran compilers
      • on Ubuntu OS, type in:
        • sudo apt install gcc
        • sudo apt install gfortran
    • MPI (optional)
  2. compiling Create a directory named saturne_build run install_saturne.py
    mkdir /home/kaiming/Documents/Code-saturne/saturne_build
    cd /home/kaiming/Documents/Code-saturne/code_saturne_5_build
    /home/kaiming/Documents/Code-saturne/code_saturne_5/install_saturne.py
    
  3. Launch the package code_saturne from a terminal Two methods are available
    • 4
    • 1 of code_saturne,i.e. /home/kaiming/Code_Saturne/5.0.9/code_saturne-5.0.9/arch/Linux_x86_64/bin
  4. from: https://askubuntu.com/questions/1414/how-to-create-a-permanent-alias a. define a alias named code_saturne in a file, .bash_aliases

    >> vi .bashaliases

    Then define a alias as below

    >>cspath=/home/kaiming/CodeSaturne/5.0.9/codesaturne-5.0.9/arch/Linuxx8664/bin >> alias codesaturne="$cspath/codesaturne" 技术图片

c. To load .bash_aliases

  • add the following commands in the ~/.bashrc
    if [ -f ~/.bash_aliases ]; then
         . ~/.bash_aliases
    fi
    

    技术图片

then source ~/.bashrc

>> source ~/.bashrc

  1. http://www.linfo.org/path_env_var.html
  2. lauch code_saturne in any terminal >> codesaturne

to launch the GUI of code saturne

>> codesaturne gui

The documentation should then be available through the commands:

>> codesaturne info -g refcard #reference card

>> codesaturne info -g user

Author: kaiming

Created: 2019-03-31 Sun 12:33

Emacs 24.5.1 (Org mode 8.2.10)

Validate

saturne installation on Ubuntu

标签:orm   .com   ble   block   png   any   created   style   inux   

原文地址:https://www.cnblogs.com/code-saturne/p/10630856.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!