You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
505 B
Markdown
28 lines
505 B
Markdown
# Progetto di Calcolo Scientifico
|
|
|
|
```bash shell
|
|
# Create a build directory
|
|
$ mkdir build
|
|
$ cd build
|
|
|
|
# Build, Compile, Run
|
|
$ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
|
|
$ make
|
|
$ mpirun ./main
|
|
|
|
# Or inline for development
|
|
$ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. && make && mpirun ./main
|
|
```
|
|
|
|
## VSCode
|
|
|
|
Install the `clangd` extension and put the following in `.vscode/settings.json`
|
|
|
|
```json
|
|
{
|
|
"clangd.arguments": [
|
|
"-background-index",
|
|
"-compile-commands-dir=build"
|
|
]
|
|
}
|
|
``` |