Skip to content

Commit dd8ae54

Browse files
committed
Fix MPI variable in utilities.cc from int to unsigned int.
1 parent 203a7d5 commit dd8ae54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/world_builder/utilities.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,14 +1183,14 @@ namespace WorldBuilder
11831183
MPI_Comm_rank(comm, &my_rank);
11841184
if (my_rank == 0)
11851185
{
1186-
int filesize;
1186+
unsigned int filesize;
11871187
std::ifstream filestream;
11881188
filestream.open(filename.c_str());
11891189
WBAssertThrow (filestream.is_open(), std::string("Could not open file <") + filename + ">.");
11901190

11911191
// Need to convert to unsigned int, because MPI_Bcast does not support
11921192
// size_t or const unsigned int
1193-
int invalid_file_size = -1;
1193+
unsigned int invalid_file_size = -1;
11941194

11951195
if (!filestream)
11961196
{

0 commit comments

Comments
 (0)