Skip to content

Commit 95859e9

Browse files
authored
Merge pull request #93 from m3g/fix_replacement_of_bad_molecules
Fix replacement of bad molecules
2 parents 1254a71 + 8a87f1b commit 95859e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/restmol.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ subroutine restmol(itype,ilubar,n,x,fx,solve)
6262
n = nsafe
6363
nmols(itype) = nmoltype
6464
x(ilubar+1:ilubar+3) = xmol(1:3)
65-
x(ilubar+ntotmol+1:ilubar+ntotmol+3) = xmol(4:6)
65+
x(ilubar+ntotmol*3+1:ilubar+ntotmol*3+3) = xmol(4:6)
6666
comptype(1:ntype) = compsafe(1:ntype)
6767
init1 = initsafe
6868

0 commit comments

Comments
 (0)