]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed compilation when Assimp is not available.
authorLuca Heltai <luca.heltai@sissa.it>
Sat, 16 Sep 2017 15:41:43 +0000 (17:41 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Sat, 16 Sep 2017 15:41:43 +0000 (17:41 +0200)
source/grid/grid_in.cc

index 5b65eed9cfe9c4cbfd6e15c5908886c25dd249b6..85307b43ce9e470d81a578c88a646373f8eea6c1 100644 (file)
@@ -2574,6 +2574,7 @@ void GridIn<dim, spacedim>::read_assimp(const std::string &filename,
                                         const double tol,
                                         const bool ignore_unsupported_types)
 {
+#ifdef DEAL_II_WITH_ASSIMP
   // Only good for surface grids.
   AssertThrow(dim<3, ExcImpossibleInDim(dim));
 
@@ -2710,6 +2711,14 @@ void GridIn<dim, spacedim>::read_assimp(const std::string &filename,
     tria->create_triangulation_compatibility(vertices, cells, subcelldata);
   else
     tria->create_triangulation(vertices, cells, subcelldata);
+#else
+  (void) filename;
+  (void) mesh_index;
+  (void) remove_duplicates;
+  (void) tol;
+  (void) ignore_unsupported_types;
+  Assert(false, ExcNeedsAssimp());
+#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.