Skip to content

Commit

Permalink
Test GaussianWFXCalculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kmlefran committed Dec 13, 2023
1 parent 1749743 commit f568b13
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
"py:class",
"aiida_submission_controller.from_group.FromGroupSubmissionController",
),
("py:class", "SinglefileData"),
]


Expand Down
48 changes: 48 additions & 0 deletions tests/calculations/test_gaussianwfxcalculation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
"""tests for AimqbCalculation"""


from aiida.common import datastructures
from aiida.orm import Dict, Str


def test_gaussianwfx_default(fixture_sandbox, generate_calc_job, fixture_code):
"""Tests that a GaussianWFXCalculation can be instantiated"""
entry_point_name = "gaussianwfx"
g16_sp_params = {
"functional": "PBE1PBE",
"basis_set": "6-31g",
"charge": 0,
"multiplicity": 2,
"link0_parameters": {
"%chk": "aiida.chk",
"%mem": "1024MB",
"%nprocshared": 4,
},
"route_parameters": {
"scf": {
"maxcycle": 128,
"cdiis": None,
},
"nosymm": None,
"output": "wfx",
"opt": "tight",
},
"input_parameters": {"output.wfx": None}, # appended at the end of the input
}
inputs = {
"fragment_label": "H",
"code": fixture_code("gaussianwfx"),
"parameters": Dict(g16_sp_params),
"structure_str": Str("H 0.0 0.0 0.0"),
"metadata": {
"options": {
"resources": {"num_machines": 1, "tot_num_mpiprocs": 1},
"max_memory_kb": int(3200 * 1.25) * 1024,
"max_wallclock_seconds": 604800,
}
},
}

calc_info = generate_calc_job(fixture_sandbox, entry_point_name, inputs)
assert isinstance(calc_info, datastructures.CalcInfo)
assert isinstance(calc_info.codes_info[0], datastructures.CodeInfo)

0 comments on commit f568b13

Please sign in to comment.