Skip to content

Commit

Permalink
stability fixes on SAFTgammaMie
Browse files Browse the repository at this point in the history
  • Loading branch information
longemen3000 committed Sep 1, 2022
1 parent 319f63e commit 7ff6220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/SAFT/SAFTgammaMie/SAFTgammaMie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ function SAFTgammaMie(components;
comp_sites,idx_dict = gc_to_comp_sites(sites,groups)
assoc_idx = gc_to_comp_assoc_idx(gc_bondvol,comp_sites,idx_dict)
assoc_idxs,outer,inner,outer_size,inner_size = assoc_idx.values,assoc_idx.outer_indices,assoc_idx.inner_indices,assoc_idx.outer_size,assoc_idx.inner_size
_comp_bondvol = [gc_bondvol.values.values[i] for i assoc_idxs]
_comp_epsilon_assoc = [gc_epsilon_assoc.values.values[i] for i assoc_idxs]
_comp_bondvol = Float64[gc_bondvol.values.values[i] for i assoc_idxs]
_comp_epsilon_assoc = Float64[gc_epsilon_assoc.values.values[i] for i assoc_idxs]
compval_bondvol = Compressed4DMatrix(_comp_bondvol,outer,inner,outer_size,inner_size)
compval_epsilon_assoc = Compressed4DMatrix(_comp_epsilon_assoc,outer,inner,outer_size,inner_size)
comp_bondvol = AssocParam{Float64}("epsilon assoc",components,compval_bondvol,comp_sites.sites,String[],String[])
Expand Down

0 comments on commit 7ff6220

Please sign in to comment.