]> https://gitweb.dealii.org/ - dealii.git/commitdiff
extend mpi/interpolate_02 to complex-valued PETSc
authorDenis Davydov <davydden@gmail.com>
Mon, 28 Mar 2016 21:09:25 +0000 (23:09 +0200)
committerDenis Davydov <davydden@gmail.com>
Tue, 29 Mar 2016 18:48:46 +0000 (20:48 +0200)
tests/mpi/interpolate_02.cc

index ce95fec91e1f533f7d1e78d8ecb9cd964d4486c1..bd995a1d83c9efb56daeed6ed515a228992ae434 100644 (file)
@@ -67,7 +67,7 @@ void test()
   PETScWrappers::MPI::Vector x (MPI_COMM_WORLD,dofh.n_dofs(),owned_set.n_elements());
 
   VectorTools::interpolate(dofh,
-                           ConstantFunction<dim>(1),
+                           ConstantFunction<dim,PetscScalar>(1),
                            x);
   const double norm = x.l2_norm();
   if (myid == 0)

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.