一言以蔽之:
解决方案:必须先进入bin目录再运行SPHSimulator
如果企图像这样在根目录下运行
/bin/SPHSimulator ./data/Scenes/DamBreakModel.json
是会报错的,报错如下:
Error: Cannot open file!
Initialize static boundary simulation
WARNING: Neighborhood search may not be initialized with a zero or negative search radius. This may lead to unexpected behavior.
原因:这是因为linux版本加载json文件依赖于路径。所以必须在exe所在目录下执行,才能顺利的找到json