Dear Zhuang,
In the command
cmake -DDEAL_II_DIR=/path/to/installed/deal.II .
"/path/to/installed/deal.II" is the path you have installed dealii into, you need to change it to the path you actually installed in.
In your above comment
cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/dir ../dealii-9.1.1
if you donot change the "-DCMAKE_INSTALL_PREFIX=/path/to/install/dir" to any other path, you may need to change the DEAL_II_DIR:
cmake -DDEAL_II_DIR=/path/to/install/dir .
, and you change the dealii version in the CMakelist.txt in step-1 directly, then it will use the dealii-9.0 to configure.
You may have installed the dealii-9.0.0 before and the PATH DEAL_II_DIR may link to dealii-9.0.
And step-1 donot need mpi.h, it maybe just is a fake hints in VScode, and if you want VScode to know your code and give code complement&highlight then you should add the include path to VScode.That is another question, you may need the VScode extension "ms-vscode.cpptools " to complement code and highlight.
Best,
m.
在 2019年11月28日星期四 UTC+8下午7:00:07,Tony Zhuang写道: