command-line input

Is there a way to pass parameters to a breve simulation at the command line? I need to spawn a bunch of almost-but-not-quite-identical simulations. I'd like to be able to set a parameter or two to tell each one, "you're simulation number X".

If this isn't available, I hereby submit it to the wishlist...

--Andrew Stout

command-line input

Check out "get-argument" and "get-argument-count" in the Control class.

Simply read out your arguments and you can set them into variables within the Controller class. Provide accessors if classes outside the controller need access to them.

Cheers

command-line input

thanks. [sigh] wish I'd known that before crafting a workaround...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.