Changeset 422 for trunk/GSASIIstruct.py
- Timestamp:
- Nov 17, 2011 5:31:16 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIstruct.py
r421 r422 1985 1985 dstsq = G2lat.calc_rDsq(np.array([h,k,l]),A) 1986 1986 dst = np.sqrt(dstsq) 1987 pos = refl[5] 1988 const = dpr/np.sqrt(1.0-wave* dst/4.0)1987 pos = refl[5]-parmDict[hfx+'Zero'] 1988 const = dpr/np.sqrt(1.0-wave**2*dstsq/4.0) 1989 1989 dpdw = const*dst 1990 1990 dpdA = np.array([h**2,k**2,l**2,h*k,h*l,k*l]) … … 2238 2238 return [[pfx+'A0',dpdA[0]],[pfx+'A1',dpdA[1]],[pfx+'A2',dpdA[2]]] 2239 2239 elif SGData['SGLaue'] in ['4/m','4/mmm']: 2240 return [[pfx+'A0',dpdA[0]+dpdA[1]],[pfx+'A2',dpdA[2]]] 2240 # return [[pfx+'A0',dpdA[0]+dpdA[1]],[pfx+'A2',dpdA[2]]] 2241 return [[pfx+'A0',dpdA[0]],[pfx+'A2',dpdA[2]]] 2241 2242 elif SGData['SGLaue'] in ['6/m','6/mmm','3m1', '31m', '3']: 2242 return [[pfx+'A0',dpdA[0]+dpdA[1]+dpdA[3]],[pfx+'A2',dpdA[2]]] 2243 # return [[pfx+'A0',dpdA[0]+dpdA[1]+dpdA[3]],[pfx+'A2',dpdA[2]]] 2244 return [[pfx+'A0',dpdA[0]],[pfx+'A2',dpdA[2]]] 2243 2245 elif SGData['SGLaue'] in ['3R', '3mR']: 2244 2246 return [[pfx+'A0',dpdA[0]+dpdA[1]+dpdA[2]],[pfx+'A3',dpdA[3]+dpdA[4]+dpdA[5]]] 2245 2247 elif SGData['SGLaue'] in ['m3m','m3']: 2246 return [[pfx+'A0',dpdA[0]+dpdA[1]+dpdA[2]]] 2248 # return [[pfx+'A0',dpdA[0]+dpdA[1]+dpdA[2]]] 2249 return [[pfx+'A0',dpdA[0]]] 2247 2250 # create a list of dependent variables and set up a dictionary to hold their derivatives 2248 2251 dependentVars = G2mv.GetDependentVars()
Note: See TracChangeset
for help on using the changeset viewer.