Skip to content

cannot mix binary and ascii output in same setplot.py #275

Description

@rjleveque

In setplot.py we set plotdata.format to ascii or binary and then all output directories referenced have to have the same format. Often there's only one _output or maybe two similar ones if making comparison plots.

But I'm looking at a case where the I want to compare transects of a 2D solution with a 1D solution in a radially symmetric case, and the 2D output is big so would be best to use binary but there is no binary output option for 1D.

If plotdata.format = "binary" but an outdir has ascii format then it throws a non-informative error

*** Reached EOF in file .../fort.t0000

It took me a long time to figure out that's because for binary output the fort.t files are expected to contain one more line (with num_ghost) than in the ascii case.

We should consider allowing different formats for each outdir.

Also it would help to give a better error message currently.

See also #222 though this goes beyond that.

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