File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1358,7 +1358,7 @@ template <
13581358 if (ret_val != MPI_SUCCESS) {
13591359 std::cerr << __FILE__ << " :" << __LINE__
13601360 << " Process " << this ->rank
1361- << " Couldn't write cell list to file " << name
1361+ << " Couldn't write number of cells to file " << name
13621362 << " : " << Error_String ()(ret_val)
13631363 << std::endl;
13641364 return false ;
@@ -1577,7 +1577,11 @@ template <
15771577 // calculate where local cell list will begin in output file
15781578 uint64_t cell_list_start = (uint64_t ) offset;
15791579 for (size_t i = 0 ; i < (size_t ) this ->rank ; i++) {
1580- cell_list_start += all_number_of_cells[i] * 2 * sizeof (uint64_t );
1580+ if (write_cell_ids and write_data_offsets) {
1581+ cell_list_start += all_number_of_cells[i] * 2 * sizeof (uint64_t );
1582+ } else if (write_cell_ids or write_data_offsets) {
1583+ cell_list_start += all_number_of_cells[i] * sizeof (uint64_t );
1584+ }
15811585 }
15821586
15831587 // write cell + data displacement list
You can’t perform that action at this time.
0 commit comments