Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Mullen <[email protected]>
  • Loading branch information
lroberts36 and pdmullen authored May 14, 2024
1 parent 3610a85 commit 659c19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/outputs/restart.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ class RestartReader {
PARTHENON_REQUIRE_THROWS(allocated != nullptr,
"Tried to get allocation status but no data present");
PARTHENON_REQUIRE_THROWS((block >= 0) && (block < num_blocks),
"Invalid block index in SparseInfo::IsAllocated");
"Invalid block index in SparseInfo:: DeallocCount");
PARTHENON_REQUIRE_THROWS((sparse_field_idx >= 0) && (sparse_field_idx < num_sparse),
"Invalid sparse field index in SparseInfo::IsAllocated");
"Invalid sparse field index in SparseInfo:: DeallocCount");

return dealloc_count[block * num_sparse + sparse_field_idx];
}
Expand Down

0 comments on commit 659c19e

Please sign in to comment.