An easy way (but it may slow down the startup of your bash terminals) would be to directly add to your .bashrc
spack load dealii
My preferred solution, instead, is to do the following: I create a `spack view` of all packages I need (i.e., just symbolic links to libraries and exectuable), using this command:
spack view -d yes add -i /some/path/to/an/empty/directory/of/your/choice/ dealii mpich (or openmpi, if that’s what’s installed) cmake ninja (gmsh, numdiff, etc.)
-d yes: add dependencies
-i: ignore errors
Then, in my bashrc, I add
export CMAKE_PREFIX_PATH=/some/path/to/a/directory/of/your/choice/
export PATH=/some/path/to/a/directory/of/your/choice/bin:$PATH
This makes sure that cmake sees everything, without having to load dealii explicitly with spack (which may take time, if you do it at every startup).
L.
> On 23 Apr 2023, at 12:50, Vinayak Vijay <
vinay...@gmail.com> wrote:
>
> I get the error when i try to use "make". I am able to build using vscode now though.
>
> On Sunday, April 23, 2023 at 11:47:50 AM UTC+2 Vinayak Vijay wrote:
> I have added the DEAL_II_DIR variable in the cmake section of vscode as follows:
>
> To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/d6056409-ef5a-4ab5-abd5-53bf904a4d91n%40googlegroups.com.