Skip to content

Commit f2a6cc2

Browse files
committed
SOF-7449: return rho cutoff also for qe only
1 parent 80f7f55 commit f2a6cc2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/context/providers/PlanewaveCutoffsContextProvider.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@ export class PlanewaveCutoffsContextProvider extends mix(ContextProvider).with(
7979
}
8080

8181
get defaultECUTRHO() {
82-
const [, ecutrho] = this.getCutoffsFromPseudos();
82+
if (["espresso", "qe"].includes(this.application.shortName)) {
83+
const [, ecutrho] = this.getCutoffsFromPseudos();
8384

84-
if (ecutrho > 0) {
85-
return ecutrho;
85+
if (ecutrho > 0) {
86+
return ecutrho;
87+
}
8688
}
8789

8890
return this._cutoffConfigPerApplication.density || null;

0 commit comments

Comments
 (0)