]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Clean up documentation a bit.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 13 Dec 2014 03:50:47 +0000 (21:50 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 14 Dec 2014 12:55:09 +0000 (06:55 -0600)
include/deal.II/base/function_parser.h

index 9296dbb68ce4ea3822f8b03acda9bd2e4648bb57..2a7417a1ed09efdd8192cc2e5b3cfd34af146dfb 100644 (file)
@@ -364,29 +364,39 @@ public:
 private:
 #ifdef DEAL_II_WITH_MUPARSER
   /**
-   * place for the variables for each thread
+   * Place for the variables for each thread
    */
   mutable Threads::ThreadLocalStorage<std::vector<double> > vars;
+
   /**
-   * the muParser objects for each thread (and one for each component)
+   * The muParser objects for each thread (and one for each component)
    */
   mutable Threads::ThreadLocalStorage<std::vector<mu::Parser> > fp;
 
   /**
-   * keep track of all the constants, required to initialize fp in each
-   * thread
+   * An array to keep track of all the constants, required to
+   * initialize fp in each thread.
    */
   std::map<std::string, double> constants;
+
   /**
-   * variable names, required to initialize fp in each thread
+   * An array for the variable names, required to initialize fp in
+   * each thread.
    */
   std::vector<std::string> var_names;
+
   /**
-   * the expressions, required to initialize fp in each thread
+   * An array of function expressions (one per component), required to
+   * initialize fp in each thread.
    */
   std::vector<std::string> expressions;
+
   /**
-   * this function will initialize fp on the current thread
+   * Initialize fp and vars on the current thread. This function may
+   * only be called once per thread. A thread can test whether the
+   * function has already been called by testing whether
+   * 'fp.get().size()==0' (not initialized) or >0 (already
+   * initialized).
    */
   void init_muparser() const;
 #endif

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.