Skip to content

Commit

Permalink
removing cruft "N" arg
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Dec 7, 2021
1 parent bb5cb48 commit cf65b63
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/RefElemData_polynomial.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function init_face_data(elem::Tri, N; quad_rule_face = gauss_quad(0,0,N))
function init_face_data(elem::Tri; quad_rule_face = gauss_quad(0,0,N))
r1D, w1D = quad_rule_face
e = ones(size(r1D))
z = zeros(size(r1D))
Expand All @@ -9,7 +9,7 @@ function init_face_data(elem::Tri, N; quad_rule_face = gauss_quad(0,0,N))
return rf,sf,wf,nrJ,nsJ
end

function init_face_data(elem::Quad, N; quad_rule_face=gauss_quad(0, 0, N))
function init_face_data(elem::Quad; quad_rule_face=gauss_quad(0, 0, N))
Nfaces = 4
r1D, w1D = quad_rule_face
e = ones(size(r1D))
Expand All @@ -22,7 +22,7 @@ function init_face_data(elem::Quad, N; quad_rule_face=gauss_quad(0, 0, N))
return rf, sf, wf, nrJ, nsJ
end

function init_face_data(elem::Hex, N; quad_rule_face=quad_nodes(Quad(), N))
function init_face_data(elem::Hex; quad_rule_face=quad_nodes(Quad(), N))
rquad, squad, wquad = quad_rule_face
e = ones(size(rquad))
zz = zeros(size(rquad))
Expand All @@ -35,7 +35,7 @@ function init_face_data(elem::Hex, N; quad_rule_face=quad_nodes(Quad(), N))
return rf, sf, tf, wf, nrJ, nsJ, ntJ
end

function init_face_data(elem::Tet, N; quad_rule_face=quad_nodes(Tri(), N))
function init_face_data(elem::Tet; quad_rule_face=quad_nodes(Tri(), N))
rquad, squad, wquad = quad_rule_face
e = ones(size(rquad))
zz = zeros(size(rquad))
Expand Down Expand Up @@ -118,7 +118,7 @@ function RefElemData(elem::Union{Tri, Quad}, approxType::Polynomial, N;
r1, s1 = nodes(elem, 1)
V1 = vandermonde(elem, 1, r, s) / vandermonde(elem, 1, r1, s1)

rf, sf, wf, nrJ, nsJ = init_face_data(elem, N, quad_rule_face = quad_rule_face)
rf, sf, wf, nrJ, nsJ = init_face_data(elem, quad_rule_face = quad_rule_face)

rq, sq, wq = quad_rule_vol
Vq = vandermonde(elem, N, rq, sq) / VDM
Expand Down Expand Up @@ -158,7 +158,7 @@ function RefElemData(elem::Tet, approxType::Polynomial, N;
V1 = vandermonde(elem, 1, r, s, t) / vandermonde(elem, 1, r1, s1, t1)

# Nodes on faces, and face node coordinate
rf, sf, tf, wf, nrJ, nsJ, ntJ = init_face_data(elem, N, quad_rule_face = quad_rule_face)
rf, sf, tf, wf, nrJ, nsJ, ntJ = init_face_data(elem, quad_rule_face = quad_rule_face)

# quadrature nodes - build from 1D nodes.
rq, sq, tq, wq = quad_rule_vol
Expand Down Expand Up @@ -216,7 +216,7 @@ function RefElemData(elem::Hex, approxType::Polynomial, N;
V1 = vandermonde(elem, 1, r, s, t) / vandermonde(elem, 1, r1, s1, t1)

# Nodes on faces, and face node coordinate
rf, sf, tf, wf, nrJ, nsJ, ntJ = init_face_data(elem, N, quad_rule_face=quad_rule_face)
rf, sf, tf, wf, nrJ, nsJ, ntJ = init_face_data(elem, quad_rule_face=quad_rule_face)

# quadrature nodes - build from 1D nodes.
rq, sq, tq, wq = quad_rule_vol
Expand Down

2 comments on commit cf65b63

@jlchan
Copy link
Owner Author

@jlchan jlchan commented on cf65b63 Dec 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: "Tag with name v0.12.2 already exists and points to a different commit"

Please sign in to comment.