Skip to content

Input/output bugs in elph_fc.f90 #1

Description

@adenchfi

Hello,

I have been trying to follow the calculation of EPC and Tc using SSCHA dynamical matrices from this tutorial and have finally managed to do so for my system of interest. Various pieces of unexpected behavior led to me spending a day figuring this out.

  1. The *.dyn matrices produced when ibrav=0 have a different form, including some extra lines for 'basis vectors', which breaks the elph_fc.x code trying to read them in. Deleting the basis vector lines in the *.dyn files lets the calculation continue. The fix should be easy - add in if/else statement on how to read the files if ibrav=0 or not.

  2. The elph_fc.x code breaks with a reading-file bug if run in parallel, probably due to multiple processors trying to open the same file unit. Would be great if a sentence could be added about needing to run on a single processor, or otherwise make sure it runs fine on multiple.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions