Skip to content

Commit

Permalink
Update PoissonNonConformingOctreeModelsTests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amartinhuertas authored Oct 28, 2023
1 parent 7cab44d commit 57a7720
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/PoissonNonConformingOctreeModelsTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,20 +150,20 @@ module PoissonNonConformingOctreeModelsTests
bhred(v) = (vf)*dΩhred

op = AffineFEOperator(ahred,bhred,Uhred,Vhred)
# uhred = solve(op)
# e = u - uhred
# el2 = sqrt(sum( ∫( e⋅e )*dΩhred ))
# println("[SOLVE FINE REDISTRIBUTED] el2 < tol: $(el2) < $(tol)")
# @assert el2 < tol
uhred = solve(op)
e = u - uhred
el2 = sqrt(sum( ( ee )*dΩhred ))
println("[SOLVE FINE REDISTRIBUTED] el2 < tol: $(el2) < $(tol)")
@assert el2 < tol


# uhred2 = GridapDistributed.redistribute_fe_function(uh,Vhred,fmodel_red,red_glue)
# e = u - uhred2
# el2 = sqrt(sum( ∫( e⋅e )*dΩhred ))
# println("[REDISTRIBUTE SOLUTION] el2 < tol: $(el2) < $(tol)")
# @assert el2 < tol
uhred2 = GridapDistributed.redistribute_fe_function(uh,Vhred,fmodel_red,red_glue)
e = u - uhred2
el2 = sqrt(sum( ( ee )*dΩhred ))
println("[REDISTRIBUTE SOLUTION] el2 < tol: $(el2) < $(tol)")
@assert el2 < tol

# fmodel_red
fmodel_red
end

function test_refine_and_coarsen_at_once(ranks,
Expand Down

0 comments on commit 57a7720

Please sign in to comment.