Skip to content

Commit

Permalink
SOF-7189: set outdir current job directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Jan 4, 2024
1 parent 67ad4fb commit 2b4b5a2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
19 changes: 4 additions & 15 deletions assets/espresso/cp.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
{% endif -%}
&CONTROL
calculation = 'cp'
title = ''
restart_mode = '{{ input.RESTART_MODE }}'
tstress = .true.
tprnfor = .true.
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %}
outdir = {% raw %}'{{ JOB_WORK_DIR }}'{% endraw %}
prefix = 'cp'
pseudo_dir = {% raw %}'{{ JOB_WORK_DIR }}/pseudo'{% endraw %}
nstep = {{ dynamics.numberOfSteps }}
Expand All @@ -20,9 +19,9 @@
ntyp = {{ input.NTYP }}
ecutwfc = {{ cutoffs.wavefunction }}
ecutrho = {{ cutoffs.density }}
nr1b = 20
nr2b = 20
nr3b = 20
nr1b = 20
nr2b = 20
nr3b = 20
/
&ELECTRONS
electron_dynamics = 'verlet'
Expand All @@ -36,16 +35,6 @@
/
&CELL
/
&WANNIER
nit = 60,
calwf = 3,
tolw = 1.D-6,
nsteps = 50,
adapt = .FALSE.
wfdt = 2.0D0,
wf_q = 500.D0,
wf_friction = 0.3d0,
/
ATOMIC_SPECIES
{{ input.ATOMIC_SPECIES }}
ATOMIC_POSITIONS crystal
Expand Down
21 changes: 15 additions & 6 deletions assets/espresso/cp_wf.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
{% endif -%}
&CONTROL
calculation = 'cp-wf'
title = ''
restart_mode = '{{ input.RESTART_MODE }}'
tstress = .true.
tprnfor = .true.
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %}
outdir = {% raw %}'{{ JOB_WORK_DIR }}'{% endraw %}
prefix = 'cp_wf'
pseudo_dir = {% raw %}'{{ JOB_WORK_DIR }}/pseudo'{% endraw %}
nstep = {{ dynamics.numberOfSteps }}
Expand All @@ -19,10 +18,10 @@
nat = {{ input.NAT }}
ntyp = {{ input.NTYP }}
ecutwfc = {{ cutoffs.wavefunction }}
ecutrho = {{ cutoffs.density }}
nr1b = 20
nr2b = 20
nr3b = 20
! ecutrho = {{ cutoffs.density }}
nr1b = 20
nr2b = 20
nr3b = 20
/
&ELECTRONS
electron_dynamics = 'verlet'
Expand All @@ -36,6 +35,16 @@
/
&CELL
/
&WANNIER
nit = 60,
calwf = 3,
tolw = 1.D-6,
nsteps = 50,
adapt = .FALSE.
wfdt = 2.0D0,
wf_q = 500.D0,
wf_friction = 0.3d0,
/
ATOMIC_SPECIES
{{ input.ATOMIC_SPECIES }}
ATOMIC_POSITIONS crystal
Expand Down
2 changes: 1 addition & 1 deletion src/js/data/templates.js

Large diffs are not rendered by default.

0 comments on commit 2b4b5a2

Please sign in to comment.