1: \begin{abstract}
2: We present the implementation of a three-dimensional, second order
3: accurate Godunov-type algorithm for magneto-hydrodynamic (MHD), in
4: the adaptive-mesh-refinement (AMR) cosmological code {\tt CHARM}.
5: The algorithm is based on the full 12-solve spatially unsplit
6: Corner-Transport-Upwind (CTU) scheme. The fluid quantities are
7: cell-centered and are updated using the Piecewise-Parabolic-Method
8: (PPM), while the magnetic field variables are face-centered and are
9: evolved through application of the Stokes theorem on cell edges via a
10: Constrained-Transport (CT) method.
11: The multidimensional MHD source terms required in the
12: predictor step for high-order accuracy are applied in a simplified
13: form which reduces their complexity in three dimensions
14: without loss of accuracy or robustness. The algorithm is
15: implemented on an AMR framework which requires specific
16: synchronization steps across refinement levels. These include
17: face-centered restriction and prolongation operations and a {\it
18: reflux-curl} operation, which maintains a solenoidal magnetic field
19: across refinement boundaries. The code is tested against a large
20: suite of test problems, including convergence tests in smooth flows,
21: shock-tube tests, classical two- and three-dimensional MHD tests,
22: a three-dimensional shock-cloud interaction problem and the
23: formation of a cluster of galaxies in a fully cosmological
24: context. The magnetic field divergence is shown to remain
25: negligible throughout.
26:
27: \end{abstract}
28: