diff --git a/src/TNL/Exceptions/MPIDimsCreateError.h b/src/TNL/Exceptions/MPIDimsCreateError.h new file mode 100644 index 0000000000000000000000000000000000000000..1cb1a8f2e61abedb6b7798828918a5f118d9fd89 --- /dev/null +++ b/src/TNL/Exceptions/MPIDimsCreateError.h @@ -0,0 +1,28 @@ +/*************************************************************************** + MPIDimsCreateError.h - description + ------------------- + begin : Jan 30, 2019 + copyright : (C) 2019 by Tomas Oberhuber et al. + email : tomas.oberhuber@fjfi.cvut.cz + ***************************************************************************/ + +/* See Copyright Notice in tnl/Copyright */ + +#pragma once + +#include <stdexcept> + +namespace TNL { +namespace Exceptions { + +struct MPIDimsCreateError + : public std::runtime_error +{ + MPIDimsCreateError() + : std::runtime_error( "The program tries to call MPI_Dims_create with wrong dimensions." + "Non of the dimensions is zero and product of all dimensions does not fit with number of MPI processes." ) + {} +}; + +} // namespace Exceptions +} // namespace TNL