Skip to content

Commit

Permalink
handle gc
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKryslUCSD committed Mar 15, 2024
1 parent 95af5a4 commit e498e90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/steady_state/2-d/Poisson_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ function Poisson_FE_Q4_parallel_example(N = 100, ntasks = Threads.nthreads(), as
println("Make node to element map = $(times["FENodeToFEMap"]) [s]")

println("Conductivity")
GC.enable(false)

t0 = time();

t1 = time()
Expand All @@ -366,6 +368,8 @@ function Poisson_FE_Q4_parallel_example(N = 100, ntasks = Threads.nthreads(), as
times["TotalAssembly"] = time() - t0
println("Assembly total = $(times["TotalAssembly"]) [s]")

GC.enable(true)

if assembly_only
DataDrop.store_json("Poisson_FE_Q4_parallel_example-timing-nth=$(Threads.nthreads())", times)
return
Expand Down

0 comments on commit e498e90

Please sign in to comment.