ponweist / Wannier90-PRACE

Optimizations for Wannier90 (fork repository - see http://wannier.org for the official version).
GNU General Public License v2.0
1 stars 0 forks source link

Lengths of character arrays #12

Closed ponweist closed 7 years ago

ponweist commented 10 years ago

When using kslice_task=fermi_lines,curv,morb in the input file, the error message

Error: kslice_task cannot include both "curv" and "morb"

is currently not generated.

Reason: The above parameter value is too long (21 characters) to fit into a character array of length 20. Consequently it is truncated (curv is done and morb is silently ignored).

Consider using a lager setting for CL.

I finally left it with 20 for possible backward compatibility issues with old restart files etc.

See also 0c9e71ec935110e01957884dfa98bfd6c5376323.