Skip to content

Allow config variables to be used inside config variables #13

@ajwt

Description

@ajwt

We've a situation where we'd like to customise launch_parallel, and pass an extra argument to it in some cases.

The default is
launch_parallel = 'mpirun -np tc.nprocs'

but for various configs we'd like to have e.g.
launch_parallel='mpirun -np tc.nprocs --my-other-option'
or
launch_parallel='mpirun -np tc.nprocs --my-special-option'

Would it be possible to have a variable like
launch_parallel_template='mpirun -np tc.nprocs'
(which is a thing we might customise depending on the MPI implementation)

and then in the individual configs
launch_parallel='tc.launch_parallel_template --my-other-option'
or
launch_parallel='tc.launch_parallel_template --my-special-option'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions