> _grad1 for each step taken. After the linesearch, this call to memcpy > overwrites the gradient at the current step (_grad1) with the initial > gradient (_gradientPtr). … Perhaps the memcpy args should be reversed?
D'oh. Yes, that's a clear bug from copy/paste. The args should be reversed. > I'm trying to track down a bug somewhere in the forcefields that is > causing this to happen: Well, let's start with using new gradients. -Geoff ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel