Hi Lubna,
I think the best way is to set up once for all the environmental
variables by adding them to your initialisation profile script, i.e.
in a BASH shell using export and in a CSH/TCSH using setenv.
The environmental variables you have to set in your initialisation
script are those listed at
http://depts.washington.edu/clawpack/users-4.6/installing.html#setting-environment-variables
In order to do that you can copy and paste the output of setenv.bash
or setenv.csh into your initialisation script.
In my case, since I have software that uses environmental variables
with the same names and I want to have a complete control of which
environmental variables I am setting when I open a new shell I group
each block of environmental variables within a "function", e.g.
clawpack4-6-1()
{
export CLAW='..................'
export FC='gfortran'
export PYTHONPATH='......................'
}
I hope this helps.
Best
On Jan 11, 9:38 am, Randall John LeVeque <
r...@uw.edu> wrote:
> Actually running setenv.py should set CLAW properly if you run it from the
> top Clawpack directory.
>
> You really only need to run this once, and then if you put the resulting
> commands from setenv.bash into your .bashrc file you don't even have to
> source these each time you start a new shell.
>
> - Randy
>
> On Tue, Jan 3, 2012 at 1:17 PM, Eric N Johnson
> <
ericnathanjohn...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Lubna,
>
> > What people said previously is correct. The setenv.py file needs to be
> > modified so that:
>
> > CLAW = '/home/{system name}/{Clawpack directory}/'
>
> > For example, mine says CLAW = '/home/ChuckNorris/ClawPack/**claw-4.6.1/'
>
> > Every time you run Clawpack, you need to type the following in the
> > terminal window that you are going to use to run the tsunami model {in this
> > case for bash shell}:
>
> > $ python setenv.py
> > $ source setenv.bash
>
> > The output you should get from the first line (above) is something like:
> > "
> > ------------------------------**------------------------------
> > Full path to claw directory should be:
> > $CLAW = /home/ChuckNorris/ClawPack/**claw-4.6.1/
>
> > ------------------------------**------------------------------
> > The files setenv.csh and setenv.bash contain the appropriate
> > commands to set environment variables for csh or bash shells
> > and also some aliases you may find convenient
> > ------------------------------**------------------------------