<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I am sorry that I stated my problem
      incorrectly. The AnalyticGridFunctin of course does work. <br>
      <br>
      By using it I stumbled upon the problem that I can't use its
      traits to derive the correct type for the position in the
      evaluateGlobal method.<br>
      <br>
      That is, as correctly described by Jö, because the base class is
      GridFunction which evaluates element-local.<br>
      <br>
      Now I was wondering <br>
      <br>
      1) if DomainType in general should be dim- or dimworld-sized <br>
      2) and in particular if it would make life easier when the
      AnalyticGridFunctionTraits exports, maybe additionally, a
      DomainType in dimworld?<br>
      <br>
      Best,<br>
      Nicolas<br>
      <br>
      P.S.: <br>
      <br>
      <font face="serif">template<typename GV, typename RF><br>
        class ExampleAnalyticalGridFunction :<br>
            public
        Dune::PDELab::AnalyticGridFunctionBase<Dune::PDELab::AnalyticGridFunctionTraits<GV,RF,1>,ExampleAnalyticalGridFunction<GV,RF>
        ><br>
        {<br>
        public:<br>
            typedef
        Dune::PDELab::AnalyticGridFunctionTraits<GV,RF,1> Traits;<br>
            typedef
        Dune::PDELab::AnalyticGridFunctionBase<Traits,ExampleAnalyticalGridFunction<GV,RF>
        > B;<br>
        <br>
            ExampleAnalyticalGridFunction (const GV& gv) : B(gv) {}<br>
        <br>
            // xg is the global coordinate vector of the integration
        point.<br>
            inline void evaluateGlobal (const typename
        Traits::DomainType& xg, typename Traits::RangeType& y)
        const <br>
        //    inline void evaluateGlobal (const typename
        Dune::FieldVector<double,dimworld> &xg, typename
        Traits::RangeType& y) const <br>
            {<br>
                y= 1.0;//do something<br>
            }<br>
        };</font><br>
    </div>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
_____________________________________________________________________

Dipl.-Ing. Nicolas Schwenck
                                            
University of Stuttgart
Department of Hydromechanics and Modelling of Hydrosystems

Pfaffenwaldring 61                           phone: +49 711 685 64736
GER-70569 Stuttgart                          fax:   +49 711 685 60430

            email: <a class="moz-txt-link-abbreviated" href="mailto:nicolas.schwenck@iws.uni-stuttgart.de">nicolas.schwenck@iws.uni-stuttgart.de</a>
                url: <a class="moz-txt-link-abbreviated" href="http://www.hydrosys.uni-stuttgart.de">www.hydrosys.uni-stuttgart.de</a>
_____________________________________________________________________
</pre>
  </body>
</html>