-// 2D XDA meshes
-#if deal_II_dimension == 2
-
template <>
void GridIn<2>::read_xda (std::istream &in)
{
tria->create_triangulation_compatibility (vertices, cells, subcelldata);
}
-#endif // #if deal_II_dimension == 2
-
-
-// 3-D XDA meshes
-#if deal_II_dimension == 3
template <>
void GridIn<3>::read_xda (std::istream &in)
tria->create_triangulation_compatibility (vertices, cells, subcelldata);
}
-#endif // #if deal_II_dimension == 3
}
-#if deal_II_dimension == 1
-
template <>
void GridIn<1>::read_netcdf (const std::string &)
{
AssertThrow(false, ExcImpossibleInDim(1));
}
-#endif
-
-
-
-#if deal_II_dimension == 2
template <>
void GridIn<2, 3>::read_netcdf (const std::string &) {
#endif
}
-#endif
-
-#if deal_II_dimension == 3
template <>
void GridIn<3>::read_netcdf (const std::string &filename)
#endif
}
-#endif
template <int dim, int spacedim>
void GridIn<dim, spacedim>::parse_tecplot_header(std::string &header,
-#if deal_II_dimension == 2
template <>
void GridIn<2>::read_tecplot (std::istream &in)
tria->create_triangulation_compatibility (vertices, cells, subcelldata);
}
-#endif
+
template <int dim, int spacedim>
void GridIn<dim, spacedim>::read_tecplot(std::istream &)
}
-#if deal_II_dimension == 2
template <>
void
<< "pause -1" << std::endl;
}
-#endif
-
-#if deal_II_dimension == 3
template <>
void
};
}
-#endif
+
template <int dim, int spacedim>
void GridIn<dim, spacedim>::read (const std::string& filename,
//explicit instantiations
-template class GridIn<deal_II_dimension>;
-
-#if deal_II_dimension != 3
-template class GridIn<deal_II_dimension, deal_II_dimension+1>;
-#endif
+#include "grid_in.inst"
DEAL_II_NAMESPACE_CLOSE
--- /dev/null
+//---------------------------------------------------------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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.
+//
+//---------------------------------------------------------------------------
+
+for (deal_II_dimension : DIMENSIONS)
+ {
+ template class GridIn<deal_II_dimension>;
+
+#if deal_II_dimension != 3
+ template class GridIn<deal_II_dimension, deal_II_dimension+1>;
+#endif
+ }
+