From: kanschat Date: Sun, 5 Dec 2010 18:06:54 +0000 (+0000) Subject: update documentation X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8237bb90cc220417b892c14993533239c015837;p=dealii-svn.git update documentation git-svn-id: https://svn.dealii.org/trunk@22919 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/numerics/mesh_worker.h b/deal.II/include/deal.II/numerics/mesh_worker.h index 8ea5441e97..ad307a87fe 100644 --- a/deal.II/include/deal.II/numerics/mesh_worker.h +++ b/deal.II/include/deal.II/numerics/mesh_worker.h @@ -174,9 +174,30 @@ template class MGDoFHandler; namespace MeshWorker { /** - * The class providing the scrapbook to fill with local integration - * results. These can be values, local contributions to forms or cell - * and face matrices. + * The class providing the scrapbook to fill with results of local + * integration. Depending on the tesk the mesh worker loop is + * performing, local results can be of different types. They have + * in common that they are the result of local integration over a cell + * or face. Their actual type is determined by the Assember using + * them. It is also the assembler setting the arrays of local results + * to the sizes needed. Here is a list of the provided data types and + * the assembers using them: + * + *
    + *
  1. n_values() numbers accessed with value(), and stored in the + * data member #J. + * + *
  2. n_vectors() vectors of the length of dofs on this cell, + * accessed by vector(), and stored in #R. + *
  3. n_matrices() matrices of dimension dofs per cell in each + * direction, accessed by matrix() with second argument + * false. These are stored in #M1, and they are the matrices + * coupling degrees of freedom in the same cell. For fluxes across + * faces, there is an additional set #M2 of matrices of the same size, but + * the dimension of the matrices being according to the degrees of + * freedom on both cells. These are accessed with matrix(), using the + * second argument true. + *
* * The local matrices initialized by reinit() of the info object and * then assembled into the global system by Assembler classes. @@ -187,86 +208,23 @@ namespace MeshWorker template class LocalResults { - private: - /** - * Initialize a single local - * matrix block. A helper - * function for initialize() - */ - void initialize_local(MatrixBlock >& M, - const unsigned int row, - const unsigned int col); - public: - void initialize_numbers(const unsigned int n); - void initialize_vectors(const unsigned int n); - /** - * Allocate @p n local - * matrices. Additionally, - * set their block row and - * column coordinates to - * zero. The matrices - * themselves are resized by - * reinit(). - * - * The template parameter @p - * MatrixPtr should point to - * a MatrixBlock - * instantiation in order to - * provide row and column info. - */ - void initialize_matrices(unsigned int n, bool both); - - /** - * Allocate a local matrix - * for each of the global - * ones in @p - * matrices. Additionally, - * set their block row and - * column coordinates. The - * matrices themselves are - * resized by reinit(). - */ - template - void initialize_matrices(const MatrixBlockVector& matrices, - bool both); - - /** - * Allocate a local matrix - * for each of the global - * level objects in @p - * matrices. Additionally, - * set their block row and - * column coordinates. The - * matrices themselves are - * resized by reinit(). - */ - template - void initialize_matrices(const MGMatrixBlockVector& matrices, - bool both); - - /** - * Initialize quadrature values - * to nv values in - * np quadrature points. - */ - void initialize_quadrature(unsigned int np, unsigned int nv); - - /** - * Reinitialize matrices for - * new cell. Resizes the - * matrices for hp and sets - * them to zero. - */ - void reinit(const BlockIndices& local_sizes); - /** * The number of scalar values. + * + * This number is set to a + * nonzero value by Assember::CellsAndFaces + * */ unsigned int n_values () const; /** * The number of vectors. + * + * This number is set to a + * nonzero value by + * Assember::ResidualSimple and + * Assember::ResidualLocalBlocksToGlobalBlocks. */ unsigned int n_vectors () const; @@ -344,12 +302,115 @@ namespace MeshWorker */ number quadrature_value(unsigned int k, unsigned int i) const; + /** + * Initialize the vector with + * scalar values. + * + * @note This function is + * usually only called by the + * assembler. + */ + void initialize_numbers(const unsigned int n); + /** + * Initialize the vector with + * vector values. + * + * @note This function is + * usually only called by the + * assembler. + */ + void initialize_vectors(const unsigned int n); + /** + * Allocate @p n local + * matrices. Additionally, + * set their block row and + * column coordinates to + * zero. The matrices + * themselves are resized by + * reinit(). + * + * The template parameter @p + * MatrixPtr should point to + * a MatrixBlock + * instantiation in order to + * provide row and column info. + * + * @note This function is + * usually only called by the + * assembler. + */ + void initialize_matrices(unsigned int n, bool both); + + /** + * Allocate a local matrix + * for each of the global + * ones in @p + * matrices. Additionally, + * set their block row and + * column coordinates. The + * matrices themselves are + * resized by reinit(). + * + * @note This function is + * usually only called by the + * assembler. + */ + template + void initialize_matrices(const MatrixBlockVector& matrices, + bool both); + + /** + * Allocate a local matrix + * for each of the global + * level objects in @p + * matrices. Additionally, + * set their block row and + * column coordinates. The + * matrices themselves are + * resized by reinit(). + * + * @note This function is + * usually only called by the + * assembler. + */ + template + void initialize_matrices(const MGMatrixBlockVector& matrices, + bool both); + + /** + * Initialize quadrature values + * to nv values in + * np quadrature points. + */ + void initialize_quadrature(unsigned int np, unsigned int nv); + + /** + * Reinitialize matrices for + * new cell. Does not resize + * any of the data vectors + * stored in this object, but + * resizes the vectors in #R + * and the matrices in #M1 and + * #M2 for hp and sets them to + * zero. + */ + void reinit(const BlockIndices& local_sizes); + /** * The memory used by this object. */ unsigned int memory_consumption () const; private: + /** + * Initialize a single local + * matrix block. A helper + * function for initialize() + */ + void initialize_local(MatrixBlock >& M, + const unsigned int row, + const unsigned int col); + /** * The local numbers, * computed on a cell or on a @@ -387,6 +448,9 @@ namespace MeshWorker std::vector > > M2; /** + * @todo Shouldn't this be in + * IntegrationInfo? Guido + * * Values in quadrature points. */ std::vector > quadrature_values;