Skip to content

Commit

Permalink
update Makefiles for implicit solvent binding free energies
Browse files Browse the repository at this point in the history
  • Loading branch information
jayponder committed May 4, 2024
1 parent bad6bea commit 0814ff2
Show file tree
Hide file tree
Showing 12 changed files with 104 additions and 111 deletions.
Binary file modified doc/tinker-guide.pdf
Binary file not shown.
40 changes: 20 additions & 20 deletions make/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,38 +63,38 @@ APBS_LIBS = -lapbsmainroutines -lapbs -lmaloc -lapbsblas
## Build: Tinker
## OS Type: Generic Linux
## CPU Type: Intel x86 Compatible
## Compiler: GNU gfortran 9.3
## Compiler: GNU gfortran 11.2
## Parallel: OpenMP

#F77 = gfortran
#F77FLAGS = -c
#OPTFLAGS = -Ofast -march=native -fopenmp
F77 = gfortran
F77FLAGS = -c
OPTFLAGS = -Ofast -march=native -fopenmp
#OPTFLAGS = -Ofast -fopenmp
#OPTFLAGS = -Og -g -fbacktrace -fcheck=bounds -Wunused -Wmaybe-uninitialized
#LIBDIR = -L. -L$(TINKER_LIBDIR)/linux -Wl,--no-as-needed -ldl
#LIBS =
#LIBFLAGS = -crusv
#RANLIB = ranlib
#LINKFLAGS = $(OPTFLAGS) -static-libgcc
#RENAME = rename_bin
LIBDIR = -L. -L$(TINKER_LIBDIR)/linux -Wl,--no-as-needed -ldl
LIBS =
LIBFLAGS = -crusv
RANLIB = ranlib
LINKFLAGS = $(OPTFLAGS) -static-libgcc
RENAME = rename_bin

## Build: Tinker
## OS Type: Apple macOS
## CPU Type: Intel x86 & Apple Silicon
## Compiler: GNU gfortran 13.2
## Parallel: OpenMP

F77 = gfortran
F77FLAGS = -c
OPTFLAGS = -Ofast -march=native -fopenmp
#F77 = gfortran
#F77FLAGS = -c
#OPTFLAGS = -Ofast -march=native -fopenmp
#OPTFLAGS = -Ofast -fopenmp
#OPTFLAGS = -Og -g -fbacktrace -fcheck=bounds -Wunused -Wmaybe-uninitialized
LIBDIR = -L. -L$(TINKER_LIBDIR)/macos
LIBS =
LIBFLAGS = -crusv
RANLIB = ranlib -c
LINKFLAGS = $(OPTFLAGS) -static-libgcc
RENAME = rename_bin
#LIBDIR = -L. -L$(TINKER_LIBDIR)/macos
#LIBS =
#LIBFLAGS = -crusv
#RANLIB = ranlib -c
#LINKFLAGS = $(OPTFLAGS) -static-libgcc
#RENAME = rename_bin

## Build: Tinker
## OS Type: Microsoft Windows 10
Expand Down Expand Up @@ -1668,7 +1668,7 @@ bitors.o: angbnd.o atoms.o bitor.o couple.o iounit.o
bndpot.o:
bndstr.o:
bonds.o: atmlst.o atoms.o bndstr.o couple.o iounit.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o pbstuf.o solpot.o solute.o virial.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o mutant.o pbstuf.o solpot.o solute.o virial.o
bound.o:
bounds.o: atomid.o atoms.o boxes.o math.o molcul.o
boxes.o:
Expand Down
4 changes: 2 additions & 2 deletions make/Makefile-apbs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ APBS_LIBS = -lapbsmainroutines -lapbs -lmaloc -lapbsblas
## Build: Tinker
## OS Type: Generic Linux
## CPU Type: Intel x86 Compatible
## Compiler: GNU gfortran 9.3
## Compiler: GNU gfortran 11.2
## Parallel: OpenMP

CC = gcc
Expand Down Expand Up @@ -1686,7 +1686,7 @@ bitors.o: angbnd.o atoms.o bitor.o couple.o iounit.o
bndpot.o:
bndstr.o:
bonds.o: atmlst.o atoms.o bndstr.o couple.o iounit.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o pbstuf.o solpot.o solute.o virial.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o mutant.o pbstuf.o solpot.o solute.o virial.o
bound.o:
bounds.o: atomid.o atoms.o boxes.o math.o molcul.o
boxes.o:
Expand Down
4 changes: 2 additions & 2 deletions make/Makefile-ffe-linux
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ JAVA_LIBS = -ljvm
## Build: Tinker
## OS Type: Generic Linux
## CPU Type: Intel x86 Compatible
## Compiler: GNU gfortran 9.3
## Compiler: GNU gfortran 11.2
## Parallel: OpenMP

