Skip to content

Pass parameters to mumax3 run #334

@SeregaKR

Description

@SeregaKR

Good morning.
I have a question about running simulations with ubermag via mumax3. I want to change the video card on which the simulation is running. Normally, from mumax3, I'd just directly run mumax3 -gpu 1 -i my_script.mx3, but there doesn't seem to be a way to pass such a parameter. Based on my understanding, I need to pass argstr to the Mumax3Runner class call, but I'm not sure how. Any hint?

I tried the code below and it doesn't seem to work.

import mumax3c as mc
mc.mumax3.ExeMumax3Runner("mumax3 -gpu 1")

I see in the argstr mumax3c.ExeMumax3Runner._call(self, **argstr**, need_stderr=False, dry_run=False), but how to pass it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions