Skip to content

Commit 47678e0

Browse files
Verify that BasisReader comm is NULL or WORLD.
1 parent f162ca5 commit 47678e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/linalg/BasisReader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ BasisReader::BasisReader(
3030
base_file_name_(base_file_name),
3131
d_format(db_format)
3232
{
33-
CAROM_ASSERT(!base_file_name.empty());
33+
CAROM_VERIFY(!base_file_name.empty());
34+
CAROM_VERIFY(comm == MPI_COMM_NULL || comm == MPI_COMM_WORLD);
3435
d_distributed = comm != MPI_COMM_NULL;
3536

3637
int mpi_init;

0 commit comments

Comments
 (0)