Skip to content

Commit 1140fe1

Browse files
author
Daniel Schick
committed
fix bug in xraymag hom reflectivity
1 parent 31bddcc commit 1140fe1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

udkm1Dsim/simulations/xrays.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,6 +1814,7 @@ def calc_homogeneous_matrix(self, S, last_A, last_A_phi, last_k_z, *args):
18141814
strains[layer_counter]+1),
18151815
layer._thickness*(
18161816
strains[layer_counter]+1),
1817+
False,
18171818
magnetizations[layer_counter])
18181819

18191820
roughness = layer._roughness
@@ -2281,7 +2282,7 @@ def calc_uc_boundary_phase_matrix(self, uc, last_A, last_A_phi, last_k_z, strain
22812282
22822283
"""
22832284
K = uc.num_atoms # number of atoms
2284-
force_recalc = True
2285+
# force_recalc = True
22852286
for j in range(K):
22862287
if j == (K-1): # its the last atom
22872288
del_dist = (strain+1)-uc.atoms[j][1](strain)

0 commit comments

Comments
 (0)