On 9/13/19 8:39 AM, 'Maxi Miller' via deal.II User Group wrote:
> In my program I have to reuse old solutions (due to time dependency), 
> but would like to use them both as double values and float values 
> (preconditioning does not require double values). Unfortunately my old 
> solution is only given as a 
> LinearAlgebra::distributed::Vector<double>(), but I have to use a 
> LinearAlgebra::distributed::Vector<float>. Direct conversion via 
> LinearAlgebra::distributed::Vector<float> float_solution(old_solution) 
> does not work. Are there other ways for conversion?

I think that the other classes all have conversion constructors or 
conversion operator=. If this class doesn't have one, you probably want 
to add it to support what you need. It should be a relatively easy patch 
to write, and we'd of course be happy to take it, as always!

Best
  W.

-- 
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                            www: http://www.math.colostate.edu/~bangerth/

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/1d2dd741-5596-bfff-c98a-ce9dc82d24b9%40colostate.edu.

Reply via email to