Actually you can get back to port if you run out of fuel.
But it will take forever and is kind of a cheat.
It seems the subs have been fitted with solar power rechargers
Run submerged till the batts are nearly discharged. Surface and holy moly they recharge !
Repeat...