When doing that in my code, I get the error
error: conversion from ‘Vector<double,[...]>’ to non-scalar type ‘Vector<
float,[...]>’ requested

thus I assume I have to implement it myself...

Am Freitag, 13. September 2019 17:53:37 UTC+2 schrieb Wolfgang Bangerth:
>
> 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] 
> <javascript:> 
>                             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/1e88472a-6dce-4a26-ada0-197a82adea63%40googlegroups.com.

Reply via email to