fixed bug in hill criterion

This commit is contained in:
Martin Diehl 2014-08-06 20:07:47 +00:00
parent 1402527f48
commit c8f16f16fa
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ def asFullTensor(voigt):
def Hill48(x, F,G,H,L,M,N):
a = F*(x[1]-x[2])**2 + G*(x[2]-x[0])**2 + H*(x[0]-x[1])** + \
2*L*x[4]**2 + 2*M*x[5]**2 + 2*N*x[3]**2 -1.
a = F*(x[1]-x[2])**2.0 + G*(x[2]-x[0])**2.0 + H*(x[0]-x[1])**2.0 + \
2.0*L*x[4]**2.0 + 2.0*M*x[5]**2.0 + 2.0*N*x[3]**2.0 -1.0
return a.ravel()