Skip to content

Commit

Permalink
separate serial assembly from make
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKryslUCSD committed Feb 10, 2024
1 parent 9d137c8 commit f132ae1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/steady_state/3-d/Poisson_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,13 @@ function Poisson_FE_H20_parass_tasks_example(N = 25, ntasks = Base.Threads.nthr
@info("Conductivity: serial")
start = time()
a = SysmatAssemblerSparse(0.0)
a.nomatrixresult = true
conductivity(femm, a, geom, Temp)
@info "Conductivity done serial $(time() - start)"
# DataDrop.store_matrix("I", a.rowbuffer)
# DataDrop.store_matrix("J", a.colbuffer)
# DataDrop.store_matrix("V", a.matbuffer)
a.nomatrixresult = false
K = makematrix!(a)
@info "All done serial $(time() - start)"
K = nothing
Expand Down Expand Up @@ -422,7 +424,8 @@ function Poisson_FE_H20_parass_threads_example(N = 25, ntasks = Base.Threads.nt

@info("Conductivity: serial")
start = time()
a = SysmatAssemblerSparse(0.0, true)
a = SysmatAssemblerSparse(0.0)
a.nomatrixresult = true
conductivity(femm, a, geom, Temp)
@info "Conductivity done serial $(time() - start)"
# DataDrop.store_matrix("I", a.rowbuffer[1:a.buffer_pointer-1])
Expand Down

0 comments on commit f132ae1

Please sign in to comment.