Based on a true story
Portions of this film were based on the fourth patrol of the USS Growler and its captain, Lt. Commander Howard Gilmore, who was awarded the Congressional Medal of Honor posthumously. Here are a couple of links that explain more:
http://en.wikipedia.org/wiki/Operation_Pacific
http://en.wikipedia.org/wiki/USS_Growler_(SS-215)