# # sample.login # ============ # .login fragment for TRANSP on unix # # Last changed: # 1/05/99 DMC -- look for ???? for places likely to have to be changed... # 8/19/96 TBT - Added comment on xdb. # 12/14/95 T. B. Terpstra # put the root of your TRANSP system here: # # ...the key is to define $TRANSPROOT (????) # setenv TRANSPROOT $HOME/transp # # ============================ # components of TRANSP follow... # setenv TMPDIR $TRANSPROOT/tmp setenv LOGDIR $TRANSPROOT/log setenv REQUESTDIR $TRANSPROOT/request setenv DBGDIR $TRANSPROOT/debug setenv WORKDIR $TRANSPROOT/work setenv DATADIR $TRANSPROOT/data setenv RESULTDIR $TRANSPROOT/result setenv CONFIGDIR $TRANSPROOT/config setenv SIGTABLDIR $TRANSPROOT/sigtabl setenv CODESYSDIR $TRANSPROOT/codesys setenv QSHARE $TRANSPROOT/qshare # # the following definition of LOCAL is suitable for a single user # single machine TRANSP system. # setenv LOCAL $TRANSPROOT/codesys # # you may want to redefine some of the above names, e.g.: # # WORKDIR -- to get a local, not NFS mounted, hard disk # DATADIR, RESULTDIR -- to point to an area shared by a group # # however, if sources in $TRANSPROOT/codesys are shared over multiple # machines via NFS mounts, then, most likely each machine will need its # own definition of LOCAL -- its own local copy of compiled binaries. # Then LOCAL has to be redefined on each machine! # #---------------------------------------------------------------- # # (????) # set PATH as appropriate on your machine ... like perhaps ... # # setenv PATH \ # /usr/local/bin:/usr/ucb:/bin:/usr/bin:/usr/local:/usr/new:/usr/hosts # # then add TRANSP executables directories to PATH # setenv PATH \ .:$TRANSPROOT/bin:$CODESYSDIR/csh:$LOCAL/exe:$PATH # # the PATH must lead to correct up-to-date versions of: # cvs rcs diff patch gzip # # the following environment variables are also used by various # shell scripts that want to avoid relying on PATH: # # (????) # `make' must be gnu make (gmake) for transp to build properly. # if necessary, include $HOME/bin early on your PATH and link # $HOME/bin/make to gmake (wherever it is on your system). # setenv XE $LOCAL/exe setenv SC $CODESYSDIR/csh setenv SB $TRANSPROOT/bin # #---------------------------------------------------------------- # # source code control # # the remote cvs source repository (at pppl): setenv CVSROOT xshare@transp.pppl.gov:/u/xshare/repos # # connect using ssh -- following method should find the ssh on the # current system # setenv CVS_RSH `which ssh` # #---------------------------------------------------------------- # # set workstation type (????): # # DEC means DEC ULTRIX # ALPHA means DEC ALPHA # SGI means Silicon Graphics Iris # SUN means SUNOS # ...others may require porting effort... # # for old DEC risc workstations if any still exist: ### setenv WORKSTATION_TYPE DEC # for DEC UNIX ALPHA workstations: setenv WORKSTATION_TYPE ALPHA ### setenv WORKSTATION_TYPE HP ### setenv WORKSTATION_TYPE SGI # for SOLARIS SUN: ### setenv WORKSTATION_TYPE SUN # for pre-SOLARIS SUN: ### setenv WORKSTATION_TYPE SUNOS # for linux (intel or alpha) # # setenv WORKSTATION_TYPE LINUX # recommended for alpha linux: # setenv FORTRAN_VARIANT Compaq # recommended for intel linux: # setenv FORTRAN_VARIANT Fujitsu # # set LOADER_TRAILER (????): -lsocket needed on SUN machines # also add netcdf and hdf libraries here if you want NetCDF/HDF Ufile # and TRANSP output data formats supported. # ### setenv LOADER_TRAILER -lsocket ### setenv LOADER_TRAILER "-L/usr/local/mdsplus/lib -lMdsLib -lMdsIpShr -L/usr/local/lib -lnetcdf -llapack -lblas -lreadline -lhistory -ltermcap" # # some shareable libraries also need a runtime env. var definition: # # setenv LD_LIBRARY_PATH /usr/local/mdsplus/lib # if ( "$WORKSTATION_TYPE" == "SGI" ) then setenv TRAP_FPE \ "UNDERFL=ZERO; OVERFL=TRACE,ABORT; DIVZERO=TRACE,ABORT; INVALID=TRACE,ABORT" endif # alias debug dbx if ( "$WORKSTATION_TYPE" == "HP" ) then alias debug xdb endif # # # library environment variables for commercial libraries: # # single precision: # other/libnag.a to use library provided with TRANSP sources # double precision: # commercial software library must be installed! # setenv NAG_SP other/libnag.a # # (????) is this where your double precision nag is installed ???? : setenv NAG_DP /usr/local/lib/libnag.a # # (DEC or PPPL specific): # do not define VAXCONNECT for standalone unix installations. # activate this definition if account will be slaved to a VMS # TRANSP installation # #standalone setenv VAXCONNECT TRUE # # the following is also useful for VMS slaved operation: #standalone setenv VAXPLN_CONVERT TRUE # # do not defined VAXUPDATE unless you want this account to maintain # a VMS compatible set of TRANSP sources for export to a VMS system # #vms_option setenv VAXUPDATE TRUE # #DECSTATIONS setenv VAXPLN_CONVERT TRUE #DECSTATIONS setenv DECFORT_FFRLIB T # # miscellaneous... # alias nb_debug_on setenv nb_debug true alias nb_debug_off unsetenv nb_debug # alias cdroot cd $TRANSPROOT alias cdcs cd $TRANSPROOT/codesys/source alias cdcc cd $TRANSPROOT/codesys/csh alias cdwork cd $TRANSPROOT/work alias cdresult cd $TRANSPROOT/result alias cdata cd $TRANSPROOT/data # # --------------- # # you may want definitions of TERMINAL_TYPE appropriate to the # terminals you use, in order to be able to see TRANSP/SGLIB graphics # output. # # the logic here works for sites where `xterm' and Macintosh V-pro # terminal emulators are in use. # if ( $?term == 1 ) then setenv TERMINAL_TYPE MAC if ( $term == "xterm" ) then setenv TERMINAL_TYPE XTERM endif endif # # for a 50 zone TRANSP (recommended for large memory machines) # setenv TRANSP_RESOLUTION zone50 # # for a disk cache (MDSplus sites) (at ~/.rplot_cache) # setenv RPLOT_CACHE TRUE # # to convert TRANSP output files to NetCDF format (recommended-- # makes the output files binary portable); if set the NetCDF libraries # must also be defined in LOADER_TRAILER # setenv NETCDF_PLN TRUE # # set this to enable command line editing # recommended but you need -L -lreadline -lhistory -ltermcap # in your LOADER_TRAILER # setenv GETLINE_EDITOR TRUE #