The equivalence of perfect fluid space-times and viscous magnetohydrodynamic space-times in general relativity