]> https://gitweb.dealii.org/ - dealii.git/commitdiff
minor cleanup of petsc_complex/vector_02 2230/head
authorDenis Davydov <davydden@gmail.com>
Tue, 15 Mar 2016 15:51:44 +0000 (16:51 +0100)
committerDenis Davydov <davydden@gmail.com>
Tue, 15 Mar 2016 15:51:44 +0000 (16:51 +0100)
tests/petsc_complex/vector_02.cc

index 9cacfcbe95617d6b6b78c6a38bcf19bb29dc84da..58289afa0350d2fd3378a6bcd5836698a0e9b139 100644 (file)
@@ -35,13 +35,8 @@ void test ()
   v.compress (VectorOperation::insert);
 
   PETScWrappers::Vector v2(s);
-  for (unsigned int k=0; k<v2.size(); ++k)
-    {
-      // This fails
-      // v2(k) = PetscScalar (k,-k);
-      // This is ok
-      v2(k) = PetscScalar (k,-1.0*k);
-    }
+  for (int k=0; k<v2.size(); ++k)
+    v2(k) = PetscScalar (k,-k);
 
   v2.compress(VectorOperation::insert);
 

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.