Hello Mihai,

I think the class SolutionTransfer is what you want.

Best Regards,
Markus



Am 18.02.10 17:15, schrieb mihai alexe:
Hello all,

How can I transfer a discrete solution from one grid to another? My two grids are fixed - I am reading them from a file, and grid #2 holds my discontinuous Galerkin solution u^h. Grid #2 has been obtained through refinement and coarsening directly from grid #1. I want to transfer u^h back from grid #2 to grid #1. Is there an API function for doing this? I came upon static void VectorTools::interpolate, and I am wondering how I can set up my "transfer" matrix beforehand such that
I successfully do the solution transfer.


Thank you
~~ Mihai

template<int dim, class InVector , class OutVector , int spacedim>

static void VectorTools::interpolate ( const DoFHandler <http://www.dealii.org/developer/doxygen/deal.II/classDoFHandler.html>< dim, spacedim > & /dof_1/,

        
const DoFHandler <http://www.dealii.org/developer/doxygen/deal.II/classDoFHandler.html>< dim, spacedim > & /dof_2/,

        
const FullMatrix <http://www.dealii.org/developer/doxygen/deal.II/classFullMatrix.html>< double <http://www.dealii.org/developer/doxygen/deal.II/classdouble.html> > & /transfer/,

        
        const InVector &    /data_1/,

        
        OutVector &         /data_2/        

        )




__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com


_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to