def ext_block(var, nblocks, ratio=3):
    """
    Extend some variables defined in the bottom block only

    Input
    -----
    var: float or int
        Variable in the bottom block
    nblocks: int
        Number of blocks, often 2
    ratio: float
        ratio between upper block to the block below

    Return
    ------
    res : list
        Variable in all blocks, from top to bottom
    """
    return [var * (ratio ** i) for i in range(nblocks)[::-1]]