<div dir="ltr">I see. I think I will copy the vector then :)</div><div class="gmail_extra"><br><div class="gmail_quote">On 27 May 2015 at 11:59, Markus Blatt <span dir="ltr"><<a href="mailto:markus@dr-blatt.de" target="_blank">markus@dr-blatt.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, May 26, 2015 at 09:38:22PM +0200, Tobias Ritschel wrote:<br>
<br>
> I would like to use dune-istl to solve linear systems in a fully implicit<br>
> two-phase solver and I use Eigen to generate the Jacobi matrix and<br>
> right-hand-side. Is there a way to initialize a<br>
> BlockVector<FieldVector<double,1>> with a Eigen array or a C array without<br>
> copying?<br>
<br>
</span>Just a comment: There is not so much overhead when copying a<br>
vector. It does not need much time. In any case dune-istl will create<br>
quite a few vectors depending on the solver/preconditioner<br>
(e.g. BiCGStab creates 5, AMG approximately another 5).<br>
<br>
Saving just one for the cost of spending valuable thesis time might<br>
not be a good investment.<br>
<br>
And in OPM there is already quite some copying ;)<br>
<div class="HOEnZb"><div class="h5"><br>
Markus<br>
<br>
--<br>
Do you need more support with DUNE or HPC in general?<br>
<br>
Dr. Markus Blatt - HPC-Simulation-Software & Services <a href="http://www.dr-blatt.de" target="_blank">http://www.dr-blatt.de</a><br>
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany<br>
Tel.: <a href="tel:%2B49%20%280%29%20160%2097590858" value="+4916097590858">+49 (0) 160 97590858</a><br>
</div></div><br>_______________________________________________<br>
Dune mailing list<br>
<a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune" target="_blank">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
<br></blockquote></div><br></div>