Skip to content

Commit

Permalink
Merge pull request #560 from m-a-d-n-e-s-s/JonathonMisiewicz-patch-1
Browse files Browse the repository at this point in the history
Fix set_derived_value type error
  • Loading branch information
evaleev authored Nov 26, 2024
2 parents 67ea7b5 + 43bcf16 commit 9834328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/madness/chem/molecule.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class Molecule {
// }

if (source_type()=="xyz") set_derived_value("units",std::string("angstrom"));
if (units()=="bohr" or units()=="au") set_derived_value("units","atomic");
if (units()=="bohr" or units()=="au") set_derived_value("units",std::string("atomic"));
}

std::string source_type() const {return get<std::string>("source_type");}
Expand Down Expand Up @@ -543,4 +543,4 @@ class Molecule {

}

#endif
#endif

0 comments on commit 9834328

Please sign in to comment.