Dear Antoni,
it looks like EPSSetInitialSpace gets a C array of Vec. So it wants
something like
Vec vectors[5];
vectors[0]=first_vector; ...
This works because a PETSc Vec is just a pointer that can be copied by value.
I would create a function with the signature
set_initial_vectors(const std::vector<PETScWarppers::VectorBase*> &vectors)
Internally you have to create a C array of type Vec. You convert from
PETScWarppers::VectorBase to Vec as given in the code you posted.
Does that help?
> --
> The deal.II project is located at
http://www.dealii.org/
> For mailing list/forum options, see
>
https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
dealii+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Timo Heister
http://www.math.tamu.edu/~heister/