Skip to content

Commit a28d94b

Browse files
committed
SOF-7449: remove application specific cutoff
as currently cutoffs are used only in quantum espresso
1 parent ff9a811 commit a28d94b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/context/providers/PlanewaveCutoffsContextProvider.js

+6-10
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,20 @@ export class PlanewaveCutoffsContextProvider extends mix(ContextProvider).with(
6666
}
6767

6868
get defaultECUTWFC() {
69-
if (["espresso", "qe"].includes(this.application.shortName)) {
70-
const [ecutwfc] = this._cutoffsFromPseudos;
69+
const [ecutwfc] = this._cutoffsFromPseudos;
7170

72-
if (ecutwfc > 0) {
73-
return ecutwfc;
74-
}
71+
if (ecutwfc > 0) {
72+
return ecutwfc;
7573
}
7674

7775
return this._cutoffConfigPerApplication.wavefunction || null;
7876
}
7977

8078
get defaultECUTRHO() {
81-
if (["espresso", "qe"].includes(this.application.shortName)) {
82-
const [, ecutrho] = this._cutoffsFromPseudos;
79+
const [, ecutrho] = this._cutoffsFromPseudos; // destructure and select second item
8380

84-
if (ecutrho > 0) {
85-
return ecutrho;
86-
}
81+
if (ecutrho > 0) {
82+
return ecutrho;
8783
}
8884

8985
return this._cutoffConfigPerApplication.density || null;

0 commit comments

Comments
 (0)