Dear Wolfgang Bangerth

I have a compile error for local_range() as below :

test1.cc:313: error:
‘((dealii::PETScWrappers::MPI::Vector*)((Stokes<2>*)this)->Stokes<2>::rVec.dealii::PETScWrappers::MPI::BlockVector::<anonymous>.dealii::BlockVectorBase<VectorType>::block
[with VectorType =
dealii::PETScWrappers::MPI::Vector](0u))->dealii::PETScWrappers::MPI::Vector::<anonymous>.dealii::PETScWrappers::VectorBase::local_range().std::pair<unsigned
int, unsigned int>::first’ cannot be used as a function


How could I fix it?


On Tue, September 30, 2008 9:18 pm, Wolfgang Bangerth wrote:
>
>> Is that wrong?
>
> No, this looks alright.
>
> What I would do is print, right before you call the solver, the sizes of
> all
> blocks of rVec as well as the locally available elements. I.e., do
> something
> like this:
>
>   std::cout << get_this_mpi_process(mpi_communicator) << "  "
>                << rVec.size() << " "
>                << rVec.n_blocks() << " "
>                << rVec.block(0).size() << " "
>                << rVec.block(1).size() << " "
>                << rVec.block(0).local_range().first() << " "
>                << rVec.block(0).local_range().second() << " "
>                << rVec.block(1).local_range().first() << " "
>                << rVec.block(1).local_range().second() << " "
>                << std::endl
>
> If one of these numbers looks suspicious, you'll need to investigate what
> is
> going on.
>
> Best
>  W.
>
> --
> -------------------------------------------------------------------------
> Wolfgang Bangerth                email:            [EMAIL PROTECTED]
>                                  www: http://www.math.tamu.edu/~bangerth/
>



_______________________________________________

Reply via email to