it is bounded by the department of san martín and the banks of the san juan river