Skip to content

✨ PwOutput: add wall_time and volume outputs - #154

Merged
mbercx merged 1 commit into
mainfrom
new/outputs
May 15, 2026
Merged

mbercx merged 1 commit into
mainfrom
new/outputs

Conversation

@mbercx

@mbercx mbercx commented May 15, 2026

Copy link
Copy Markdown
Member

Both are parsed from stdout:

  • wall_time — final PWSCF : ... s CPU ... s WALL line; already collected by BaseStdoutParser as wall_time_seconds, now exposed via a Spec with Unit("second").
  • volume — unit-cell volume = ... (a.u.)^3 (and the new unit-cell volume = ... a.u.^3 (...) form printed by vc-relax). BaseStdoutParser now records the last match as volume_bohr3; the Spec converts bohr³ → ų via CONSTANTS.bohr_to_ang**3 and tags Unit("angstrom**3").

The XML schema does not include the cell volume, so stdout is the only source; for vc-relax taking the last match yields the final relaxed volume rather than the initial one.

Both are parsed from stdout:

- `wall_time` — final `PWSCF :  ... s CPU  ... s WALL` line; already collected
  by `BaseStdoutParser` as `wall_time_seconds`, now exposed via a Spec with
  `Unit("second")`.
- `volume` — `unit-cell volume = ... (a.u.)^3` (and the `new unit-cell volume =
  ... a.u.^3 (...)` form printed by vc-relax). `BaseStdoutParser` now records
  the last match as `volume_bohr3`; the Spec converts bohr³ → ų via
  `CONSTANTS.bohr_to_ang**3` and tags `Unit("angstrom**3")`.

The XML schema does not include the cell volume, so stdout is the only source;
for vc-relax taking the last match yields the final relaxed volume rather than
the initial one.
@mbercx
mbercx merged commit c61b81f into main May 15, 2026
4 checks passed
@mbercx
mbercx deleted the new/outputs branch May 15, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant