There was an error while loading. Please reload this page.
2 parents 13b1473 + e5e5c1d commit f849f66Copy full SHA for f849f66
1 file changed
src/koopmans/commands.py
@@ -222,11 +222,15 @@ class KCWWannierConfig(ParallelCommandConfig):
222
stderr: str | None = None
223
stdin_redirection_string: ClassVar[str] = "-in"
224
ase_env_var: ClassVar[str] = "ASE_KCW_WANNIER_COMMAND"
225
+ npool: int | None = Field(None, description="Number of pools to use for parallel execution.")
226
227
@property
228
def options_str(self) -> str:
229
"""Return the string of options to provide to the executable."""
- return ''
230
+ options: list[str] = []
231
+ if self.npool is not None:
232
+ options.append(f"-npool {self.npool}")
233
+ return ' '.join(options)
234
235
236
class KCPConfig(ParallelCommandConfig):
0 commit comments