def exprToStr(expr):
    """ Convert a sympy expression to a string for BOUT++ input
    """
    s = str(expr).replace('**', '^')
    s = s.replace('(1.0*', '(')
    s = s.replace(' 1.0*', ' ')
    return s
