Welcome to Gábor Tóth's home page

Position: Bram van Leer Collegiate Research Professor

Address:  Center for Space Environment Modeling
          Dept. of Climate and Space
          University of Michigan
          2455 Hayward,
          Ann Arbor MI, 48109

Office:   1424-C, Space Research Bldg
Tel:      +1 (734)-615-5362
Fax:      +1 (734)-647-3083
E-mail:   gtoth at umich dot edu

Degree:   Ph.D. in astrophysics (Princeton University, 1993)



Space Weather Modeling Framework and Code for Radiative Shock Hydrodynamics

Publicly available software for space physics and high energy density plasma modeling. Developed at the Center for Space Environment Modeling and the Center for Radiative Shock Hydrodynamics.

The SWMF has been selected (based on a thorough model comparison by Pulkkinen et al. 2013) and transitioned to operation as the first physics-based geospace model at the Space Weather Prediction Center of the U.S. National Weather Service. See an interview about the selection. The SWMF Geospace model now runs 24/7 at SWPC and provides global and local predictions for magnetic activity.


Versatile Advection Code

A freely available general simulation software for hydro- and magnetohydrodynamics. Originally developed as part of the Massively Parallel Programming, Computational Magneto-Fluid Dynamics project in the Netherlands from 1994-1997. The related MPI-AMRVAC code has adaptive mesh refinement.


List of publications

Publications on Google Scholar, ORCID, and RESEARCHERID

Publications and conference papers related to the Versatile Advection Code.


FDIPS -- Finite Difference Iterative Potential-field Solver

A public domain Fortran 90 code to calculate a potential field solution from a magnetogram using a finite difference scheme. This can provide better results than the usual method based on spherical harmonics. See our paper (PDF). The FDIPS code is available here .

ELTEX -- EL-vá-lasz-tó TEX

A public domain Perl program for translation of any Hungarian accent notation to TeX/Latex notation and for hyphenation according to Hungarian grammar. This preprocessor can do hyphenation about as well as the Babel package without needing a reconfiguration of Latex. For big projects (e.g. a book or a chapter in Hungarian) the Babel package is recommended.

Fortran compilers

GNU Fortran compiler

To install the gfortran compiler with openmpi, do the following as super user (assuming you are using MacPorts):
# Install gcc + gfortran version X (X=6 or more) with openmpi:
port install gccX +cxx +fortran +openmpi
port install openmpi +gccX +fortran        # needed on Big Sur
port select --set mpi openmpi-gccX-fortran # Mojave
port select --set mpi openmpi-mp-fortran   # Catalina, Big Sur
cd /opt/local/bin
ln -s gfortran-mp-X gfortran
It is possible that openmpi-gccX-fortran does not exist, as OSX wants you to use clang which belongs to openmpi-mp-fortran. This will work in some cases, but not in general. For example OpenMP is not supported by clang. It is best to use the GNU compilers, which can be easily achieved by setting:
setenv OMPI_CXX g++-mp-X
setenv OMPI_CC gcc-mp-X
setenv OMPI_FC gfortran-mp-X

NAG Fortran compiler

For debugging and code development purposes it is recommended to use the NAG Fortran compiler. Note that you have to have a valid licence. The department of CLASP bought a permanent floating license. See Share/NAGFOR for installation instructions.

Switching between Fortran compilers

To switch between the two compilers, simply change the PATH. For example define the following in .cshrc:
setenv PATH_TAIL "/opt/local/bin:$HOME/bin:/usr/local/bin:/usr/bin:/bin:/opt/X11/bin:${IDL_DIR}/bin/"
setenv PATH ".:/usr/local/mpi/bin:${PATH_TAIL}"
alias load_nagfor 'setenv PATH ".:/usr/local/mpi/bin:${PATH_TAIL}"'
alias load_gfortran 'setenv PATH ".:${PATH_TAIL}"'
This assumes that the NAG compatible MPI library is installed into /usr/local/mpi.

MPI library for NAG compiler on 64-bit Mac

Click here: Share/MPI.

bbftpd for fast file transfer from super computers to your Mac

Click here: Share/BBFTPD.


Use tkdiff to compare files. It now works well under OSX 10.14 and up.
Last modified: August 19, 2020

Valid HTML 3.2!    Viewable With Any Browser