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 USA 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) |
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.
Publications on Google Scholar, ORCID, and RESEARCHERID
Publications and conference papers related to the Versatile Advection Code.
# Install gcc + gfortran version X with openmpi: port install gccX +cxx +fortran +openmpi # use gcc12 for Sonoma (13 may fail) port install openmpi +gccX +fortran # needed on Big Sur, Monterey port select --set mpi openmpi-gccX-fortran # Mojave port select --set mpi openmpi-mp-fortran # Catalina, Big Sur, Monterey cd /opt/local/bin ln -s gfortran-mp-X gfortranIf installing openmpi fails (as on Sonoma 14.1.1) then you can use the tar file of hand-compiled OpenMPI 4.1.6. Note: Sonoma 14.3.1 works for openmpi coming from MacPorts.
Alternatively (or in addition), install MPICH with gcc version X:
port install mpich-gccX +fortran # to make MPICH the default MPI library: port select --set mpi mpich-mp-fortranIf MPICH is intended for nagfor, then you can use a tar file from here.
To be able to switch between MPICH and OpenMPI, link the mpich binaries from a directory that can be added to the beginning of the path:
cd; mkdir mpich; cd mpich ln -s /opt/local/bin/mpicc-mpich-gcc11 mpicc ln -s /opt/local/bin/mpixx-mpich-gcc11 mpixx ln -s /opt/local/bin/mpiexec-mpich-gcc11 mpiexec ln -s /opt/local/bin/mpif90-mpich-gcc11 mpif90and define
alias load_mpich 'setenv PATH ".:${HOME}/mpich:${PATH_TAIL}"' alias load_openmpi 'setenv PATH ".:${PATH_TAIL}"'in .cshrc or equivalent.
To use Apple's clang with gfortran using OpenMPI set
setenv OMPI_CC clang setenv OMPI_CXX clang++or for MPICH set
setenv MPICH_CC clang setenv MPICH_CXX clang++To use GNU's gcc together with gfortran and OpenMPI use
unsetenv OMPI_CC unsetenv OMPI_CXXor for MPICH use
unsetenv MPICH_CC unsetenv MPICH_CXXThe CommandLineTool needs to be up-to-date to make GNU's gcc work, although CommandLineTool 15 does not work with OSX 13 (CommandLineTool 14 does). CommandLineTool 15 is needed for OSX 14.
alias load_gfortran 'unsetenv OMPI_FC; unsetenv OMPI_F77; unsetenv MPICH_FC' alias load_nagfor 'setenv OMPI_FC nagfor; setenv OMPI_F77 nagfor; setenv MPICH_FC nagfor' setenv OMPI_FFLAGS ' ' setenv OMPI_FCFLAGS ' 'The OMPI_FFLAGS and OMPI_CFLAGS switch off some compiler flags that OpenMPI is trying to use, but nagfor does not know about. The two aliases simply set the appropriate Fortran compiler.
rm -f /Applications/harris/license/flexera*/*