This commit is contained in:
张壹 2025-02-23 10:35:11 +08:00
parent ef6ab8caa7
commit 1ddfdf227f

View File

@ -574,7 +574,7 @@ void gctl::mesh_io::select_elements(std::string dat_name, mesh_data_type_e dtype
if (!selected_groups_.empty()) selected_groups_.clear();
int d_id = if_saved_data(dat_name, dtype);
if (d_id == DEFAULT_INVALID_TAG) throw std::runtime_error("[gctl::mesh_io::select_elements] Data not found.");
if (d_id == -1) throw std::runtime_error("[gctl::mesh_io::select_elements] Data not found.");
if (dtype == ElemData)
{