]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use GeometryInfo instead of home-brew constant. Apart from that, the old value was...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 4 Jun 1998 07:36:32 +0000 (07:36 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 4 Jun 1998 07:36:32 +0000 (07:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@377 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/data_io.h

index ccdfe0204ab10137bca0a9eab8c9ded20b4ebc41..ff5ce2d836f9ae052ab6543ec8aff0f38eabde5a 100644 (file)
@@ -1,10 +1,11 @@
-/*----------------------------   io.h     ---------------------------*/
+/*----------------------------   data_io.h     ---------------------------*/
 /*      <Id:>                 */
 #ifndef __data_io_H
 #define __data_io_H
-/*----------------------------   io.h     ---------------------------*/
+/*----------------------------   data_io.h     ---------------------------*/
 
 #include <base/exceptions.h>
+#include <grid/geometry_info.h>
 #include <vector>
 #include <string>
 
@@ -25,7 +26,7 @@ class dVector;
  */
 template <int dim>
 struct CellData {
-    int           vertices[2<<dim];
+    int           vertices[GeometryInfo<dim>::vertices_per_cell];
     unsigned char material_id;
 };
 
@@ -533,7 +534,7 @@ class DataOut {
                
 
 
-/*----------------------------   io.h     ---------------------------*/
+/*----------------------------   data_io.h     ---------------------------*/
 /* end of #ifndef __data_io_H */
 #endif
-/*----------------------------   io.h     ---------------------------*/
+/*----------------------------   data_io.h     ---------------------------*/

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.