Changeset 5066 for trunk/GSASIIpwd.py
- Timestamp:
- Nov 5, 2021 1:03:50 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIpwd.py
r5058 r5066 2621 2621 Isotopes = RMCPdict['Isotopes'] 2622 2622 Atypes = RMCPdict['aTypes'] 2623 if 'Va' in Atypes: 2624 Isotope['Va'] = 'Nat. Abund.' 2625 Isotopes['Va'] = {'Nat. Abund.':{'SL':[0.0,0.0]}} 2623 2626 atPairs = RMCPdict['Pairs'] 2624 2627 Files = RMCPdict['files'] … … 2652 2655 pair = pair.replace(' ','') 2653 2656 at1,at2 = pair.split('-') 2654 ncoef = Isotopes[at1][Isotope[at1]]['SL'][0]*Natoms[at1]/sumatms 2655 ncoef *= Isotopes[at2][Isotope[at2]]['SL'][0]*Natoms[at2]/sumatms 2657 if at1 == 'Va' or at2 == 'Va': 2658 ncoef = 0.0 2659 else: 2660 ncoef = Isotopes[at1][Isotope[at1]]['SL'][0]*Natoms[at1]/sumatms 2661 ncoef *= Isotopes[at2][Isotope[at2]]['SL'][0]*Natoms[at2]/sumatms 2656 2662 if at1 != at2: 2657 2663 ncoef *= 2. 2658 2664 Ncoeff += [ncoef,] 2659 pairMin = [atPairs[pair] for pair in Pairs if pair in atPairs]2660 maxMoves = [Atypes[atm] for atm in Atseq if atm in Atypes]2665 pairMin = [atPairs[pair] if pair in atPairs else [0.0,0.,0.] for pair in Pairs ] 2666 maxMoves = [Atypes[atm] if atm in Atypes else 0.0 for atm in Atseq ] 2661 2667 fname = Name+'.dat' 2662 2668 fl = open(fname,'w')
Note: See TracChangeset
for help on using the changeset viewer.