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

Position: 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 some conference papers produced by the Center for Space Environment Modeling.

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 and hdf5 1.8, do the following as\ super user (assuming you are using MacPorts):
# Install hdf5 + gcc6 + gfortran with openmpi
port install gcc6
port install hdf5 +cxx +gcc6 +fortran +openmpi +szip
port select --set mpi openmpi-gcc6-fortran
cd /opt/local/bin
ln -s gfortran-mp-6 gfortran

NAG Fortran compiler

For debugging the best Fortran compiler is 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:${HOME}/bin/hdf5/bin:${PATH_TAIL}"
alias load_nagfor 'setenv PATH ".:/usr/local/mpi/bin:${HOME}/bin/hdf5/bin:${PATH_TAIL}"'
alias load_gfortran 'setenv PATH ".:/opt/local/lib/hdf5-18/bin:${PATH_TAIL}"'
This assumes that the NAG compatible MPI library is installed into /usr/local/mpi and the NAG compatible HDF5 library is installed into ${HOME}/bin/hdf5.

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.

tkdiff and tkcvs for Mac OSX 10.8 and newer

The tkdiff and tkcvs tools got much less usable after Mac OSX 10.8 because the default port installation uses them through the Wish program. Fortunately the tkcvs developers provide standalone binaries that work perfectly! After downloading and opening the DMG file from this site, drag tkcvs and tkdiff into the Applications folder (opened with Finder) and create a link to the executables from a directory in the path as an admin user, e.g.

cd /usr/local/bin
ln -s /Applications/TkCVS.app/Contents/MacOS/tkcvs.kit tkcvs
ln -s /Applications/TkDiff.app/Contents/MacOS/tkdiff tkdiff

As a normal user

tkdiff somefile anotherfile
tkcvs someCVSfile

If it does not work, check if there is a .tkdiffrc or .tkcvs file in the home directory with incorrect settings. Move them out of the way

mv ~/.tkdiffrc ~/.tkdiffrc_bad
mv ~/.tkcvs ~/.tcvs_bad

Once this works, uninstall the MacPort version of tkcvs/tkdiff (if it was installed):

port uninstall tkcvs

Finally, tkdiff can be customized. For example, under Edit/Preferences you can change the flags of "diff" for ignoring blank space from "-b" to "-w".

Last modified: January 10, 2018

Valid HTML 3.2!    Viewable With Any Browser