Generation and measurement of multi megagauss fields in inertial magnets