Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Setting up

ulloaa edited this page Dec 21, 2014 · 1 revision

LSNM makes use of an environment variable called $LSNM to locate the working directory for input/output of simulations, as well as for finding the executables. Prior to executing LSNM simulations on your Unix workstation or Mac, you will need to declare the value of $LSNM by adding the following two lines at the end of your .bash_profile (located in your home directory):

LSNM=$HOME/location/of/LSNM/files
export LSNM

The first time you set that up you will need to force Unix to read the .bash_profile and upload it to memory by typing the following on the command line:

$ source .bash_profile

You do not need to do that again (unless the directory location changes) because Unix will read the .bash_profile everytime you log in and upload the variables contained there into memory. However, note that the command source only works for the terminal on which you execute the command and not for terminals that were opened prior to executing the command source.