The law relates magnetic fields to electric currents that produce them. A scientist can use Ampere's law to determine the magnetic field associated with a given current or current associated with a given magnetic field, if there is no time changing electric field present.