Skip to content

Commit

Permalink
Limits adaptive to 3Dcartesian geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
beck-llr committed Apr 2, 2021
1 parent 2fe94f5 commit 7922126
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/Sphinx/namelist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ It requires :ref:`additional compilation options<vectorization_flags>` to be act
Particles are sorted per cell.
* ``"adaptive"``: the best operators (scalar or vectorized)
are determined and configured dynamically and locally
(per patch and per species).
(per patch and per species). For the moment this mode is only supported in ``3Dcartesian`` geometry.
Particles are sorted per cell.

In the ``"adaptive"`` mode, :py:data:`clrw` is set to the maximum.
Expand Down
2 changes: 1 addition & 1 deletion src/Params/Params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ Params::Params( SmileiMPI *smpi, std::vector<std::string> namelistsFiles ) :

// Check that we are in 3D, adaptive mode not possible in 2d
if( vectorization_mode == "adaptive_mixed_sort" || vectorization_mode == "adaptive" ) {
if (nDim_particle != 3) {
if (geometry!="3Dcartesian") {
ERROR("In block `Vectorization`, `adaptive` mode only available in 3D")
}
}
Expand Down

0 comments on commit 7922126

Please sign in to comment.