Skip to content

Commit

Permalink
WIP for autocas.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfleury-sb committed Nov 22, 2023
1 parent 0d707f8 commit 45f9e43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,14 @@ def __init__(self, autocas_yaml=None, **settings):

self.root_folder = os.getcwd()

self.autocas_yaml = autocas_yaml
if autocas_yaml is None:
self.autocas_yaml = os.path.join(self.root_folder, "autocas_settings.yml")

# Default settings. Other settings can be modified, see this url for an
# example: https://github.com/qcscine/autocas/blob/master/scripts/full.yml.
self.settings = {
"molecule": {
"double_d_shell": True
"double_d_shell": False
},
"interface": {
"interface": "molcas", # Theo nly one supported as of now.
"interface": "molcas", # The only one supported as of now.
"project_name": "mol",
"environment": {"molcas_scratch_dir": os.path.join(self.root_folder, "molcas_scratch")},
"settings": {"work_dir": os.path.join(self.root_folder, "autocas_project")}
Expand All @@ -64,6 +60,9 @@ def __init__(self, autocas_yaml=None, **settings):
self.settings["interface"]["settings"]["xyz_file"] = self.xyz_file
self.settings["molecule"]["xyz_file"] = self.xyz_file

self.autocas_yaml = autocas_yaml
if autocas_yaml is None:
self.autocas_yaml = os.path.join(self.root_folder, f"autocas_settings_{self.settings['interface']['project_name']}.yml")

def set_physical_data(self, mol):
""" TODO
Expand Down Expand Up @@ -91,7 +90,8 @@ def compute_mean_field(self, sqmol):
# PyYAML package is a requirement for autocas.
import yaml

#self.settings["interface"]["settings"]["basis_set"] = sqmol.basis
self.settings["interface"]["settings"]["basis_set"] = sqmol.basis
self.settings["interface"]["settings"]["uhf"] = sqmol.uhf

# Additional options related to the molecular problem.
# TODO
Expand Down Expand Up @@ -133,4 +133,4 @@ def get_integrals(self, sqmol, mo_coeff=None):
# more than just the overlap integrals.
# The two-body integrals are decomposed with the Cholesky method by
# default. This is done by the SEWARD program.
pass
return None, None, None
2 changes: 2 additions & 0 deletions tangelo/toolboxes/molecular_computation/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def get_default_integral_solver(qmmm=False):
return IntegralSolverPySCFQMMM if qmmm else IntegralSolverPySCF
elif is_package_installed("psi4"):
return IntegralSolverPsi4QMMM if qmmm else IntegralSolverPsi4
elif is_package_installed("scine_autocas"):
return IntegralSolverAutoCAS
else:
return IntegralSolverEmpty

Expand Down

0 comments on commit 45f9e43

Please sign in to comment.