Skip to content

Commit

Permalink
fix printout
Browse files Browse the repository at this point in the history
  • Loading branch information
mtao committed Jan 7, 2025
1 parent 0e78b0b commit b122da5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ add_subdirectory("CDT/wmtk/components/CDT")
add_subdirectory("edge_insertion/wmtk/components/edge_insertion")

add_subdirectory("simplicial_embedding/wmtk/components/simplicial_embedding")
add_subdirectory("regular_space/wmtk/components/regular_space")

# add_component("export_cache")
# add_component("import_cache")
# add_component("mesh_info")
add_component("regular_space")
# add_component("tag_intersection")
# add_component("wildmeshing")
# add_component("get_all_meshes")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
set(COMPONENT_NAME "regular_space")
add_component(${COMPONENT_NAME})

if(NOT ${WMTK_ENABLE_COMPONENT_${COMPONENT_NAME}})
return()
endif()
set(SRC_FILES
internal/RegularSpaceOptions.cpp
internal/RegularSpaceOptions.hpp
internal/RegularSpace.hpp
internal/RegularSpace.cpp
regular_space.hpp
regular_space.cpp
#regular_space.hpp
#regular_space.cpp
)


#CURRENT_COMPONENT_LIB_NAME is set from the main cmake
target_sources(${CURRENT_COMPONENT_LIB_NAME} PRIVATE ${SRC_FILES})
target_sources(wmtk_${COMPONENT_NAME} PRIVATE ${SRC_FILES})
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void RegularSpace::regularize_tags()
break;
}
case PrimitiveType::Triangle: { // face split
composite::TriFaceSplit op_face_split(m_mesh);
composite::TriFaceSplit op_face_split(static_cast<TriMesh&>(m_mesh));
op_face_split.add_invariant(std::make_shared<TodoInvariant>(
m_mesh,
std::get<attribute::TypedAttributeHandle<int64_t>>(todo_handle.handle())));
Expand Down Expand Up @@ -209,7 +209,7 @@ void RegularSpace::regularize_tags()
case PrimitiveType::Tetrahedron: {
log_and_throw_error("Regular space component not implemented for TetMeshes.");
}
default: log_and_throw_error("unknown primitive type: {}", ta.m_ptype); break;
default: log_and_throw_error("unknown primitive type: {}", primitive_type_name(ta.m_ptype)); break;
}
}
}
Expand Down

0 comments on commit b122da5

Please sign in to comment.