Skip to content

Commit

Permalink
Exit with error if AutoPas was started w multicomp
Browse files Browse the repository at this point in the history
  • Loading branch information
HomesGH authored Jul 29, 2024
1 parent 33d2a16 commit f96e840
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/molecules/AutoPasSimpleMolecule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ AutoPasSimpleMolecule::AutoPasSimpleMolecule(unsigned long id, Component* compon
if (_component == nullptr) {
_component = component;
} else if (_component != component and component != nullptr) {
Log::global_log->debug() << "AutoPasSimpleMolecule can only handle one component" << std::endl;
_component = component;
// mardyn_exit(32);
Log::global_log->error() << "AutoPasSimpleMolecule can only handle one component" << std::endl;
mardyn_exit(32);
}
}

Expand Down

0 comments on commit f96e840

Please sign in to comment.