CC = gcc
Expand Down Expand Up @@ -1717,7 +1717,7 @@ bitors.o: angbnd.o atoms.o bitor.o couple.o iounit.o
bndpot.o:
bndstr.o:
bonds.o: atmlst.o atoms.o bndstr.o couple.o iounit.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o pbstuf.o solpot.o solute.o virial.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o mutant.o pbstuf.o solpot.o solute.o virial.o
bound.o:
bounds.o: atomid.o atoms.o boxes.o math.o molcul.o
boxes.o:
Expand Down
4 changes: 2 additions & 2 deletions make/Makefile-ffe-macos
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ JAVA_LIBS = -ljvm
## Build: Tinker
## OS Type: Generic Linux
## CPU Type: Intel x86 Compatible
## Compiler: GNU gfortran 9.3
## Compiler: GNU gfortran 11.2
## Parallel: OpenMP

#CC = gcc
Expand Down Expand Up @@ -1717,7 +1717,7 @@ bitors.o: angbnd.o atoms.o bitor.o couple.o iounit.o
bndpot.o:
bndstr.o:
bonds.o: atmlst.o atoms.o bndstr.o couple.o iounit.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o pbstuf.o solpot.o solute.o virial.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o mutant.o pbstuf.o solpot.o solute.o virial.o
bound.o:
bounds.o: atomid.o atoms.o boxes.o math.o molcul.o
boxes.o:
Expand Down
4 changes: 2 additions & 2 deletions make/Makefile-ffe-windows
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ JAVA_LIBS = -ljvm
## Build: Tinker
## OS Type: Generic Linux
## CPU Type: Intel x86 Compatible
## Compiler: GNU gfortran 9.3
## Compiler: GNU gfortran 11.2
## Parallel: OpenMP

#CC = gcc
Expand Down Expand Up @@ -1726,7 +1726,7 @@ bitors.o: angbnd.o atoms.o bitor.o couple.o iounit.o
bndpot.o:
bndstr.o:
bonds.o: atmlst.o atoms.o bndstr.o couple.o iounit.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o pbstuf.o solpot.o solute.o virial.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o mutant.o pbstuf.o solpot.o solute.o virial.o
bound.o:
bounds.o: atomid.o atoms.o boxes.o math.o molcul.o
boxes.o:
Expand Down
4 changes: 2 additions & 2 deletions openmm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ NVML_LIB = /usr/local/cuda/lib64/stubs
## Build: Tinker-OpenMM
## OS Type: Generic Linux
## CPU Type: Intel x86 Compatible, Nvidia GPU
## Compiler: GNU gfortran 9.3, g++, nvcc
## Compiler: GNU gfortran 11.2, g++, nvcc
## Parallel: OpenMP, OpenMM

CC = gcc
Expand Down Expand Up @@ -1384,7 +1384,7 @@ bitors.o: angbnd.o atoms.o bitor.o couple.o iounit.o
bndpot.o:
bndstr.o:
bonds.o: atmlst.o atoms.o bndstr.o couple.o iounit.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o pbstuf.o solpot.o solute.o virial.o
born.o: atomid.o atoms.o bath.o chgpot.o couple.o deriv.o inform.o iounit.o math.o mpole.o mutant.o pbstuf.o solpot.o solute.o virial.o
bound.o:
bounds.o: atomid.o atoms.o boxes.o math.o molcul.o
boxes.o:
Expand Down
4 changes: 4 additions & 0 deletions source/born.f
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ subroutine born
use iounit
use math
use mpole
use mutant
use pbstuf
use solpot
use solute
Expand Down Expand Up @@ -340,6 +341,7 @@ subroutine born
do k = 1, n
rk = rdescr(k)
mixsn = 0.5d0 * (sneck(i)+sneck(k))
if (mut(k)) mixsn = mixsn * elambda
if (i.ne.k .and. rk.gt.0.0d0) then
xr = x(k) - xi
yr = y(k) - yi
Expand Down Expand Up @@ -605,6 +607,7 @@ subroutine born1
use couple
use deriv
use math
use mutant
use solpot
use solute
use virial
Expand Down Expand Up @@ -900,6 +903,7 @@ subroutine born1
do k = 1, n
rk = rdescr(k)
mixsn = 0.5d0 * (sneck(i)+sneck(k))
if (mut(k)) mixsn = mixsn * elambda
if (k.ne.i .and. rk.gt.0.0d0) then
xr = x(k) - xi
yr = y(k) - yi
Expand Down
7 changes: 4 additions & 3 deletions source/mdsave.f
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ subroutine mdsave (istep,dt,epot,eksum)
use socket
use titles
implicit none
integer i,j
integer i,j,lext
integer istep
integer ixyz,iind
integer ivel,ifrc
integer iend,isave,lext
integer freeunit,trimtext
integer iend,isave
integer freeunit
integer trimtext
integer modsave
real*8 dt,pico
real*8 epot,eksum
Expand Down
3 changes: 0 additions & 3 deletions source/mutate.f
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,7 @@ subroutine altsolv
if (use_solv) then
do i = 1, n
if (mut(i)) then
c rsolv(i) = rsolv(i) * elambda
rdescr(i) = rdescr(i) * elambda
shct(i) = shct(i) * elambda
c sneck(i) = sneck(i) * elambda
radcav(i) = radcav(i) * elambda
raddsp(i) = raddsp(i) * elambda
epsdsp(i) = epsdsp(i) * elambda
Expand Down
Loading

0 comments on commit 0814ff2

Please sign in to comment.