Skip to content

Commit

Permalink
WIP: minimizer: Try using lstsq rcond of machine precision to see if …
Browse files Browse the repository at this point in the history
…we get better platform portability
  • Loading branch information
richardotis committed Dec 4, 2020
1 parent 7b501c4 commit 39eb6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycalphad/core/minimizer.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ cpdef find_solution(list compsets, int[::1] free_stable_compset_indices,
#print('equilibrium_rhs', np.array(equilibrium_soln))
mass_residual = np.sum(np.abs(mass_residuals))
lstsq(&equilibrium_matrix[0,0], equilibrium_matrix.shape[0], equilibrium_matrix.shape[1],
&equilibrium_soln[0], 1e-50)
&equilibrium_soln[0], -1)
# XXX: Not strictly valid for varying state variables
delta_phase_amt = np.abs(np.array(equilibrium_soln[num_components:]))
#print('trial_delta_phase_amt', np.array(delta_phase_amt))
Expand Down

0 comments on commit 39eb6cf

Please sign in to comment.