Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Dec 12, 2024
1 parent 683a85e commit c8339a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_greenfunction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,9 @@ end
@test_throws ArgumentError meanfield(g)
end

using Distributed; addprocs(1) # for Serialization below
@everywhere using Quantica

@testset begin "OrbitalSliceArray serialization"
g = LP.linear() |> supercell(4) |> supercell |> hamiltonian(hopping(I), orbitals = 2) |> greenfunction
m = g(0.2)[cells = 0]
Expand All @@ -631,8 +634,6 @@ end
@test_throws ArgumentError deserialize(m´, v)

# issue #327
using Distributed; addprocs(1) # for Serialization
@everywhere using Quantica
g = LP.linear() |> hopping(1) |> attach(nothing, cells = 0) |> greenfunction
@test remotecall_fetch(g[1], 2, 0) isa OrbitalSliceMatrix
end

0 comments on commit c8339a1

Please sign in to comment.