-
Hello,
I have a question regarding the swapmoves subroutine. Which variable indicates the box into which a molecule is being transferred (and subsequently regrown)?
I've had a look at the code, and thought this would be it:
____________________________________________
if ( .not. lfound .and. rmol .lt. pmtest ) then
c --- assign the two boxes
lfound...
2009-11-11 14:19:51 UTC in MCCCS Towhee
-
I've managed to trace the error to a variable that somehow changed when used in my subroutine; its value was much larger than the original value - hence the 'Seg fault' error, as I'm using this as the upper index in a do loop. Seems to work fine now, as I've reassigned the original value to this var in the subroutine.
Thanks,
Suren.
2009-06-26 12:15:59 UTC in MCCCS Towhee
-
Hi again,
The syntax in the code seems fine, in terms of the vars being passed from the mainloop to my subroutine (in both cases, the arguments have been declared as integers (so it can't be a conflict in data types):
_____________________________________
(...)
do nnn = 1, nstep
if (mod(nnn,bupdate)==0) then
Bcount=Bcount+1
call...
2009-06-25 14:55:42 UTC in MCCCS Towhee
-
Good day Towhee users,
I've been encountering a 'segmentation fault' error during runtime, and always at the same point in the program's execution. Here's the background:
Within mainloop.F, in the outer loop that counts the number of cycles (counter variable 'nnn'), I've placed a call to a subroutine that I've written, which is also in mainloop.F. The program runs without errors or...
2009-06-25 13:17:11 UTC in MCCCS Towhee
-
Good day Towhee users,
I've been encountering a 'segmentation fault' error during runtime, and always at the same point in the program's execution. Here's the background:
Within mainloop.F, in the outer loop that counts the number of cycles (counter variable 'nnn'), I've placed a call to a subroutine that I've written, which is also in mainloop.F. The program runs without errors or...
2009-06-25 13:09:18 UTC in MCCCS Towhee