def get_outdir_simupara(fp, line):
    """
    get output directory and simulation parameters (in format: time steps)

    :param fp: opened file
    :param line: current line
    :return: output directory and simulation  parameters
    Note: output directory is '' if not specified and
    list of simulation parameters is empty if not specified
    """
    outdir = ''
    simupara = []
    while line:
        line = fp.readline()
        if not line:
            break
        if line == '--\n':
            continue
        line = line.strip('\n')
        line = line.split(' ')
        if len(line) == 1:
            outdir = str(line[0])
        else:
            simupara = line
    return outdir, simupara