[dune-pdelab] Inquiry

Jared Okiro jaokiro at gmail.com
Fri Sep 30 15:30:20 CEST 2011


Thanks Joe for the information.
I now need to calculate the L_infinity error and L1_error for my problem.
I can see the function to use for L_infinity norm, but not sure of the
function to use
for the L1_error. Any advice please will be highly appreciated.
I am wishing everyone a nice long weekend.

Kind regards,
Jared

On Sun, Sep 25, 2011 at 11:27 AM, Jö Fahlke <jorrit at jorrit.de> wrote:

> Am Fri, 23. Sep 2011, 17:02:06 +0200 schrieb Jared Okiro:
> > I am requesting for clarification on the example code in the directory
> > dune-pdelab-howto/src/convection-diffusion/dgdiffusion.cc.
> > In the section for calculating the L2 error(commented), there is a line
> like
> > this:
> >
> > *typedef DifferenceSquaredAdapter<G,UDGF> DifferenceSquared;*
>
> Well, DifferenceSquaredAdapter is defined on line 85 in the same file.  It
> says there:
>
> | /*! \brief Adapter returning ||f1(x)-f2(x)||^2 for two given grid
> functions
> |
> |   \tparam T1  a grid function type
> |   \tparam T2  a grid function type
> | */
> | template<typename T1, typename T2>
> | class DifferenceSquaredAdapter
>
> So both template parameters must be Grid functions, one will usually be
> your
> computed solution, the other one a reference solution (for instance an
> analytic solution or a solution computed on a finer mesh).  "G" in the
> comment
> appears to be a misnomer, probably due to bitrot.
>
> Bye,
> Jö.
>
> --
> Jorrit (Jö) Fahlke, Interdisciplinary Center for Scientific Computing,
> Heidelberg University, Im Neuenheimer Feld 368, D-69120 Heidelberg
> Tel: +49 6221 54 8890 Fax: +49 6221 54 8884
>
> Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das
> nennen sie ihren Standpunkt.
> -- A. Einstein
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQIVAwUBTn7z6+mx9CKgc0OWAQjK9A//R253V0CjHCwQevZT7AuEa3gwz7uuXkTl
> wxO+4Tm2OySytmfTbf/2MdjvIEmOn/7j27I0FCWDtS9vAiP4mKmiXbMtJKiQhvRV
> FFSfJCHhA4JcJeu08OpKUFdV6J/q34iW0OzfRsciRf9mxEAE0ybPMUXKMTVBB+XL
> V6f+V0mkCPeV7xkwGKl6oTo/m3McyjbbJhSCCzVY7ikp8VpMxfPR3vRM9C2gmGOJ
> 3XaCXMMjqW9jYkNss749B3dTsFnDwq3LpMEnwS/FSC5RV2ePRr+IfmmvafnDTLjg
> YB3/vZSGxP/3FhqlYgpNxCeEVIBaguWXplxLqpii64kLmGn3h7UOPRvv4UYAbhDU
> G1BqJjK6DU6KaBIcU94SPXqYGO1erOkUVdlkWUXfQ8vVvnyQBw9/971CtcOWXr2V
> mgJ9spLR5dsyapqkEFsFKMe1Ac7WLhbfx6mpVDN7ezTtqSt7LVMLn81/NbIE50Yf
> bZQ4AR8ZMu7J/1YZXyU0aVtG9FSJIaKSiejr66GNRBC+3FcKKyF2yLRuNzJZ7zid
> kbHSrwnhGZSg96rdxbKPOlM5btleOsvU4o4WB8dO3nodyQQL1WB4Gp3raQgw59zP
> 9cLFIwkQTRt8TjBMFZUJLJwJI06tKOL5wroe68U9VNVROeq6XdwKJytWfExOgYJP
> QKK82sDRkDo=
> =hotQ
> -----END PGP SIGNATURE-----
>
>


-- 
Jared Ouma Okiro,
Institute for Analysis and Numerics,
Otto-von- Guericke Universität,
Universitätsplatz 02, Gebaude 02 / 115
39106 Magdeburg, Germany
Office Tel: +493916712660
Fax:         +493916718073
Mobile:     +4917657479787
Home Tel: +4939155917376
Email:jared.okiro at st.ovgu.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20110930/2648f8e7/attachment.htm>


More information about the dune-pdelab mailing list