The programs for the etching problem are written in FORTRAN 77 using the MPI communication library. The etch program will be run on the Data Star, by following the instructions given below.
If you are interested in more information regarding the use of the Data Star, it is recommended that you read the Data Star User Guide.
These programs can be run in the Linux environment. To start, you have two options: - To use Linux machines. You have to start a terminal. - To use the Windows NT machines. You have to use the ssh program. To start ssh: Start-->Programs-->Network Applications-->SSH--->Secure Shell Client Type "linux" as Host Name and click Connect. Don't be impatient if it doesn't immediately connect. Enter your CADLAB login and password. This will make a connection to one of the Linux machines in Engineering I. Now you are on your account via a UNIX interface.
To login on the Data Star you must use the secure shell command, in the Linux environment:
% ssh -lUserID dslogin.sdsc.edu
To transfer the etch program and auxiliary files to the Data Star, you have to use pftp. pftp is an ftp-like interface to HPSS. The following links and text below describe how to use the pftp utility:
% pftp pftp> cd /users/csb/u4078 pftp> get etch-inter.tar pftp> quit %
In order to compile and run the etch program, you have to untar the file etch-inter.tar:
%tar xvf etch-inter.tarIn the directory etch-inter, the following files will be present:- Makefile - etch.f - etchh.f - etchn.f - input - plot.f - plotmatlab.f
To run the etch program you must be logged on into the so-called interactive nodes:
% ssh -lUserID dspoe.sdsc.eduThese are the nodes that have been set up for interactive use. There are 4 interactive nodes. Each has 8 POWER4 CPUs and 2 GB of memory. Interactive access to the nodes is shared - at times, there may be more than one user job running on a node, for this, there may be a significant run-time variability.
In order to compile the etch program, change to the etch-inter directory and run make:% cd etch-inter % makeTo run the etch program:% poe etch -nodes number_of_nodes -tasks_per_node number_of_tasks -rmpool 1 -euilib ip -euidevice en0 where: number_of_processors=number_of_nodes*tasks_per_node and can be one of: 4, 8, 16, or 32; For more nodes (i.e. 64), the batch environment should be used. The following combinations are recommended: 4 processors -> -nodes 1 -tasks_per_node 4 8 processors -> -nodes 1 -tasks_per_node 8 16 processors -> -nodes 2 -tasks_per_node 8 32 processors -> -nodes 4 -tasks_per_node 8 The file input must be in the directory in which you are running etch. You will be prompted for input data.
First, compile this program by typing
% f77 -o plot plot.fSuccessful compilation will generate the executable plot file.
To run the plot program:% plot You will be prompted for input data, specifically for the time step to be plotted and the names of the files to use.
To print the output file generated by the etch and plot programs, transfer the files to a UCSB machine, using the scp [secure copy] utility:
To copy the file "pi.f" from a local machine to the Data Star: scp pi.f userID@dslogin.sdsc.edu:pi.f To copy the file pi.f from the Data Star to the Engineering domain machines: scp pi.f login_name@linux.engr.ucsb.edu:pi.f which will copy the "pi.f" file to the machines in the "ENGR" domain. ["userID" is your LoginID on the Data Star and "login_name" is your LoginID on the Engineering domain machines]The output file generated by the plot program can now be printed in the CAD-Lab, after you switch to your CAD-Lab account, by using the following command for each output file to be printed:% enscript -r -fCourier5 name_of_output_file
Matlab is a powerful mathematical software which also has a nice plotting interface. To plot your graphs in Matlab, you have to first compile the program plotmatlab.f:
% f77 -o plotmatlab plotmatlab.fSuccessful compilation will generate the executable plotmatlab file.
To run the plotmatlab program:% plotmatlabYou will be prompted for input data, specifically for the time step to be plotted and the names of the files to use.
To transfer the files to a UCSB machine(into your X:\ directory), using the scp utility:
To copy the file "pi.m" from a local machine to the Data Star: scp pi.m userID@dslogin.sdsc.edu:pi.m To copy the file pi.m from the Data Star to the Engineering domain machines: scp pi.m login_name@linux.engr.ucsb.edu:pi.m which will copy the "pi.m" file to the machines in the "ENGR" domain. ["userID" is your LoginID on the Data Star and "login_name" is your LoginID on the Engineering domain machines]and exit the Data Star (dspoe nodes) by typing "exit" or "logout".
On Windows, you can start Matlab in the conventional way.
On Linux, you can use Matlab with Xwindow by:% matlab -display your_computer_name:0.0 (your_computer_name e.g. ecipc004.engr.ucsb.edu)or by setting the display to your computer first and then running Matlab:% setenv DISPLAY your_computer_name:0.0 (your_computer_name e.g. ecipc004.engr.ucsb.edu) % matlab
Once you access Matlab, open your files and run them by either pressing F5 or from the menus
Debug --> (Save and) Run
Print your plots using the Matlab figure window.Parallel Programs, Compiler File, Plot Files, Input File and Output Files