Skip to content

Commit

Permalink
SPM notebook: temporary disable restart (#159)
Browse files Browse the repository at this point in the history
Currently, the WFN restart is not working in the SPM notebook. We disable this feature for the moment.
  • Loading branch information
yakutovicha authored Jun 16, 2023
1 parent c13ce96 commit 6facee2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
6 changes: 0 additions & 6 deletions submit_pdos.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -78,7 +77,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -175,7 +173,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -209,7 +206,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -295,7 +291,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -346,7 +341,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down
21 changes: 8 additions & 13 deletions submit_spm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -80,7 +79,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -97,7 +95,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -208,7 +205,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -447,7 +443,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -597,14 +592,14 @@
" builder.dft_params=dft_params\n",
" # Check if a restart wfn is available.\n",
" wave_function = None\n",
" if structure_selector.structure_node.is_stored:\n",
" wave_function = wfn.structure_available_wfn(\n",
" node=structure_selector.structure_node,\n",
" relative_replica_id=None,\n",
" current_hostname=orm.load_node(cp2k_code.value).computer.hostname,\n",
" return_path=False,\n",
" dft_params=dft_params_dict,\n",
" )\n",
"# if structure_selector.structure_node.is_stored:\n",
"# wave_function = wfn.structure_available_wfn(\n",
"# node=structure_selector.structure_node,\n",
"# relative_replica_id=None,\n",
"# current_hostname=orm.load_node(cp2k_code.value).computer.hostname,\n",
"# return_path=False,\n",
"# dft_params=dft_params_dict,\n",
"# )\n",
" if wave_function is not None:\n",
" print(f\"Restarting from wfn in folder: {wave_function.pk}\")\n",
" builder.parent_calc_folder = wave_function\n",
Expand Down

0 comments on commit 6facee2

Please sign in to comment.