Skip to content

Commit

Permalink
Merge pull request #13 from bpuchala/2.X_has_dof_fix
Browse files Browse the repository at this point in the history
fix has_dof check
  • Loading branch information
bpuchala authored Sep 29, 2023
2 parents 13920c2 + 44ed921 commit 25ba40f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/casm/crystallography/Site.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ SiteDoFSet const &Site::dof(std::string const &_dof_type) const {

//****************************************************
bool Site::has_dof(std::string const &_dof_type) const {
return occupant_dof().size() > 1 ||
m_dof_map.find(_dof_type) != m_dof_map.end();
static std::string OCC_DOF = "occ";
if (_dof_type == OCC_DOF) {
return occupant_dof().size() > 1;
}
return m_dof_map.find(_dof_type) != m_dof_map.end();
}

//****************************************************
Expand Down

0 comments on commit 25ba40f

Please sign in to comment.