Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Liozou committed Nov 21, 2023
1 parent 6fb53b3 commit 49818b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/archive.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function validate_archive(custom_arc, avoid_recompute=true)::Dict{String,String}
@info "Keys will be converted to the topological genome used by CrystalNets. This may take a while."
end
arc_per_thread = [Pair{String,String}[] for _ in 1:nthreads()]
Threads.@threads for (key, id) in collect(parsed)
Threads.@threads :static for (key, id) in collect(parsed)
_g = topological_genome(CrystalNet(PeriodicGraph(key)))
if _g.unstable || !isempty(_g.error)
if _g.unstable
Expand Down
3 changes: 2 additions & 1 deletion src/input.jl
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,8 @@ function sanitize_removeatoms!(graph::PeriodicGraph3D, pos, types, mat, options)
push!(toremove, u.v)
elseif typu == t && u.v > i
u.v toremove && continue
Float64(norm(mat * (pos[u.v] .+ u.ofs .- pos[i]))) > 0.9 && continue
bondlength = Float64(norm(mat * (pos[u.v] .+ u.ofs .- pos[i])))
bondlength > 0.9 && continue
@ifwarn if isempty(toremove)
@warn lazy"$t atoms suspiciously close to one another(bond length: $bondlength). One will be removed."
end
Expand Down

0 comments on commit 49818b6

Please sign in to comment.