Skip to content

Commit ff9a811

Browse files
committed
SOF-7449: fix pseudo type
1 parent 946de1b commit ff9a811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context/providers/PlanewaveCutoffsContextProvider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class PlanewaveCutoffsContextProvider extends mix(ContextProvider).with(
5757
// if rho cutoff is not present, set it based on wfc cutoff
5858
// if it is ultrasoft pseudopotential set rho cutoff 8 times
5959
// that of wfc cutoff, otherwise 4 times that of wfc cutoff
60-
const rhoMultiplier = this.methodData?.pseudo?.type === "us" ? 8 : 4;
60+
const rhoMultiplier = data?.type === "us" ? 8 : 4;
6161
ecutrho = Math.max(ecutrho, ecutwfc * rhoMultiplier);
6262
}
6363
});

0 commit comments

Comments
 (0)