Supported compilers

GEOS-Chem is written in the Fortran programming language. However, you will also need C and C++ compilers to install certain libraries (like netCDF) on your system.

Intel

The Intel Compiler Suite is our recommended proprietary compiler suite.

Intel compilers produce well-optimized code that runs extremely efficiency on machines with Intel CPUs. Many universities and institutions will have an Intel site license that allows you to use these compilers.

The GCST has tested GEOS-Chem Classic with these versions (but others may work as well):

  • 23.0.0

  • 19.0.5.281

  • 19.0.4

Older compiler versions than these may either be incompatible with GEOS-Chem, or may cause unexpected results. We hope to be able to port GEOS-Chem to the latest Intel 2024 compiler suite (icx for C, C++ and ifx for Fortran) in the near future.

Best way to install: Direct from Intel (Older versions may require purchase of a site license or a student license)

Tip

Intel 2021 and later may be obtained for free, or installed with a package manager such as Spack.

GNU

The GNU Compiler Collection (or GCC for short) is our recommended open-source compiler suite.

Because the GNU Compiler Collection is free and open source, this is a good choice if your institution lacks an Intel site license, or if you are running GEOS-Chem on the Amazon EC2 cloud environment.

While all Linux distributions ship with a pre-installed version of GCC, we recommend that you use GCC 10 or later. Older GCC versions may have trouble parsing certain GEOS-Chem source code.

Attention

If you plan to build required software libraries with Spack, please use Spack release v0.23.1 until further notice. For more information, please see the section entitled GCC 12.2.0 is discontinued in Spack v1.0.0 at our Known bugs and issues reference page.

Best way to install: With Spack.

Other compilers

We currently have no plans to port GEOS-Chem to compilers other than Intel and GNU. But when we interface GEOS-Chem into external models (such as CESM); all compilers used by the parent model can successfully parse GEOS-Chem source code.