Registration and download

Download LAPMOD modeling system

Installation

Installing and running the LAPMOD system is quite simple under Windows.

Using the supplied executables

Extract the distribution archive into a working directory. The LAPMOD executables in LAPMOD/bin/Windows target 64-bit Windows on x86-64 processors and include the GCC and Fortran runtimes. The OpenMP variants also include the OpenMP runtime, so no separate compiler, OpenMP installation or compiler-runtime DLLs are needed to run them. Standard Windows system libraries are still used.

  • lapmod_omp.exe: the parallel OpenMP version.
  • lapmod_serial.exe: the serial version.

From your simulation directory, run the desired executable with the input filename as its argument. For example:

"C:\LAPMOD\bin\Windows\lapmod_omp.exe" lapmod.inp

Number of OpenMP threads

The OpenMP versions use the value of OMP_NUM_THREADS if it is already set in the environment. Otherwise, the GNU OpenMP runtime normally uses one thread per available logical processor. For example, a machine with 16 available logical processors normally uses 16 threads. The command line shown above does not itself specify a thread count.

At startup, LAPMOD reports the actual team size in its initial parallel region and the configured maximum number of threads. For example:

OpenMP threads available: 16
OpenMP max threads:       16

To request four threads and disable automatic adjustment of the team size, use the following commands in a Windows command prompt:

set OMP_NUM_THREADS=4
set OMP_DYNAMIC=FALSE
"C:\LAPMOD\bin\Windows\lapmod_omp.exe" lapmod.inp

Compiling LAPMOD from source

Recompilation requires a 64-bit gfortran toolchain on PATH, including its static runtime libraries. From the LAPMOD\code\serial directory, run:

compile_serial.bat
or from the LAPMOD\code\omp_parallel directory, run:

compile_omp.bat

Please note that for LAPMOD applications other than the test cases you will need to run a CALMET simulation first, in order to prepare the meteorological input. CALMET is part of the CALPUFF modeling system and is available free of charge from CALPUFF website.

You can also download a test case to start using LAPMOD.