#include <fstream>
-
- // Since we want to compare the
- // exactly known continuous solution
- // to the computed one, we need a
- // function object which represents
- // the continuous solution. On the
- // other hand, we need the right hand
- // side function, and that one of
- // course shares some characteristics
- // with the solution. In order to
- // reduce dependencies which arise if
- // we have to change something in
- // both classes at the same time, we
+ // @sect3{Equation data}
+
+ // Before implementing the classes
+ // that actually solve something, we
+ // first declare and define some
+ // function classes that represent
+ // right hand side and solution
+ // classes. Since we want to compare
+ // the exactly known continuous
+ // solution to the computed one, we
+ // need a function object which
+ // represents the continuous
+ // solution. On the other hand, we
+ // need the right hand side function,
+ // and that one of course shares some
+ // characteristics with the
+ // solution. In order to reduce
+ // dependencies which arise if we
+ // have to change something in both
+ // classes at the same time, we
// exclude the common characteristics
// of both functions into a base
// class.
};
+ // @sect3{The Laplace solver class}
// Then we need the class that does
// all the work. It is mostly the
}
};
+ // @sect3{Main function}
// The main function is mostly as
// before. The only difference is
# define M_PI 3.14159265358979323846
#endif
+ // @sect3{AdvectionProblem class declaration}
// Following we declare the main
// class of this program. It is very
+ // @sect3{Equation data declaration}
// Next we declare a class that
// describes the advection
+ // @sect3{GradientEstimation class declaration}
// Now, finally, here comes the class
// that will compute the difference
-
+ // @sect3{AdvectionProblem class implementation}
// Now for the implementation of the
+ // @sect3{GradientEstimation class implementation}
// Now for the implementation of the
// ``GradientEstimation'' class. The
};
+ // @sect3{Main function}
+
// The ``main'' function is exactly
// like in previous examples, with
// the only difference in the name of