test


installation

Table of Contents

1 installation guide

saturne_installation.html

  1. Install the following packages before running install_saturne.py

  • C, C++, and Fortran compilers

    • on Ubuntu OS, type in:

      • sudo apt install gcc
      • sudo apt install gfortran
  • Python
    • python 3.6.7 is default installed on Ubuntu
  • MPI (optional)
  • 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
  • setup environment path– lauch the package code_saturne from a terminal

two methods:

  • defining a permanent alias
  • add the installation path of code_saturne, i.e.
/home/kaiming/Code_Saturne/5.0.9/code_saturne-5.0.9/arch/Linux_x86_64/bin

method 1: defining a permanent alias

a. define a alias named code_saturne in a file, .bash_aliases

vi .bash_aliases

b. Then define a alias as below

cspath=/home/kaiming/Code_Saturne/5.0.9/code_saturne-5.0.9/arch/Linux_x86_64/bin
alias code_saturne="$cspath/code_saturne"

c. To load .bash_aliases , add the following commands in the ~/.bashrc

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

d. source ~/.bashrc

>>  source  ~/.bashrc

https://askubuntu.com/questions/1414/how-to-create-a-permanent-alias

method 2: add path environment variable http://www.linfo.org/path_env_var.html

  1. now, you can lauch code_saturne in any terminal >> codesaturne

to launch the GUI of code saturne

>> code_saturne gui

The documentation should then be available through the commands:

>> code_saturne info -g refcard                         #reference card

>> code_saturne info -g user
  1. How to run a python script on Ubuntu

  2. PyQt installation
    1. log

      kaiming@127:~$ pip3 install pyqt5
      Collecting pyqt5
      Downloading https://files.pythonhosted.org/packages/d4/bf/d884da8e2f7096d201c891d515eb6813a8e85df5eb6f5e12e867bf1d831c/PyQt5-5.11.3-5.11.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (117.8MB)
      100% |████████████████████████████████| 117.8MB 22kB/s
      Collecting PyQt5sip<4.20,>=4.19.11 (from pyqt5)
      Exception:
      Traceback (most recent call last):
      File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 377, in _makerequest
      httplibresponse = conn.getresponse(buffering=True)

      TypeError: getresponse() got an unexpected keyword argument 'buffering'

      During handling of the above exception, another exception occurred:

      solution: try it again

      which returns:
      Installing collected packages: PyQt5-sip, pyqt5
      Successfully installed PyQt5-sip-4.19.13 pyqt5-5.11.3

Author: kaiming

Created: 2019-05-10 五 10:23

Emacs 25.2.2 (Org mode 8.2.10)

Validate

saturne installation on Ubuntu的更多相关文章

  1. Pangolin 安装测试 Installation & Examination (Ubuntu 20.04)

    Pangolin 安装测试 Installation & Examination (Ubuntu 20.04) 如题所述,这是一个比较轻松的 Pangolin 安装配置方法,同样是基于 WSL ...

  2. docker installation on ubuntu

    Ubuntu Docker is supported on these Ubuntu operating systems: Ubuntu Xenial 16.04 (LTS) Ubuntu Trust ...

  3. Installation Guide Ubuntu 16.04

    Beside the installation guide on the main page, here is a guide to install GenieACS off a freshly in ...

  4. Latest node.js & npm installation on Ubuntu 12.04

    转自:https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/ Compiling is way to go for many b ...

  5. Ruby and gnuplot installation on Ubuntu 16.04

    sudo apt install ruby gnuplot

  6. ubuntu 安装apache2并配置cgi,搭建mimetex转化公式图片的服务

    一.Apache的安装 在终端输入: sudo apt-get install apache2 二.启动.停止Apache服务 Apache的启动和停止文件是:/etc/init.d/apache2 ...

  7. windows ubuntu双系统启动

    开始安装系统 1.安装系统 首先安装windows8和ubuntu12.04,安装先后顺序可以不用管,只是安装到ubuntu的分区时需要注意device for boot loader install ...

  8. Motion on Ubuntu

    Motion is a program that monitors the video signal from one or more cameras and is able to detect if ...

  9. (转) How to install eclipse in ubuntu 12.04

    源地址:http://www.krizna.com/ubuntu/install-eclipse-in-ubuntu-12-04/ Eclipse installation in ubuntu 12. ...

随机推荐

  1. BZOJ_3280_小R的烦恼_最小费用最大流

    BZOJ_3280_小R的烦恼_最小费用最大流 Description 小R最近遇上了大麻烦,他的程序设计挂科了.于是他只好找程设老师求情.善良的程设老师答应不挂他,但是要 求小R帮助他一起解决一个难 ...

  2. LD_LIBRARY_PATH设置问题

    今天突然遇到设置LD_LIBRARY_PATH的问题,,发现在.bashrc和/etc/profile中添加 exportLD_LIBRARY_PATH = path_name:$LD_LIBRARY ...

  3. JAVA中的语法

    分支条件判断: if(条件){} if(条件){}else{} if(条件){}else if(条件){}else{} 分支等值判断: switch(表达式){ case : break; defau ...

  4. bzoj 1584: [Usaco2009 Mar]Cleaning Up 打扫卫生【dp】

    参考:http://hzwer.com/3917.html 好神啊 注意到如果分成n段,那么答案为n,所以每一段最大值为\( \sqrt{n} \) 先把相邻并且值相等的弃掉 设f[i]为到i的最小答 ...

  5. SpringBoot整合SpringSecurity简单案例

    在我们开发项目的过程中经常会用到一些权限管理框架,Java领域里边经常用的可能就是shiro了,与之对应的还有SpringSecurity,SpringSecurity可以说是非常强大,与Spring ...

  6. 贪心 Codeforces Round #263 (Div. 2) C. Appleman and Toastman

    题目传送门 /* 贪心:每次把一个丢掉,选择最小的.累加求和,重复n-1次 */ /************************************************ Author :R ...

  7. 使用wkwebview后,页面返回不刷新的问题

    onpageshow 事件在用户浏览网页时触发. onpageshow 事件类似于 onload 事件,onload 事件在页面第一次加载时触发, onpageshow 事件在每次加载页面时触发,即 ...

  8. 为 C# 代码生成 API 文档(自译)

    原文地址:http://broadcast.oreilly.com/2010/09/build-html-documentation-for-y.html#comments Sandcastle 功能 ...

  9. CF822C Hacker, pack your bags!

    思路: 对于一个区间[l, r],只需枚举所有满足r' < l并且二者duration之和为x的区间[l', r'],寻找其中二者cost之和最小的即可.于是可以开一个数组a[],a[i]表示所 ...

  10. Python中*args和**kwargs的使用

    函数定义 使用*args和**kwargs传递可变长参数: *args用作传递非命名键值可变长参数列表(比如元组) **kwargs用作传递键值可变长参数列表(比如字典) 函数入参 *args 传递一 ...