All major U.S. naval ports have a degaussing range through which ships must periodically pass to ensure their magnetic signature has been nullified (as a mine countermeasure). I've been through the San Diego degaussing range several times.