Sorry, my bad. It works for BlockVector. However, there is a discrepancy on 
deal.ii manual. 

Below is from the deal.ii manual about SolutionTransfer module: 
https://www.dealii.org/current/doxygen/deal.II/classSolutionTransfer.html#a1171abf820e35e02304017ef3daeeaa5

"""
Although the refine_interpolate functions are allowed to be called multiple 
times, e.g. for interpolating several solution vectors, there is the 
following possibility of interpolating several functions simultaneously.
std::vector<Vector<double> > solutions_old(n_vectors, Vector<double> 
<https://www.dealii.org/current/doxygen/deal.II/classVector.html> (n));
...
std::vector<Vector<double> 
<https://www.dealii.org/current/doxygen/deal.II/classVector.html> > 
solutions(n_vectors, Vector<double> 
<https://www.dealii.org/current/doxygen/deal.II/classVector.html> (n));
*soltrans.refine_interpolate(solutions_old, solutions);*
 """
However, *refine_interpolate() cannot take *std::vector<VectorType>. Only 
*interpolate*() has an interface for std::vector<VectorType>.

Best,

Tao 


On Tuesday, January 23, 2024 at 4:23:15 PM UTC-5 Wolfgang Bangerth wrote:

> On 1/23/24 13:03, Tao Jin wrote:
> > 
> > I am trying to use the SolutionTransfer capability of dealii to 
> interpolate a 
> > solution from an old mesh to a new mesh. The solution is stored in a 
> > BlockVector. My understanding is that current solution transfer 
> functions can 
> > only interpolate Vector, not BlockVector. Am I right?
>
> No, this is not true. Have you tried? It should work just fine.
> Best
> W.
>
> -- 
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: bang...@colostate.edu
> 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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/df3690c7-1327-429d-864f-2745e1339a90n%40googlegroups.com.

Reply via email to