Repository navigation
Commit 0889fef
QE: say that a unit cell is required, instead of silently refusing to launch
Reported live: "drawing a molecule doesn't do anything when it comes to
creating a periodic system" and "Launch doesn't do anything".
pw.x is a plane-wave code and cannot run on a non-periodic structure.
ai.qe already refused loudly, naming the Builder's "Periodic Builder"
panel -- but only at input-generation time, after the user had set up the
entire calculation. And until the previous commit that message was being
discarded by CalcEd anyway.
Now the requirement is declared per code:
<RequiresPeriodic>true</RequiresPeriodic>
which needed no parser change at all -- JCode::getValue() is a generic
getElementsByTagName lookup -- and keeps the knowledge next to the code
it describes rather than hardcoded in CalcEd.
CalcEd holds such a calculation not-ready, and says why. That second part
is the point: every OTHER reason a calculation is not ready is visible in
the panel that owns it (no theory, an incomplete basis), but a missing
unit cell is not, because nothing in CalcEd mentions cells at all. It
belongs to the structure and is created in a different application. So
the buttons just stayed greyed with no explanation, which is exactly what
"Launch doesn't do anything" looked like from outside.
Deliberately declarative rather than a QE special case: any future
plane-wave or solid-state code gets the same behaviour by adding one line
to its .edml.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFMUNbw2UpRPmgsqviAowb1 parent e1699e0 commit 0889fef
3 files changed
Lines changed: 67 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
114 | 121 | | |
115 | 122 | | |
116 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
2033 | 2068 | | |
2034 | 2069 | | |
2035 | 2070 | | |
2036 | 2071 | | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
2037 | 2078 | | |
2038 | 2079 | | |
2039 | 2080 | | |
| |||
2361 | 2402 | | |
2362 | 2403 | | |
2363 | 2404 | | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
2364 | 2423 | | |
2365 | 2424 | | |
2366 | 2425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
0 commit comments