diff --git a/include/openmc/mesh.h b/include/openmc/mesh.h index 5d9b2f5a6c..aa1946896e 100644 --- a/include/openmc/mesh.h +++ b/include/openmc/mesh.h @@ -276,17 +276,17 @@ public: private: -//! Finds all intersections with faces of the mesh. -// -//! \param[in] start Staring location -//! \param[in] dir Normalized particle direction -//! \param[in] length of particle track -//! \param[out] Mesh intersections -void -intersect_track(const moab::CartVect& start, - const moab::CartVect& dir, - double track_len, - UnstructuredMeshHits& hits) const; + //! Finds all intersections with faces of the mesh. + // + //! \param[in] start Staring location + //! \param[in] dir Normalized particle direction + //! \param[in] length of particle track + //! \param[out] Mesh intersections + void + intersect_track(const moab::CartVect& start, + const moab::CartVect& dir, + double track_len, + UnstructuredMeshHits& hits) const; //! Calculates the volume for a given tetrahedron handle. // @@ -395,9 +395,10 @@ public: std::string filename_; // mbi_; //!< MOAB instance std::unique_ptr kdtree_; //!< MOAB KDTree instance diff --git a/src/mesh.cpp b/src/mesh.cpp index 63b6036b6b..eae4dd0ed9 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -2102,7 +2102,6 @@ UnstructuredMesh::write(std::string base_filename) const { #endif - //============================================================================== // Non-member functions //============================================================================== @@ -2126,6 +2125,9 @@ void read_meshes(pugi::xml_node root) } else if (mesh_type == "unstructured") { model::meshes.push_back(std::make_unique(node)); +#else + else if (mesh_type == "unstructured") { + fatal_error("Unstructured mesh support is disabled."); #endif } else { fatal_error("Invalid mesh type: " + mesh_type);