""" Usage: call_functionality [-o ...] [-g ...] [--interval ] [--disable-logger] [--pause] [--mpi ] [--track ] [--port ] [--bmi-class] call_functionality -h | --help Positional arguments: engine model engine configfile model configuration file Optional arguments: -h, --help show this help message and exit --interval publish results every timesteps -o output variables, will be broadcasted each timestep -g global variables, will be send if requested --disable-logger do not inject logger into the BMI library --pause start in paused mode, send update messages to progress --mpi communicate with mpi nodes using one of the methods: root (communicate with rank 0), all (one socket per rank) --port "random" or integer base port, port is computed as req/rep = port + rank*3 + 0, push/pull = port + rank*3 + 1, pub/sub = port + rank*3 + 2 [default: random] --track server to subscribe to for tracking --bmi-class when used - the engine is assumed to be the full name of a Python class that implements bmi [default: bmi.wrapper.BMIWrapper] """ import bmi import mmi.runner import sys import docopt # from mmi.runner import runner def call_functionality(arguments): print "hello" print arguments mmi.runner.runner(arguments) arguments = docopt.docopt(__doc__) call_functionality(arguments) # call_functionality(sys.argv[1:])