Skip to content

Commit

Permalink
SOF-7315: chore ==> camelCase naming for the js variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Apr 4, 2024
1 parent 410f92e commit b6c152d
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 46 deletions.
6 changes: 3 additions & 3 deletions assets/espresso/pw_bands_dft_j_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
/
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_bands_dft_u_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
/
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_bands_dft_u_magn_legacy.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
{%- for row in hubbard_legacy %}
Hubbard_U({{ row.atomicSpeciesIndex }}) = {{ row.hubbardUValue }}
{%- endfor %}
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
/
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_bands_dft_v_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
/
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_bands_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
/
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_nscf_dft_j_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
{%- if subworkflowContext.NO_SYMMETRY_NO_INVERSION %}
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_nscf_dft_u_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
{%- if subworkflowContext.NO_SYMMETRY_NO_INVERSION %}
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_nscf_dft_u_magn_legacy.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
{%- for row in hubbard_legacy %}
Hubbard_U({{ row.atomicSpeciesIndex }}) = {{ row.hubbardUValue }}
{%- endfor %}
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
{%- if subworkflowContext.NO_SYMMETRY_NO_INVERSION %}
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_nscf_dft_v_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
{%- if subworkflowContext.NO_SYMMETRY_NO_INVERSION %}
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_nscf_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
{%- if subworkflowContext.NO_SYMMETRY_NO_INVERSION %}
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_scf_dft_j_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
/
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_scf_dft_u_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
/
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_scf_dft_u_magn_legacy.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
{%- for row in hubbard_legacy %}
Hubbard_U({{ row.atomicSpeciesIndex }}) = {{ row.hubbardUValue }}
{%- endfor %}
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
/
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_scf_dft_v_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
/
Expand Down
6 changes: 3 additions & 3 deletions assets/espresso/pw_scf_magn.j2.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
ecutrho = {{ cutoffs.density }}
occupations = 'smearing'
degauss = 0.005
{%- if collinear_magnetization.is_total_magnetization %}
tot_magnetization = {{ collinear_magnetization.total_magnetization }}
{%- if collinear_magnetization.isTotalMagnetization %}
tot_magnetization = {{ collinear_magnetization.totalMagnetization }}
{%- else %}
{%- for item in collinear_magnetization.starting_magnetization %}
{%- for item in collinear_magnetization.startingMagnetization %}
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%}
{%- endif %}
/
Expand Down
2 changes: 1 addition & 1 deletion src/js/data/templates.js

Large diffs are not rendered by default.

0 comments on commit b6c152d

Please sign in to comment.