先安装一些可能用到的
yum install gcc
yum install gcc-c++
yum install gcc-gfortran
yum install cmake
yum install blas
yum install lapack
yum install doxygen
yum install mpi
Ubuntu的话安装命令为:
sudo apt-get install doxygen
download
ckit.tgz
elixir.tgz
from http://www.oofem.org/en/download/download.html
Install Ckit
cd Ckit
cd src
./configure
make all
Ckit/src/libckit.a were created.
Install ELIXIR
cd Elixir
cd src
./configure
make all
% another thing
yum install libX11-devel
yum install libXmu-devel
yum install libXaw-devel
Elixir/src/libelixir.a were created.
Install oofem2.3
cd Downloads
mkdir oofem_build
cd oofem_build
% cmake ../oofem-2.3
cmake -DUSE_OOFEG="ON" -DCKIT_DIR="~/Downloads/Ckit/" -DELIXIR_DIR="~/Downloads/Elixir" ../oofem-2.3
make
ctest
% 100% tests passed, 0 tests failed out of 191
mkdir my
cd my
% cp simpleNonlinearStokes.in from ~/Downloads/oofem-2.3/tests/fm
../oofem -c -f simpleNonlinearStokes.in
../oofeg -f simpleNonlinearStokes.in
../oofem -c
在安装目录下运行
cmake ../oofem-2.5
cmake -DUSE_OOFEG="ON" -DCKIT_DIR="~/Downloads/Ckit/" -DELIXIR_DIR="~/Downloads/Elixir" ../oofem-2.5
make
ctest //如果成功100% tests passed, 0 tests failed out of 191
运行时
在Testing目录下运行, 将输入文件考入该文件夹,然后执行下列命令
../oofem -c simpleNonlinearStokes.in