Running_LPJmL_locally - PIK-LPJmL/LPJmL GitHub Wiki

Running LPJmL locally / for one Pixel

See also [[LPJmL_technical_documentation#How-to-run-it-first-steps|here]]

TOC

NOTE: before running you need to [[HowTo#Compilation|compile LPJmL]]

run locally (linux)

To run the model on your local machine, you just type after the Linux prompt (“>”)

./bin/lpjml lpjmlMexicoLanduse.conf

If running on the cluster login node (for one pixel just for slim testing purposes), you’ll need to change the MPI settings, as the cluster automatically compiles for MPI usage. For this, execute

    export I_MPI_DAPL_UD=disable
    export I_MPI_FABRICS=shm:shm
    export I_MPI_DAPL_FABRIC=shm:shm

otherwise you’ll receive an error message on MPI.

The command to launch the model run on the login node is:

lpjml lpjml.conf

windows

In Visual Studio Express, choose the Visual Studio Command Prompt from the tools menu. Navigate to your working directory (change drive by entering the drive letter (e.g. C or D) followed by a colon) and execute the command (assuming that the exe is in the debug sub-directory, as is the standard in Visual Studio.

Debug\name_of_exe_file lpjml_myconfname.conf

note:
name_of_exe_file without extension .exe

Do not run large simulations on your local windows machine, but run it on the cluster

If you get the following errors:

  • “Cannot find or open the PDB file”: go to Tools > Options > Debugging > Native and check Load DLL Exports
  • “The program can´t start because xxyyzz.dll is missing from your computer”: 1) search where the dll is located with Windows explorer; 2) go to Properties > Configuration Properties > Debugging; 3) set the field Environment to PATH=dll_path (e.g. PATH=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE)