From b15638ca90614c1050a883512a0b67df5fe44d9a Mon Sep 17 00:00:00 2001 From: young Date: Thu, 3 Oct 2013 15:04:48 +0000 Subject: [PATCH] Document problem (in a comment) with OutputIterator - this is an @todo. git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31090 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/petsc_vector_base.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/deal.II/include/deal.II/lac/petsc_vector_base.h b/deal.II/include/deal.II/lac/petsc_vector_base.h index 930aef000b..52910827d4 100644 --- a/deal.II/include/deal.II/lac/petsc_vector_base.h +++ b/deal.II/include/deal.II/lac/petsc_vector_base.h @@ -1297,13 +1297,8 @@ namespace PETScWrappers && index(end) ) { //local entry -/* @whattodo */ +/* @whattodo Note: OutputIterator needs to be instantiated as PetscScalar (or std::complex) */ // *(values_begin+i) = *(ptr+index-begin); - -/* @testcheck */ - /* std::double cheese = *(values_begin+i); */ - /* PetscScalar fish = *(ptr+index-begin); ok */ -/* @endtestcheck */ } else { @@ -1312,7 +1307,7 @@ namespace PETScWrappers = ghost_indices.index_within_set(index); Assert(ghostidx+end-begin<(unsigned int)lsize, ExcInternalError()); -/* @whattodo */ +/* @whattodo Note: OutputIterator needs to be instantiated as PetscScalar (or std::complex) */ // *(values_begin+i) = *(ptr+ghostidx+end-begin); } } @@ -1345,8 +1340,8 @@ namespace PETScWrappers Assert(index>=static_cast(begin) && index(end), ExcInternalError()); -/* @whattodo */ - /* *(values_begin+i) = *(ptr+index-begin); */ +/* @whattodo Note: OutputIterator needs to be instantiated as PetscScalar (or std::complex) */ + /* *(values_begin+i) = *(ptr+index-begin); */ } ierr = VecRestoreArray(vector, &ptr); -- 2.39.5