Skip to content

Commit

Permalink
adjust threshhold
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Jul 26, 2024
1 parent 5ae6977 commit 4da9c88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/RefElemData_polynomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,10 @@ function RefElemData(elem::Hex,
M1D = Vq1D' * diagm(wq1D) * Vq1D

# form kronecker products of multidimensional matrices to invert/multiply
# use dense matrix "kron" if N is 4 or lower; use memory-saving "kronecker" otherwise
build_kronecker_product = (N < 5) ? kron : kronecker

# use dense matrix "kron" if N is small.
# use memory-saving "kronecker" if N is large.
build_kronecker_product = (N < 8) ? kron : kronecker

VDM = build_kronecker_product(VDM_1D, VDM_1D, VDM_1D)
invVDM = build_kronecker_product(invVDM_1D, invVDM_1D, invVDM_1D)
invM = build_kronecker_product(invM_1D, invM_1D, invM_1D)
Expand Down

0 comments on commit 4da9c88

Please sign in to comment.