How to compile DOCK: Difference between revisions

From DISI
Jump to navigation Jump to search
(Adapt to newer dock Makefile)
m (bugfix)
Line 20: Line 20:


  ssh optint2
  ssh optint2
cd /where/to/put/dock35
  cd libfgz/
  cd libfgz/
  cp Makefile Makefile.old
  cp Makefile Makefile.old
Line 30: Line 31:
   CC = icc -O3
   CC = icc -O3
  make
  make
  cd ../i386/
  cd ../dock/i386/
  cp Makefile Makefile.old
  cp Makefile Makefile.old
  modify Makefile
  modify Makefile

Revision as of 00:30, 28 August 2009

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
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):

ssh optint2
cd /where/to/put/dock35
cd libfgz/
cp Makefile Makefile.old
modify Makefile:
 comment out the following:
 #FC = gfortran -O3
 #CC = gcc -O3
 uncomment the following:
 FC = ifort -O3
 CC = icc -O3
make
cd ../dock/i386/
cp Makefile Makefile.old
modify Makefile
 comment out the following:
 #F77 = pgf77
 #FFLIBS = -lc -lgcc_eh -lgfortran
 #FFLAGS = -byteswapio ...
 uncomment the following:
 F77 = ifort
 FFLAGS = -O3 -convert big_endian
make