error: conversion from ‘Vector<double,[...]>’ to non-scalar type ‘Vector<float,[...]>’ requestedDear Maxi,
Did you try to call 'operator=' in the same line as you declare the variable? In that case, you still go through the (missing) constructor. It should work if you first declare the float vector in one statement and then assign in the next. We have this function:
Furthermore, there is also a function LinearAlgebra::distributed::Vector::copy_locally_owned_subrange_from() which also works with different number types, say double to float:
(In that case, no data is exchanged, and the vectors need to have compatible locally owned dofs before calling.)
Best,
Martin
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/1e88472a-6dce-4a26-ada0-197a82adea63%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dea...@googlegroups.com.