Continuous dynamic assimilation of the inner region data in hydrodynamics modelling: optimization approach