mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Removing some old code that git re-added on rebase.
This commit is contained in:
parent
700d62c9ef
commit
a5a98fdfcd
2 changed files with 0 additions and 47 deletions
|
|
@ -73,16 +73,6 @@ if(libmesh)
|
|||
find_package(LIBMESH REQUIRED)
|
||||
endif()
|
||||
|
||||
#===============================================================================
|
||||
# libmesh Unstructured Mesh Support
|
||||
#===============================================================================
|
||||
if(libmesh)
|
||||
find_package(LIBMESH REQUIRED)
|
||||
set(LIBMESH_LIBRARIES mesh_opt)
|
||||
set(LIBMESH_INCLUDE_DIRS "${LIBMESH}/../include/")
|
||||
link_directories(${LIBMESH})
|
||||
endif()
|
||||
|
||||
#===============================================================================
|
||||
# HDF5 for binary output
|
||||
#===============================================================================
|
||||
|
|
@ -428,12 +418,6 @@ if(libmesh)
|
|||
target_link_libraries(libopenmc PkgConfig::LIBMESH)
|
||||
endif()
|
||||
|
||||
if(libmesh)
|
||||
target_compile_definitions(libopenmc PRIVATE LIBMESH)
|
||||
target_link_libraries(libopenmc ${LIBMESH_LIBRARIES})
|
||||
target_include_directories(libopenmc PRIVATE ${LIBMESH_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
#===============================================================================
|
||||
# openmc executable
|
||||
#===============================================================================
|
||||
|
|
|
|||
31
src/mesh.cpp
31
src/mesh.cpp
|
|
@ -2344,37 +2344,6 @@ double LibMesh::volume(int bin) const { return m_->elem_ref(bin).volume(); }
|
|||
|
||||
#endif // LIBMESH
|
||||
|
||||
UnstructuredMeshBase::UnstructuredMeshBase(pugi::xml_node node) : Mesh(node) {
|
||||
// check the mesh type
|
||||
if (check_for_node(node, "type")) {
|
||||
auto temp = get_node_value(node, "type", true, true);
|
||||
if (temp != "unstructured") {
|
||||
fatal_error("Invalid mesh type: " + temp);
|
||||
}
|
||||
}
|
||||
|
||||
// get the filename of the unstructured mesh to load
|
||||
if (check_for_node(node, "mesh_file")) {
|
||||
filename_ = get_node_value(node, "mesh_file");
|
||||
}
|
||||
else {
|
||||
fatal_error("No filename supplied for unstructured mesh with ID: " +
|
||||
std::to_string(id_));
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef LIBMESH
|
||||
LibMesh::LibMesh(pugi::xml_node node) : UnstructuredMeshBase(node) {
|
||||
libMesh::LibMeshInit init(0, NULL);
|
||||
|
||||
m_ = std::unique_ptr<libMesh::Mesh>(new libMesh::Mesh(init.comm(), 3));
|
||||
m_->read(filename_);
|
||||
|
||||
point_locator_ = m_->sub_point_locator();
|
||||
m_->find_neighbors();
|
||||
}
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
// Non-member functions
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue