We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8cc65a commit 6fd44c5Copy full SHA for 6fd44c5
core/src/include/ModelMetadata.hpp
@@ -41,6 +41,10 @@ class ModelMetadata {
41
#ifdef USE_MPI
42
inline static ModelMetadata& getInstance(std::string partitionFile = "")
43
{
44
+ if (partitionFile.empty()) {
45
+ throw std::runtime_error(
46
+ "ModelMetadata :: getInstance() called without partition file in MPI build.");
47
+ }
48
static ModelMetadata instance = ModelMetadata(partitionFile);
49
if (instance.isInitialized) {
50
return instance;
0 commit comments