Skip to content

Commit

Permalink
Initial revision
Browse files Browse the repository at this point in the history
git-svn-id: file://localhost/data1/git/presto_svn/trunk@1 5fac236c-a0d8-0310-9745-ef116914eda1
  • Loading branch information
scottransom committed Jul 2, 1999
0 parents commit a68e3d2
Show file tree
Hide file tree
Showing 218 changed files with 59,909 additions and 0 deletions.
106 changes: 106 additions & 0 deletions .cshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# This start up file assumes the shell is 'tcsh'.
# Note: to 'uncomment' a line, remove the initial '#' character with an editor.

#______________________________________________________________________________
# This sets the default file creation mask. '022' means 'not group writable
# and not world writable, but all other permissions exist'.
umask 022

# This prevents 'core dumps' from crashed programs from being created.
limit coredumpsize 0

if ($?prompt) then
set prompt = "%m %h> "
set notify = 
set history = 100
set savehist = 20

# Here are some suggestions of useful aliases. You may comment
# them out, add others of your own, etc., as you see fit.
alias h history
alias m more
alias lo exit
alias vt100 "set term = vt100"
alias df 'df -k'

set noclobber
set lineedit


setenv MAIL /usr/spool/mail/$USER
setenv PRINTER lp342

#Edit the first 'setenv' line below to indicate the workstation you normally use
# (i.e. the one running the X server) and then uncomment this section
# if you want to be prompted for your $DISPLAY variable upon remote login.

# setenv HOMEHOST myhost
# if (($TERM == xterm || $TERM == xterms) && ($?DISPLAY == 0)) then
# setenv REMOTEX 1
# echo "Enter value for DISPLAY (host:#)(<CR> for "$HOMEHOST":0.0):"
# set a=($<)
# if ($a == "") then
# setenv DISPLAY $HOMEHOST":0.0"
# else
# setenv DISPLAY $a
# endif
# endif
#


endif

#______ LAYERED SOFTWARE _______________________________________________________

# Uncomment the lines corresponding to the package(s) you wish to run, making
# sure not to uncomment the description line, of course.

# Initializations

setenv MANPATH /usr/man:/usr/local/man

set path=( . \
$HOME/bin \
/usr/bin \
/usr/local/bin \
)



# TeX
setenv TEXINPUTS .:/usr/local/lib/tex/inputs
setenv TEXINPUTS ${TEXINPUTS}:/usr/local/lib/tex/inputs/latex
setenv TEXINPUTS ${TEXINPUTS}:/usr/local/lib/tex/inputs/latex209
setenv TEXINPUTS ${TEXINPUTS}:/usr/local/lib/tex/inputs/aasmacros
setenv TEXFORMATS /usr/local/lib/tex/formats
setenv TEXFONTS .:/usr/local/lib/tex/fonts

# xdvi fonts
setenv XDVIFONTS $TEXFONTS/pk300\:$TEXFONTS/pk118
#______________________________________________________________________________
# Mongo setup
# not available yet on the ALphas
# use the following setenv to send hardcopy files to printer $PRINTER
#setenv MONGOFILES /usr/local/lib/mongo/mongofiles.lw
# use the following setenv to save files in postscript format in the
# current directory. the file names will be something like mgoXXXXX.ps
# where XXXXX stands for the process id.
#setenv MONGOFILES /usr/local/lib/mongo/mongofiles.save_ps
#______________________________________________________________________________
#______________________________________________________________________________
# PGPLOT (Caltech VLBI Graphics Subroutine Library)
setenv PGPLOT_FONT /usr/local/pgplot/grfont.dat
#______________________________________________________________________________

# GAG Software
set path=($path /home0/gag/exe/bin)
#
# IDL
#
source /usr/local/rsi/idl_4/bin/idl_setup
setenv ASTRO_DATA $IDL_DIR/user_contrib/astron/data
setenv IDL_DIR /usr/local/rsi/idl_4 # latest IDL version
setenv IDL_PATH \+$IDL_DIR/lib:$IDL_DIR/user_contrib/astron/pro# astro lib
setenv IDL_DEVICE X
alias idl $IDL_DIR/bin/idl # generic IDL version
#
55 changes: 55 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Steps to install:

