If you're looking to get something like the norm of the difference
between two solutions... then you probably want to be using the
ExactSolution object and specifically the
"attach_reference_solution()" method.

Usually what you want to do is construct the object using your coarse
grid solution... then attach your fine grid solution as the reference
solution.  This will allow you to easily get out L2 and H1 errors
(differences) between the two solutions.

(Doh - I just looked at Roy's code and this is exactly what his code is doing)

Derek

On Wed, Jun 18, 2008 at 5:37 PM, Lorenzo Botti <[EMAIL PROTECTED]> wrote:
> I'm trying to use grid to grid to compare two solution on a mesh and
> the same mesh uniformly refined but I'm having some problems...
>
> Is it safe to use an mgf solution? I mean, will I be sure that my
> global node numbers match the solution order?
> I have changed all the elements loops with active elements iterator
> loops but I'm still having problems when comparing different meshes.
> Is it easier to use MeshFunction?
>
> Thanks for any help
> Lorenzo
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to