]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix documentation for parallel::distributed::Vector 8644/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 26 Aug 2019 20:13:55 +0000 (16:13 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 26 Aug 2019 21:17:58 +0000 (17:17 -0400)
include/deal.II/lac/la_parallel_vector.h

index 3090a625ab00fceddaca983b76a34b1e2a4ce80d..40d8bbc2118aeae330bd636dc2c601c3a05f5308 100644 (file)
@@ -188,21 +188,21 @@ namespace LinearAlgebra
      * From the host, there are two methods to access the elements of the Vector
      * when using the CUDA memory space:
      * <ul>
-     * <li> use get_values()
-     * <code>
+     * <li> use get_values():
+     * @code
      * Vector<double, MemorySpace::CUDA> vector(local_range, comm);
      * double* vector_dev = vector.get_values();
      * std::vector<double> vector_host(local_range.n_elements(), 1.);
      * Utilities::CUDA::copy_to_dev(vector_host, vector_dev);
-     * </code>
-     * <li> use import()
-     * <code>
+     * @endcode
+     * <li> use import():
+     * @code
      * Vector<double, MemorySpace::CUDA> vector(local_range, comm);
      * ReadWriteVector<double> rw_vector(local_range);
      * for (auto & val : rw_vector)
      *   val = 1.;
      * vector.import(rw_vector, VectorOperations::insert);
-     * </code>
+     * @endcode
      * </ul>
      * The import method is a lot safer and will perform an MPI communication if
      * necessary. Since an MPI communication may be performed, import needs to

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.