1. Install FFTW. This is not actually required but since FFTW is so
damn fast you will suffer a 50% or more performance hit if you don't.
This is pretty much true even if you have access to a vendor specific
optimized library (in this case the performance will more than likely
be similar).

2. Install PGPLOT.

3. Install TEMPO. Make sure to set the TEMPO environment variable.

4. Set a PRESTO environment variable to this directory (the top level
directory in the Preto distribution).

5. cd to $PRESTO/src. Check and modify the Makefile for your machine
of choice. Insure that the library and include file directories are
correct for FFTW, PGPLOT, and TEMPO.

6. Get some memory and cache information ready for your machine.

7. Do a 'make prep' which will ask you for some memory info and then
turn the pulsar database into its binary form.

8. If you are using FFTW, do a 'make makewisdom'. This gets FFTW
acquainted with your system. It is best if you are the only user on
the machine when you run this, as it is very computation intensive and
may take a while.

9. Do a 'make'. This will make all of the executables.

10. The required libraries and miscellaneous files will be located in
presto/lib and copies of the executables will be located in
presto/bin. You may copy or move the executables wherever you like,
but the library files should stay put. (That's why you define the
PRESTO variable -- so the routines can find them).

11. If you want to save some disk space, do a 'make clean' in the
'src' directory. This will leave the libraries and binaries in their
respective directories but will get rid of all the extra stuff in the
'src' directory.

12. Go find pulsars.


Platform specific information:

DEC ALPHA
---------
1. In order to link the routines which use the
pgplot libraries, you may need to chance the Makefile so that instead
of linking with f77, you link with cc and the $(CFLAGS) variable.


Scott Ransom
72 changes: 72 additions & 0 deletions MPI/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Makefile for MPI_PRESTO
# for Pentium/Linux
# by Scott M. Ransom
# V 0.9 1 Dec 97

# Path to pulsar database files
DATABASE = "$(PRESTO)/lib"

# Path to MPE headers

MPEINC = /incoming/mpich/mpe

# The names of the libraries to produce
FFTAPPS = libfftapps.a
FASTFFTS = libfastffts.a

# For Pentium with GCC
CC = mpicc
F77 = g77
CFLAGS = -I$(PRESTO)/include -I$(MPEINC) -DDATABASE='$(DATABASE)' \
-Wall -ansi -pedantic \
-O6 -ffast-math -m486 -malign-loops=2 -malign-jumps=2 \
-malign-functions=2 -fno-strength-reduce

# For DEC Alpha
#CFLAGS = -I$(PRESTO)/include -I$(PGPLOTINC) -DDATABASE='$(DATABASE)'\
# -std1 -O3 -D_FASTMATH

# For Solaris
#CFLAGS = -I$(PRESTO)/include -I$(PGPLOTINC) -DDATABASE='$(DATABASE)'\
# -fast

# For SGI 64bit
#CFLAGS = -I$(PRESTO)/include -I$(PGPLOTINC) -DDATABASE='$(DATABASE)'\
# -64 -O2

# For SGI 32bit
#CFLAGS = -I$(PRESTO)/include -I$(PGPLOTINC) -DDATABASE='$(DATABASE)'\
# -32 -O2

# For Cray T3E
#CFLAGS = -I$(PRESTO)/include -I$(PGPLOTINC) -DDATABASE='$(DATABASE)'\
# -O3 -h aggress -X m

# For Cray T90
#CFLAGS = -I$(PRESTO)/include -I$(PGPLOTINC) -DDATABASE='$(DATABASE)'\
# -O3

MPIRZWFILES = mpisearch_rzw.o mpisearch_rzw_m.o mpisearch_rzw_s.o


mpisearch_rzw: $(MPIRZWFILES)
$(CC) $(CFLAGS) -o $@ $(MPIFILES) -L$(PRESTO)/lib -lfftapps

clean:
rm -f *.o *~ *#

squeaky:
rm -f core *.dat *.fft *.inf *.o *~ *.win* *.ps *_rzw *#
rm -f mpisearch_rzw












Loading

0 comments on commit a68e3d2

Please sign in to comment.