Installing and running the LAPMOD system is quite simple under Linux, macOS and Windows. This page explains how to install LAPMOD under Linux.
You need to have a Fortran compiler installed on your computer. The suggested choice is
Depending on your distribution, you may install gfortran with:
sudo apt-get install gfortran (Ubuntu)
sudo yum install gfortran (CentOS)
Download the source code (.zip file) and extract it into any working directory you like Download LAPMOD modeling system
After archive extraction you will find a directory named lapmod_system_YYYYMMDD. You're now ready to compile the codes. You need to open a terminal first, with Xterm.
From the LAPMOD_SYSTEM_YYYMMDD directory, change directory to any of the directories LAPMOD, LAPEMI or LAPOST and run
compile.bat. This will create the executable.
You can modify the
compile script according to your compiler in case it is not gfortran or if you want to change some settings.
The compressed archive already includes the Windows executables, as an alternative to compilation.
Use the command
path/to/lapmod.exe lapmod.inp to run the model, where
path/to/ indicate the path to the directory where the executable is.
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 Exponent, Inc
You can also download a test case to start using LAPMOD.