File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -66,24 +66,20 @@ export class PlanewaveCutoffsContextProvider extends mix(ContextProvider).with(
66
66
}
67
67
68
68
get defaultECUTWFC ( ) {
69
- if ( [ "espresso" , "qe" ] . includes ( this . application . shortName ) ) {
70
- const [ ecutwfc ] = this . _cutoffsFromPseudos ;
69
+ const [ ecutwfc ] = this . _cutoffsFromPseudos ;
71
70
72
- if ( ecutwfc > 0 ) {
73
- return ecutwfc ;
74
- }
71
+ if ( ecutwfc > 0 ) {
72
+ return ecutwfc ;
75
73
}
76
74
77
75
return this . _cutoffConfigPerApplication . wavefunction || null ;
78
76
}
79
77
80
78
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
83
80
84
- if ( ecutrho > 0 ) {
85
- return ecutrho ;
86
- }
81
+ if ( ecutrho > 0 ) {
82
+ return ecutrho ;
87
83
}
88
84
89
85
return this . _cutoffConfigPerApplication . density || null ;
You can’t perform that action at this time.
0 commit comments