]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Merge from mainline.
authorturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Apr 2013 20:16:03 +0000 (20:16 +0000)
committerturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Apr 2013 20:16:03 +0000 (20:16 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29345 0785d39b-7218-0410-832d-ea1e28bc413d

12 files changed:
1  2 
deal.II/doc/doxygen/headers/global_dof_index.h
deal.II/examples/step-42/step-42.cc
deal.II/include/deal.II/base/exceptions.h
deal.II/include/deal.II/dofs/dof_accessor.templates.h
deal.II/include/deal.II/lac/sparse_matrix.h
deal.II/include/deal.II/lac/sparse_matrix.templates.h
deal.II/source/grid/grid_generator.cc
tests/bits/sparse_matrix_add_entries_01.cc
tests/deal.II/memory_consumption_01.cc
tests/lac/constraints_c1.cc
tests/lac/constraints_c1_02.cc
tests/matrix_free/matrix_vector_common.h

index 8481ca779fac0e5a35856097c4ef6c250436cc4a,0000000000000000000000000000000000000000..fc6ae6c03ad5f10061acff146b5f54f69974a9dd
mode 100644,000000..100644
--- /dev/null
@@@ -1,62 -1,0 +1,61 @@@
-  * @page GlobalDoFIndex When to use types::global_dof_index instead of
-  * unsigned int
 +//-------------------------------------------------------------------------
 +//    $Id: coding_conventions.h 29312 2013-04-17 13:00:07Z turcksin $
 +//    Version: $Name$
 +//
 +//    Copyright (C) 2013 by the deal.II authors
 +//
 +//    This file is subject to QPL and may not be  distributed
 +//    without copyright and license information. Please refer
 +//    to the file deal.II/doc/license.html for the  text  and
 +//    further information on this license.
 +//
 +//-------------------------------------------------------------------------
 +
 +/**
++ * @page GlobalDoFIndex When to use types::global_dof_index instead of unsigned int
 + *
 + * When the 64-bits version of deal.II is used, it becomes necessary to
 + * declare as types::global_dof_index (unsigned long long int) instead of
 + * unsigned int. Here, we want to clarify when types::global_dof_index must be
 + * used.
 + *
 + * <dl>
 + *
 + * <dt class="glossary">@anchor GlobalDoFIndexBlockIndices
 + * <b>BlockIndices</b></dt>
 + * <dd>
 + * The number of blocks is an unsigned int because the number is expected to
 + * be low, i.e less than four billions. However, the size of the block is a
 + * types::global_dof_index because each block can be arbitrary large.
 + * </dd>
 + *
 + * <dt class="glossary">@anchor GlobalDoFIndexCell <b>Cell</b></dt>
 + * <dd>
 + * The ID of cell is not unique. Cells with different levels of refinement
 + * and/or on different processors can have the same ID. Thus, all the data
 + * associated to cells can be unsigned int.
 + * </dd>
 + *
 + * <dt class="glossary">@anchor GlobalDoFIndexDoFHandler
 + * <b>DoFHandler</b></dt>
 + * <dd>
 + * The ID of each degree of freedom is unique. Therefore, degrees of freedom
 + * are types::global_dof_index.
 + * </dd>
 + *
 + * <dt class="glossary">@anchor GlobalDoFIndexFullMatrix
 + * <b>FullMatrix</b></dt>
 + * <dd>
 + * The numbers of row and column are types::global_dof_index even if it is not
 + * expected that someone will create a FullMatrix with so many entries.
 + * However, ConstraintMatrix is templated on the matrix type and thus, the
 + * size of a FullMatrix has to be of the same type than the size of
 + * SparseMatrix.
 + * </dd>
 + *
 + * <dt class="glossary">@anchor GlobalDoFIndexSparseMatrix
 + * <b>SparseMatrix</b></dt>
 + * <dd>
 + * The size SparseMatrix can be arbitrary large therefore,
 + * types::global_do_index is used.
 + */
Simple merge
index 9e979c178f6c151298142c621d48db6905792a53,94867d5767d8e20d2b31ff95b85e6c639caa545d..59b93fd0ffaa4c5de30d29913df0213fb899d340
@@@ -915,34 -805,6 +824,9 @@@ namespace StandardException
  #define AssertIndexRange(index,range) Assert((index) < (range), \
                                               ExcIndexRange((index),0,(range)))
  
- /*
-  * Unfortunately, the following must be repeated for each library,
-  * since we cannot have ifdefs in macros.
-  */
- /**
-  * Assert support for the LAPACK library
-  */
- #ifdef DEAL_II_WITH_LAPACK
- #  define AssertLAPACK {}
- #else
- #  define AssertLAPACK Assert(false, ExcNeedsLAPACK())
- #endif
- /**
-  * Assert support for the UMFPACK library
-  */
- #ifdef DEAL_II_WITH_UMFPACK
- #  define AssertUMFPACK {}
- #else
- #  define AssertUMFPACK Assert(false, ExcNeedsUMFPACK())
- #endif
 +#define AssertGlobalIndexRange(index,range) Assert((index) < (range), \
 +                                                 ExcIndexRange<types::global_dof_index>((index),0,(range)))
 +
  using namespace StandardExceptions;
  
  DEAL_II_NAMESPACE_CLOSE
Simple merge
Simple merge
Simple merge

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.