]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make compile without P4EST
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Jan 2013 07:23:41 +0000 (07:23 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Jan 2013 07:23:41 +0000 (07:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@28171 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_tools.cc

index b5267c426ff6f02b9d12e0bd2e35fdffd9fdc082..38b166525c9b60ee4eab65e6043cbd2b55eed592 100644 (file)
@@ -1,5 +1,5 @@
 //---------------------------------------------------------------------------
-//    $Id:$
+//    $Id$
 //    Version: $Name$
 //
 //    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by the deal.II authors
@@ -3008,7 +3008,7 @@ namespace DoFTools
     Assert (0<=direction && direction<space_dim,
             ExcIndexRange (direction, 0, space_dim));
 
-#ifdef DEBUG
+#if defined(DEBUG) && defined(DEAL_II_USE_P4EST)
     // Check whether we run on a non parallel mesh or on a
     // parallel::distributed::Triangulation in serial
     typedef parallel::distributed::Triangulation<DH::dimension,DH::space_dimension> PTRIA;
@@ -3100,7 +3100,7 @@ namespace DoFTools
     Assert(dim == space_dim,
            ExcNotImplemented());
 
-#ifdef DEBUG
+#if defined(DEBUG) && defined(DEAL_II_USE_P4EST)
     // Check whether we run on a non parallel mesh or on a
     // parallel::distributed::Triangulation in serial
     typedef typename parallel::distributed::Triangulation<DH::dimension,DH::space_dimension> PTRIA;

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.