Skip to content

Commit

Permalink
Seg. fault fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pafonine committed Feb 27, 2025
1 parent 0fc2879 commit 42485b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mmtbx/refinement/real_space/adp.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,10 @@ def run_one_one(self, args):
else:
for it in range(1,2):
x = fmodel.xray_structure.extract_u_iso_or_u_equiv()*adptbx.u_as_b(1.)
ma = min(999,flex.max(x)*2)
if ma<1: ma = 100
lower = flex.double(x.size(), 0)
upper = flex.double(x.size(), min(999,flex.max(x)*2) )
upper = flex.double(x.size(), ma )
calculator = tg(
fmodel = fmodel,
x = x,
Expand Down

0 comments on commit 42485b9

Please sign in to comment.