Skip to content

Commit

Permalink
Make BasisSet::get_max_am() return -1 for an empty basis set.
Browse files Browse the repository at this point in the history
  • Loading branch information
susilehtola committed Jan 17, 2024
1 parent 146f703 commit 94fb8f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/basis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1561,8 +1561,7 @@ int BasisSet::get_am(size_t ind) const {

int BasisSet::get_max_am() const {
if(shells.size()==0) {
ERROR_INFO();
throw std::domain_error("Cannot get maximum angular momentum of an empty basis set!\n");
return -1;
}

int maxam=shells[0].get_am();
Expand Down

0 comments on commit 94fb8f1

Please sign in to comment.