Difference between revisions of "How to compile DOCK"

From DISI
Jump to: navigation, search
Line 13: Line 13:
 
  setenv CVSROOT /raid1/cvs
 
  setenv CVSROOT /raid1/cvs
 
  cvs co dock
 
  cvs co dock
 +
cd dock/
 
  cvs co libfgz
 
  cvs co libfgz
  
 
'''Compiling the program'''
 
'''Compiling the program'''
  
On a 64-bit machine, e.g. the shared QB3 cluster (chef):
+
On a 64-bit machine, e.g. one of the compilation nodes on the shared QB3 cluster (optint1 or optint2):
  
 
  cd libfgz/
 
  cd libfgz/
Line 26: Line 27:
 
   SOURCES = gzopen.F gzclose.F gzread.F gzwrite.F gzbread.F gzbwrite.F gztell.F gzseek.F ftn_gzio.c
 
   SOURCES = gzopen.F gzclose.F gzread.F gzwrite.F gzbread.F gzbwrite.F gztell.F gzseek.F ftn_gzio.c
 
  make
 
  make
  cp libfgz.a ..
+
  cd ../i386/
cd i386/
+
 
  cp Makefile Makefile.old
 
  cp Makefile Makefile.old
  modify Makefile
+
  modify Makefile (requires only uncommenting the following lines and commenting the respective pendants)
 
   F77 = ifort
 
   F77 = ifort
 
   FFLAGS = -O3 -convert big_endian
 
   FFLAGS = -O3 -convert big_endian

Revision as of 15:07, 11 November 2008

Checking out the source files

  • change to cshell.
  • create a directory for the source files.
  • change to this directory.
  • set the environment variable for CVS.
  • check out the dock sources.
  • check out the auxilliary libraries.

As commands:

csh
mkdir /where/to/put/dock35
cd /where/to/put/dock35
setenv CVSROOT /raid1/cvs
cvs co dock
cd dock/
cvs co libfgz

Compiling the program

On a 64-bit machine, e.g. one of the compilation nodes on the shared QB3 cluster (optint1 or optint2):

cd libfgz/
cp Makefile Makefile.old
modify Makefile:
 FC = ifort -O3
 CC = icc -O3
 SOURCES = gzopen.F gzclose.F gzread.F gzwrite.F gzbread.F gzbwrite.F gztell.F gzseek.F ftn_gzio.c
make
cd ../i386/
cp Makefile Makefile.old
modify Makefile (requires only uncommenting the following lines and commenting the respective pendants)
 F77 = ifort
 FFLAGS = -O3 -convert big_endian
 dock: $(ALLOBJS) dock.o
        @echo Linking all objects and creating dock
        @$(F77) $(FFLAGS) -Bstatic dock.o $(ALLOBJS) -L../libfgz -lfgz -lz -o dock
make