Skip to content

Commit

Permalink
Do not rely on the class name for the task name
Browse files Browse the repository at this point in the history
  • Loading branch information
WardLT committed Mar 7, 2024
1 parent 78fb1ff commit 6de3f01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo_apps/mpi-tasks/sim.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from pathlib import Path

from colmena.models import ExecutableTask
from colmena.models.tasks import ExecutableTask


class Simulation(ExecutableTask):

def __init__(self, executable: Path):
super().__init__(executable=[executable.absolute()],
name='simulation',
mpi=True,
mpi_command_string='mpirun -np {total_ranks}')

Expand Down

0 comments on commit 6de3f01

Please sign in to comment.