Closed JoshuaLampert closed 1 year ago
Without having looked at the code yet, is it possible that this is due to the fact that non-cons systems of equations pass a tuple of surface flux functions instead of a single surface flux function and that BoundaryConditionDirichlet
does not know about this and does not try to peel off the correct one, instead trying to call the tuple?
cc @andrewwinters5000
The routines for computing the physical boundary fluxes on TreeMesh
need modified in order to handle the nonconservative terms. Specifically, one needs to modify the existing calc_boundary_flux_by_direction!
to dispatch on nonconservative_terms::Val{false}
and a new routine needs written that dispatches on nonconservative_terms::Val{true}
.
I think I fixed this. Please have a look at my PR.
It seems like there is a problem with the
BoundaryConditionDirichlet
when using aTreeMesh
and a tuple of surface flux functions. The following Code, e.g., gives the error messageLoadError: MethodError: objects of type Tuple{FluxHLL{typeof(min_max_speed_naive)}, typeof(flux_nonconservative_fjordholm_etal)} are not callable
: