Skip to content

YAML Parameters: plot_wavefield uses time-interval while wavefield uses time_interval #1438

@int-ptr-ptr

Description

@int-ptr-ptr

Issue:

For SPECFEM configuration .yaml files, parameter_parser looks for a "time-interval" node in plot_wavefield (display), but a "time_interval" node in wavefield (dump files).

These should probably be made the same.

Background

(up to date as of 2025-12-01)

It looks like the following are the only places in the code where these two are relevant (from a VS Code search) in devel:

const int time_interval = [&]() -> int {
if (Node["time-interval"]) {
return Node["time-interval"].as<int>();
} else {
throw std::runtime_error(
"Time interval not specified in the display section");
}
}();

const int time_interval = [&]() -> int {
if (Node["time_interval"]) {
return Node["time_interval"].as<int>();
} else {
return 0;
}
}();

It also appears that no .yaml files within devel at present use time_interval for wavefields, so the least intrusive fix would be to change "time_interval" to "time-interval".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions