  Coherent macroscopic tunneling of a Bose-Einstein condensate between two
parts of an optical lattice separated by an energy barrier is theoretically
investigated. We show that by a pulsewise change of the barrier height, it is
possible to switch between tunneling regime and a self-trapped state of the
condensate. This property of the system is explained by effectively reducing
the dynamics to the nonlinear problem of a particle moving in a double square
well potential. The analysis is made for both attractive and repulsive
interatomic forces, and it highlights the experimental relevance of our
findings.
