Skip to content

Commit

Permalink
retry mcr
Browse files Browse the repository at this point in the history
  • Loading branch information
aeriforme committed Sep 13, 2024
1 parent 4a46436 commit 60eac99
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,57 +20,7 @@ conda install -y -n base conda-libmamba-solver
conda config --set solver libmamba
conda config --set auto_activate_base false
```
```

Create a virtual environment for WarpX and install the dependencies.
```bash markdown-code-runner
conda create -n warpx -c conda-forge blaspp boost ccache cmake compilers git "heffte=*=mpi_mpich*"
lapackpp "openpmd-api=*=mpi_mpich*" openpmd-viewer python make numpy pandas scipy yt
"fftw=*=mpi_mpich*" pkg-config matplotlib mamba mpich mpi4py ninja pip virtualenv
conda activate warpx
```

Create a virtual environment for WarpX and install the dependencies.
```bash markdown-code-runner
conda create -n warpx -c conda-forge blaspp boost ccache cmake compilers git "heffte=*=mpi_mpich*"
lapackpp "openpmd-api=*=mpi_mpich*" openpmd-viewer python make numpy pandas scipy yt
"fftw=*=mpi_mpich*" pkg-config matplotlib mamba mpich mpi4py ninja pip virtualenv
conda activate warpx
```


## Build WarpX

Get the source code
~~~
git clone https://github.com/ECP-WarpX/WarpX.git $HOME/src/warpx
cd $HOME/src/warpx
~~~
{: .language-bash}
Configure the build
~~~
cmake -S . -B build
~~~
{: .language-bash}

When configuring, you can pass different flags that enble or disable various options.
For example: `cmake -S . -B build -DWarpX_DIMS=1 -DCMAKE_BUILD_TYPE=Debug`
will compile the code in 1D geometry and in debug mode.
You can find the list of the build options and their default values
[here](https://warpx.readthedocs.io/en/latest/install/cmake.html#build-options).
For these tutorials, we compile in 1D, 2D, 3D and enable FFT calculations.
~~~
cmake -S . -B build -DWarpX_DIMS="1;2;3" -DWarpX_FFT=ON
~~~
{: .language-bash}
Finally, compile!
~~~
cmake --build build -j 4
~~~
{: .language-bash}
The executables will appear in `build/bin/`.


{% include links.md %}

0 comments on commit 60eac99

Please sign in to comment.