Skip to content

Commit

Permalink
Merge pull request #81 from Exabyte-io/feat/SOF-6631
Browse files Browse the repository at this point in the history
feat/SOF-6631: add hp.x to the web interface
  • Loading branch information
timurbazhirov committed Aug 26, 2023
2 parents d597181 + de2c98f commit c195650
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 2 deletions.
7 changes: 7 additions & 0 deletions assets/espresso/hp.j2.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
&inputhp
prefix = '__prefix__'
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %}
{% for d in qgrid.dimensions -%}
nq{{ loop.index }} = {{ d }}
{% endfor %}
/
45 changes: 45 additions & 0 deletions assets/espresso/pw_scf_dft_u.j2.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% if subworkflowContext.MATERIAL_INDEX %}
{%- set input = input.perMaterial[subworkflowContext.MATERIAL_INDEX] -%}
{% endif -%}
&CONTROL
calculation = 'scf'
title = ''
verbosity = 'low'
restart_mode = '{{ input.RESTART_MODE }}'
wf_collect = .true.
tstress = .true.
tprnfor = .true.
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %}
wfcdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %}
prefix = '__prefix__'
pseudo_dir = {% raw %}'{{ JOB_WORK_DIR }}/pseudo'{% endraw %}
/
&SYSTEM
ibrav = {{ input.IBRAV }}
nat = {{ input.NAT }}
ntyp = {{ input.NTYP }}
ecutwfc = {{ cutoffs.wavefunction }}
ecutrho = {{ cutoffs.density }}
occupations = 'fixed'
/
&ELECTRONS
diagonalization = 'david'
diago_david_ndim = 4
diago_full_acc = .true.
mixing_beta = 0.3
startingwfc = 'atomic+random'
/
&IONS
/
&CELL
/
ATOMIC_SPECIES
{{ input.ATOMIC_SPECIES }}
ATOMIC_POSITIONS crystal
{{ input.ATOMIC_POSITIONS }}
CELL_PARAMETERS angstrom
{{ input.CELL_PARAMETERS }}
K_POINTS automatic
{% for d in kgrid.dimensions %}{{d}} {% endfor %}{% for s in kgrid.shifts %}{{s}} {% endfor %}
HUBBARD {ortho-atomic}
{% for row in hubbard %}U {{ row.atomicSpecies }}-{{ row.atomicOrbital }} {{ row.hubbardUValue }} {% endfor %}
15 changes: 15 additions & 0 deletions executables/espresso/hp.x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
monitors:
- standard_output
results: []
flavors:
hp:
input:
- name: hp.in
results: []
monitors:
- standard_output
applicationName: espresso
executableName: hp.x
supportedApplicationVersions:
- '7.0'
- '7.2'
20 changes: 20 additions & 0 deletions executables/espresso/pw.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,26 @@ flavors:
applicationName: espresso
executableName: pw.x

pw_scf_dft_u:
input:
- name: pw_scf_dft_u.in
results:
- atomic_forces
- band_gaps
- fermi_energy
- pressure
- stress_tensor
- total_energy
- total_energy_contributions
- total_force
monitors:
- standard_output
- convergence_electronic
applicationName: espresso
executableName: pw.x
supportedApplicationVersions:
- '7.2'

pw_esm:
input:
- name: pw_esm.in
Expand Down
1 change: 1 addition & 0 deletions executables/tree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ espresso:
projwfc.x: !include 'executables/espresso/projwfc.x.yml'
pw.x: !include 'executables/espresso/pw.x.yml'
q2r.x: !include 'executables/espresso/q2r.x.yml'
hp.x: !include 'executables/espresso/hp.x.yml'
jupyterLab:
jupyter: !include 'executables/jupyterLab/jupyter.yml'
exabyteml:
Expand Down
2 changes: 1 addition & 1 deletion src/js/data/templates.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/data/tree.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions templates/espresso/hp.x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- content: !readFile 'assets/espresso/hp.j2.in'
name: hp.in
contextProviders:
- name: QGridFormDataManager
applicationName: espresso
executableName: hp.x
10 changes: 10 additions & 0 deletions templates/espresso/pw.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,13 @@
- name: PlanewaveCutoffDataManager
applicationName: espresso
executableName: pw.x

- content: !readFile 'assets/espresso/pw_scf_dft_u.j2.in'
name: pw_scf_dft_u.in
contextProviders:
- name: KGridFormDataManager
- name: QEPWXInputDataManager
- name: PlanewaveCutoffDataManager
- name: HubbardContextManager
applicationName: espresso
executableName: pw.x
1 change: 1 addition & 0 deletions templates/templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- !include 'templates/espresso/projwfc.x.yml'
- !include 'templates/espresso/pw.x.yml'
- !include 'templates/espresso/q2r.x.yml'
- !include 'templates/espresso/hp.x.yml'
# jupyterLab
- !include 'templates/jupyterLab/jupyter.yml'
# nwchem
Expand Down

0 comments on commit c195650

Please sign in to comment.