This commit is contained in:
张壹 2025-01-16 15:17:21 +08:00
parent 0a7c3b495e
commit f25100399b

View File

@ -388,7 +388,7 @@ void gctl::regular_grid::load_netcdf_grid(std::string filename, mesh_data_type_e
new_data.create(NodeData, Scalar, node_num_, in_name[i], true, GCTL_BDL_MAX); new_data.create(NodeData, Scalar, node_num_, in_name[i], true, GCTL_BDL_MAX);
for (size_t j = 0; j < node_num_; j++) for (size_t j = 0; j < node_num_; j++)
{ {
new_data.datval_[i] = in_arr[i][j]; new_data.datval_[j] = in_arr[i][j];
} }
datalist_.push_back(new_data); datalist_.push_back(new_data);
@ -406,7 +406,7 @@ void gctl::regular_grid::load_netcdf_grid(std::string filename, mesh_data_type_e
new_data.create(ElemData, Scalar, ele_num_, in_name[i], true, GCTL_BDL_MAX); new_data.create(ElemData, Scalar, ele_num_, in_name[i], true, GCTL_BDL_MAX);
for (size_t j = 0; j < ele_num_; j++) for (size_t j = 0; j < ele_num_; j++)
{ {
new_data.datval_[i] = in_arr[i][j]; new_data.datval_[j] = in_arr[i][j];
} }
datalist_.push_back(new_data); datalist_.push_back(new_data);