Closed stefan-schnake closed 4 months ago
First thing that comes to mind is the mass matrix. Local Kronmult always applies the mass matrix even if it is identity (multiplying a bunch of zeros in the process). Global Kronmult skips the mass matrix
Check the code here. If this returns true
then the corresponding term will not be applied to the equation.
If I understand correctly when you change the geometry then the mass matrix is never identity. One quick check is to see if the problem disappears if this method always returns false
(i.e., put return false;
at the top).
@stefan-schnake did we successfully resolve this one?
Yes we did.
On Wed, Jun 19, 2024, 17:22 Miroslav Stoyanov @.***> wrote:
@stefan-schnake https://github.com/stefan-schnake did we successfully resolve this one?
— Reply to this email directly, view it on GitHub https://github.com/project-asgard/asgard/issues/680#issuecomment-2179471119, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARIMHCFVRYXJWNRFAHLSV6TZIHY77AVCNFSM6AAAAABI2WL6B6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGQ3TCMJRHE . You are receiving this because you were mentioned.Message ID: @.***>
Describe the bug The global and local kronmults are giving different answers for the Lenard Bernstein operator in a spherical geometry $(r,\theta,\varphi)$. By assuming the solution is $\varphi$-independent, this is a 2D problem.
To Reproduce Steps to reproduce the behavior: Branch: https://github.com/stefan-schnake/asgard/tree/sphericalLB
Direct solve
Local Kronmult
Global kronmult
I've verified that the direct/local solve is correct. If
u_f
in https://github.com/stefan-schnake/asgard/blob/sphericalLB/src/pde/pde_sphericalLB.hpp#L38 is set to zero (so that the maxwellian is centered at the origin), all three solves agree.System:
Additional context Add any other context about the problem here.