@@ -1195,7 +1195,7 @@ namespace WorldBuilder
11951195 if (!filestream)
11961196 {
11971197 // broadcast failure state, then throw
1198- const int ierr = MPI_Bcast (&invalid_file_size, 1 , MPI_UNSIGNED , 0 , comm);
1198+ const int ierr = MPI_Bcast (&invalid_file_size, 1 , MPI_INT , 0 , comm);
11991199 WBAssertThrow (ierr,
12001200 std::string (" Could not open file <" ) + filename + " >." );
12011201 }
@@ -1210,7 +1210,7 @@ namespace WorldBuilder
12101210 catch (const std::ios::failure &)
12111211 {
12121212 // broadcast failure state, then throw
1213- const int ierr = MPI_Bcast (&invalid_file_size, 1 , MPI_UNSIGNED , 0 , comm);
1213+ const int ierr = MPI_Bcast (&invalid_file_size, 1 , MPI_INT , 0 , comm);
12141214 WBAssertThrow (ierr == 0 , " MPI_Bcast failed." );
12151215 WBAssertThrow (false ,
12161216 std::string (" Could not read file content from <" ) + filename + " >." );
@@ -1222,7 +1222,7 @@ namespace WorldBuilder
12221222 filesize = static_cast <int >(data_string.size ());
12231223
12241224 // Distribute data_size and data across processes
1225- int ierr = MPI_Bcast (&filesize, 1 , MPI_UNSIGNED , 0 , comm);
1225+ int ierr = MPI_Bcast (&filesize, 1 , MPI_INT , 0 , comm);
12261226 WBAssertThrow (ierr == 0 , " MPI_Bcast failed." );
12271227
12281228 // Receive and store data
@@ -1237,7 +1237,7 @@ namespace WorldBuilder
12371237 {
12381238 // Prepare for receiving data
12391239 int filesize = 0 ;
1240- int ierr = MPI_Bcast (&filesize, 1 , MPI_UNSIGNED , 0 , comm);
1240+ int ierr = MPI_Bcast (&filesize, 1 , MPI_INT , 0 , comm);
12411241 WBAssertThrow (ierr == 0 , " MPI_Bcast failed." );
12421242 WBAssertThrow (filesize != -1 ,
12431243 std::string (" Could not open file <" ) + filename + " >." );
0 commit comments