]> https://gitweb.dealii.org/ - dealii.git/commit
fix a warning when compiling with cuda support 14049/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 26 Jun 2022 05:37:35 +0000 (00:37 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 26 Jun 2022 05:37:35 +0000 (00:37 -0500)
commitdfc2ee22f0534999a2b6ac38254fc840c6e0a536
treed583bb0461edef3b04416c2312dd32b8926a633a
parentdad323def15fb391c0293aaa709ceb2116c623d0
fix a warning when compiling with cuda support

dealii/include/deal.II/matrix_free/cuda_matrix_free.templates.h:1027:17:
    warning: loop variable ‘cell’ creates a copy from type ‘const
    dealii::TriaActiveIterator<dealii::CellAccessor<3, 3> >’
    [-Wrange-loop-construct]
dealii/include/deal.II/matrix_free/cuda_matrix_free.templates.h:1027:17:
    note: use reference type to prevent copying
 1027 |                 for (const auto cell :
      |                 ^~~~
      |                 &
include/deal.II/matrix_free/cuda_matrix_free.templates.h

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.