]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix deprecation warning
authorBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 7 Jul 2020 00:32:10 +0000 (00:32 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 7 Jul 2020 00:50:40 +0000 (00:50 +0000)
include/deal.II/base/array_view.h

index 823cc429bea7738e9b50e61e694402ba01d079cc..49ead81f656f77e0e989628153c0c7dd11ff2bc6 100644 (file)
@@ -342,9 +342,9 @@ namespace internal
         {
           AssertCuda(cuda_error);
           if (std::is_same<MemorySpaceType, MemorySpace::Host>::value)
-            return attributes.memoryType == cudaMemoryTypeHost;
+            return attributes.type == cudaMemoryTypeHost;
           else
-            return attributes.memoryType == cudaMemoryTypeDevice;
+            return attributes.type == cudaMemoryTypeDevice;
         }
       else
         {

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.