The CTT package from VNI Inc. is installed in the directory /opt/vni/ on Strauss only. The installation directory will be referred to as CTT_DIR throughout this docuement and others. The configuration changes to your UNIX account suggested in this document will only affect your computing environment when you are on Strauss.
You must define a series of environment variables (including the CTT installation directory CTT_DIR) to use CTT. You must also source (i.e., execute the commands in) the file $CTT_DIR/ctt/bin/cttsetup.csh. Rather than repeatedly issuing these and other commands to enable you to program using CTT, this document suggests a series of changes to your configuration files that accomplish the same objective.
This documentation assumes that your UNIX account's
configuration ("dot") files
match, or are based upon, the User Services recommended
configuration files: .cshrc, .login, .localalias, and .localenv. These
files are found in the /opt/proto directory. Typing the UNIX command
~consult/proto/setup
will cause your current configuration files to be renamed (for backup
purposes) and replaced with the standard configuration files. The
system will display the names of the renamed and replacement files.
There are several CTT versions in the /opt/vni directory. There are three things to consider before you begin using CTT.
Language | CTT Directory | Suffix | Load libraries |
---|---|---|---|
Fortran 90/95 | /opt/vni/CTT6.1 | .f90 | $LINK_F90_SMP |
Fortran 77 | /opt/vni/CTT6.1 | .f | $LINK_FNL_SMP |
C | /opt/vni/CTT5.0 | .c | $LINK_CNL_PERF |
# IMSL Computational Technology Toolkit installation directory setenv CTT_DIR /opt/vni/CTT6.1 if ! -d $CTT_DIR unsetenv CTT_DIR
This example illustrates choosing the directory for Fortran 90.
These commands cause the CTT_DIR environment variable to be set properly each time you start a session on Strauss. Whenever a new version of CTT is installed, you will need to update the setenv CTT_DIR line in this file.
if $?CTT_DIR then alias cttshell "(setenv NEED_CTT; newgrp \!*)" else alias cttshell echo "CTT not available on `uname -n`" endif if $?NEED_CTT then source $CTT_DIR/ctt/bin/cttsetup.csh # CTT load library for Fortran 90 setenv LDLIBS "$LINK_F90_SMP" endif
This example illustrates choosing the load libraries for Fortran 90.
These commands will cause two commands to run at the beginning of any shell with NEED_CTT set. If for any reason, you want to change the load libraries, you may explicitly type a different setenv LDLIBS shell command, or update the setenv LDLIBS line in this file.
cttshellTo associate the new shell with a different group project id (e.g., a UNIX group assigned to a class), type the following command instead:
cttshell projectwhere project is your 4-digit group project number.
Since you have named your program with the .f90 suffix, and put the correct setenv LDLIBS command in your setup files, you can compile and run with two commands:
make program ./program
This example illustrates compiling and running a program with basename program. The "basename" is the file name without the suffix.
Effective use of any of these X Windows servers requires you to further modify your UNIX configuration files. These changes are described in the document X Windows configuration setup for using CTT.
Last modified: May 19, 2005
This page maintained by Dean Nairn
Copyright © University of Delaware, 2005.