Skip to content

Commit

Permalink
use in-place 2-arg ldiv!
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cook committed Jan 22, 2025
1 parent 207ba22 commit 792de1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions moment_kinetics/src/electron_kinetic_equation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,8 @@ pressure \$p_{e∥}\$.
counter += 1
end

@timeit_debug global_timer "ldiv!" MPIQR.ldiv!(this_output_buffer, precon_lu, this_input_buffer)
this_output_buffer .= this_input_buffer
@timeit_debug global_timer "ldiv!" MPIQR.ldiv!(precon_lu, this_output_buffer)

begin_serial_region()
counter = 1
Expand Down Expand Up @@ -2027,7 +2028,8 @@ to allow the outer r-loop to be parallelised.
counter += 1
end

@timeit_debug global_timer "ldiv!" MPIQR.ldiv!(this_output_buffer, precon_lu, this_input_buffer)
this_output_buffer .= this_input_buffer
@timeit_debug global_timer "ldiv!" MPIQR.ldiv!(precon_lu, this_output_buffer)

begin_serial_region()
counter = 1
Expand Down

0 comments on commit 792de1d

Please sign in to comment.