Change in energy_p_new_barrier.F, in eelec, aorund line 3065
authorrojas <anarojas1@gmail.com>
Tue, 30 Jun 2015 14:49:35 +0000 (10:49 -0400)
committerrojas <anarojas1@gmail.com>
Tue, 30 Jun 2015 14:49:35 +0000 (10:49 -0400)
commitf973c199bc1118ee2c17e28c31718c36544cdc70
tree732a7e82f55ee723b4a51e903f2bfa1289394589
parent18010d3bb85a86b499dc4569225e21faffea9634
Change in energy_p_new_barrier.F, in eelec, aorund line 3065
 Because in general iturn3_start and iturn3_end are nnt and nct-3,
respectively, if the chain has a GLY as the first or last residues,
nnt=1 or nct=nres, the program ends up evaluating itype(0) or itype(nres+1).
The first case causes a segmentation fault, the second won't (if maxres is
bigger than nres), but it won't cycle the loop which is what was intended
source/unres/src_MD-M/energy_p_new_barrier.F