Hi Greg,

good that you find a working solution! However, I would suggest against 
using `VectorTools::interpolate_to_different_mesd` but use 
`SolutionTransfer` or `parallel::distributed::SolutionTransfer` to move the 
refinement information from a coarse mesh to a fine mesh. You can take a 
look at the tutorial how these classes are used.

Hope this helps,
Peter
On Saturday, 11 November 2023 at 02:24:23 UTC+1 Wolfgang Bangerth wrote:

> On 11/10/23 17:43, Yuan Wang wrote:
> > And I just found that the bug comes from feeding Vector<int> to
> > interpolate_to_different_mesh() while int is not a valid
> > VectorType::value_type therein. Changing int to double fixes it.
>
> Yes, that is right. We do not seem to enforce this, but we are generally 
> expecting Vector<T> to only be instantiated for T=some floating point type.
>
> 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/3e1b26f7-73fe-45de-922b-81d9fa0d38e3n%40googlegroups.com.

Reply via email to