Control algorithm for multiscale flow simulations of water