jackhamel16 / Acoustics

Acoustic integral equation solver
1 stars 0 forks source link

Save Js matrix after first calculation #100

Open jackhamel16 opened 3 years ago

jackhamel16 commented 3 years ago

In calculating the scattering matrix here https://github.com/jackhamel16/Acoustics/blob/develop/src/scattering_matrix.jl#L23, Js is computed. It is recomputed a second time in the calculation of the scattering matrix derivative. I want to return Js from the calculateScatteringMatrix function (as well as ACA versions) and provide it as an input argument to the derivative calculation.

jackhamel16 commented 3 years ago

showing a speedup on a test problem from 341 seconds to 295 seconds for a full WS solve