Author: bugman Date: Mon Jan 21 16:08:33 2008 New Revision: 4875 URL: http://svn.gna.org/viewcvs/relax?rev=4875&view=rev Log: Bug fix for the maths_fns.n_state_model.func() optimisation target function. The back-calculated the reduced tensor structure is now being reset to zero at each call. Because of the sum, it was just getting bigger and bigger. Modified: branches/N_state_model/maths_fns/n_state_model.py Modified: branches/N_state_model/maths_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/maths_fns/n_state_model.py?rev=4875&r1=4874&r2=4875&view=diff ============================================================================== --- branches/N_state_model/maths_fns/n_state_model.py (original) +++ branches/N_state_model/maths_fns/n_state_model.py Mon Jan 21 16:08:33 2008 @@ -88,6 +88,9 @@ @type return: float """ + # Reset the back-calculated the reduced tensor structure. + self.red_bc = self.red_bc * 0.0 + # Update the rotation matricies. for c in xrange(self.N): # The matrix itself.