Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw error if no config was found for one rank #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/application_mapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,16 @@ void
// NOTE: default configuration is preserved
config->resetDict();
}

if (n_selections != 1)
{
std::ostringstream msg;
msg << "no configuration found for one rank. This is most likely caused by launching MUSIC with too many processes. " << std::endl;
error0 (msg.str ());
}

delete config;
assert(config_->getDict().size() != 0);

// NOTE: given rank -1 causes an assertion failure
assert(n_selections == 1);
}


Expand Down