As a0601_01 before, but now with lamboot on SCS classroom PCs.
--------------------------------------------------------------

Before procceding: Setup logon without pwd (see below).
------------------

MPI test run on 4 processors: 

There is a file "make_mpi" in this folder. Have a look and type:

./make_mpi p_hbtest_mpi.f  

This generates a.out (simulation parameters are set in mc_pt_mpi.par). 
Next, type:

mv a.out a4.out

You want to execute a4.out. Hosts are defined in lam-bhost.def.
Have a look and replace the hosts by those you want to use.

Logon to the first of those hosts and type the command "lamboot".
Have a look at the file "run_mpi" and type:

./run_mpi > a4.txt

-c 4:        4 CPUs.
-c 4 n0-1:   Effect on classroom machines: nohup on the first two CPUs.

After the run type: lamhalt.

------------------------

===========================================================

Setup of environment:
---------------------

If you are using Lam you need to first setup your environment. You 
need to make sure that Lam is using ssh rather than rsh (all recent 
implemtations do this). You will need to setup your ssh environment 
to allow you to login to the used nodes without a password. Once, 
you set this up, you can run lamboot to start daemons on multiple 
nodes to submit your job.

Below is step-by-step command list:

    ssh-keygen -t dsa

    * it will prompt you for several things: 
      just type "enter" each time.

Then, type:

cd ~/.ssh

ls -Fal

You should find the file id_dsa.pub. Type (copy):

    cp id_dsa.pub authorized_keys

(If you have already a file authorized keys: 
    cp id_dsa.pub authorized_keys2.)

    * log into all nodes you want to use, to test
      that no pwd is required anymore.


----------------

SCS specific setup:

for tcsh shell in ~/.cshrc file add:
setenv LAMRSH "ssh -x"

for bash shell in ~/.bash_profile add:
LAMRSH="ssh -x"
export LAMRSH

If you do not know which shell you on: Type "echo $0".