Skip to content

HF simulation should capture and inspect stdout #113

Description

@lispandfound

For large ruptures with long response times the HF code will fail with the following message in stdout

need to recompile with larger array size, exiting...

This error occurs because the buffer for the fourier response spectra is not large enough. The solution (for now) is to recompile the container with an executable with a larger buffer. However, the code currently treats this failure as a success because the binary returns exit code 0. Hence, hf-sim should also capture the stdout, search for this statement and raise a RuntimeError in that case.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions