1 Star 0 Fork 1

xfygogo / gdbof2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
installgdbOF.sh 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
#
# USAGE: ./installgdbOF
#
# Created By:
# J.M. Gimenez(1), S.Marquez Damian(1), N. Nigro(1)
#
# (1)CIMEC (UNL-CONICET), Santa Fe, Argentina
#
#
# contact: jmarcelogimenez@gmail.com
#
# March 2020
#
set -e
echo "-----------------------------------------------------"
echo "Installing gdbOF..."
echo "-----------------------------------------------------"
echo "Making sure that you have OpenFOAM debug compiled"
echo "-----------------------------------------------------"
if [ "Debug" != "$WM_COMPILE_OPTION" ]
then
echo "Error: The parameter \$WM_PROJECT_DIR: " $WM_COMPILE_OPTION " is not \"Debug\""
echo " Change this flag in \$WM_PROJECT_DIR/etc/bashrc to perform the instalation"
exit 1
else
if [ -f $FOAM_LIBBIN/libtriSurface.so ]
then
if cat src/findFace/Make/options | grep -q "ltriSurface"
then
echo "Skipping Make/options modification"
else
sed -i 's/n$/n \\/' src/findFace/Make/options
sed -i '$ a\ -ltriSurface' src/findFace/Make/options
sed -i 's/n$/n \\/' src/findFacesCell/Make/options
sed -i '$ a\ -ltriSurface' src/findFacesCell/Make/options
fi
fi
fi
if ! cat ~/.gdbinit | grep -q "gdbOFexpanded.gdb"
then
echo "# gdbOF sources #" >> ~/.gdbinit
echo "source $PWD/gdbOF/gdbOFexpanded.gdb" >> ~/.gdbinit
echo "set auto-load safe-path /" >> ~/.gdbinit #Disable auto-loading safety for a single gdb session. This assumes all the fles you debug during this gdb session will come from trusted sources.
fi
sed "s|_GDBOFPATH|$PWD|g" gdbOF/gdbOF.gdb > gdbOF/gdbOFexpanded.gdb
echo "export GDBOFPATH="$PWD >> ~/.bashrc
# echo "export GDBOFPATH="$PWD >> ~/.bashrc
echo "compiling gdbOF_apps..."
cd src/findCell
wclean
wmake
cd ../findFace
wclean
wmake
cd ../findFacesCell
wclean
wmake
echo "-----------------------------------------------------"
echo "End Installation.."
echo "-----------------------------------------------------"
set +e
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xfygogo/gdbof2.git
git@gitee.com:xfygogo/gdbof2.git
xfygogo
gdbof2
gdbof2
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891