Skip to content

Commit

Permalink
Implement a parallel smoothness test.
Browse files Browse the repository at this point in the history
  • Loading branch information
HechtiDerLachs committed Sep 20, 2024
1 parent bc9a857 commit 5e4398d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/Serialization/IPC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,28 @@ end

map(rmprocs, process_ids)

process_ids = addprocs(3)
@everywhere using Oscar

@testset "parallel smoothness test for schemes" begin
channels = Oscar.params_channels(Union{AffineScheme, Ring})

IP2 = projective_space(QQ, [:x, :y, :z])
S = homogeneous_coordinate_ring(IP2)
(x, y, z) = gens(S)

I = ideal(S, y^2*z + x^3 + x^2*z)

X, _ = sub(IP2, I)
X_cov = covered_scheme(X)
U = affine_charts(X_cov)
for a in U
Oscar.put_params(channels, ambient_coordinate_ring(a))
Oscar.put_params(channels, OO(a))
end
results = pmap(is_smooth, U)
@test results == [1, 1, 0]
end

map(rmprocs, process_ids)

0 comments on commit 5e4398d

Please sign in to comment.