Skip to content

Commit

Permalink
Update job.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Dec 10, 2021
1 parent d0f1bd4 commit fa4f0de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyiron_contrib/atomistics/cp2k/job.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from pyiron_base import DataContainer
from pyiron_base import DataContainer, state
from pyiron_atomistics.atomistics.structure.atoms import pyiron_to_ase, ase_to_pyiron
from pyiron_atomistics.atomistics.job.atomistic import AtomisticGenericJob
from pycp2k import CP2K
Expand Down Expand Up @@ -91,8 +91,8 @@ def write_input(self):
GLOBAL.Run_type = self.input["global"]["run_type"]
FORCE_EVAL.Method = self.input["force_eval"]["method"]
FORCE_EVAL.PRINT.FORCES.Section_parameters = self.input["force_eval"]["print_forces_section"]
DFT.Basis_set_file_name = os.path.join(s.resource_paths[0], "cp2k", "potentials", "BASIS_SET")
DFT.Potential_file_name = os.path.join(s.resource_paths[0], "cp2k", "potentials", "GTH_POTENTIALS")
DFT.Basis_set_file_name = os.path.join(state.settings.resource_paths[0], "cp2k", "potentials", "BASIS_SET")
DFT.Potential_file_name = os.path.join(state.settings.resource_paths[0], "cp2k", "potentials", "GTH_POTENTIALS")
DFT.QS.Eps_default = self.input["dft"]["qs"]["eps"]
DFT.MGRID.Ngrids = self.input["dft"]["mgrid"]["ngrids"]
DFT.MGRID.Cutoff = self.input["dft"]["mgrid"]["cutoff"]
Expand Down

0 comments on commit fa4f0de

Please sign in to comment.