]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add forgotten file.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Jun 2010 14:47:21 +0000 (14:47 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Jun 2010 14:47:21 +0000 (14:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@21175 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/types.h [new file with mode: 0644]

diff --git a/deal.II/base/include/base/types.h b/deal.II/base/include/base/types.h
new file mode 100644 (file)
index 0000000..f557907
--- /dev/null
@@ -0,0 +1,74 @@
+//---------------------------------------------------------------------------
+//    $Id$
+//    Version: $Name$
+//
+//    Copyright (C) 2009 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.
+//
+//---------------------------------------------------------------------------
+#ifndef __deal2__types_h
+#define __deal2__types_h
+
+
+#include <base/config.h>
+
+DEAL_II_NAMESPACE_OPEN
+
+/**
+ * A namespace in which we declare typedefs for types used in deal.II,
+ * as well as special values for these types.
+ */
+namespace types
+{
+
+                                  /**
+                                   * The type used to denote
+                                   * subdomain_ids of cells.
+                                   *
+                                   * See the @ref GlossSubdomainId
+                                   * "glossary" for more information.
+                                   */
+  typedef unsigned int subdomain_id_t;
+
+                                  /**
+                                   * A special id for an invalid
+                                   * subdomain id. This value may not
+                                   * be used as a valid id but is
+                                   * used, for example, for default
+                                   * arguments to indicate a
+                                   * subdomain id that is not to be
+                                   * used.
+                                   *
+                                   * See the @ref GlossSubdomainId
+                                   * "glossary" for more information.
+                                   */
+  const unsigned int invalid_subdomain_id = static_cast<subdomain_id_t>(-1);
+
+                                  /**
+                                   * The subdomain id assigned to a
+                                   * cell whose true subdomain id we
+                                   * don't know, for example because
+                                   * it resides on a different
+                                   * processor on a mesh that is kept
+                                   * distributed on many
+                                   * processors. Such cells are
+                                   * called "artificial".
+                                   *
+                                   * See the glossary entries on @ref
+                                   * GlossSubdomainId "subdomain ids"
+                                   * and @ref GlossArtificialCell
+                                   * "artificial cells" as well as
+                                   * the @ref distributed module for
+                                   * more information.
+                                   */
+  const unsigned int artificial_subdomain_id = static_cast<subdomain_id_t>(-2);
+}
+
+
+DEAL_II_NAMESPACE_CLOSE
+
+#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.