Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parabolic mortars for P4estMesh #1662

Draft
wants to merge 92 commits into
base: main
Choose a base branch
from

Conversation

jlchan
Copy link
Contributor

@jlchan jlchan commented Oct 6, 2023

This PR should not be merged until #1629 is merged.

This overlaps with the PR in #1661 as well

Comment on lines +724 to +743
i_small_start, i_small_step = index_to_start_step_2d(small_indices[1],
index_range)
j_small_start, j_small_step = index_to_start_step_2d(small_indices[2],
index_range)

for position in 1:2
i_small = i_small_start
j_small = j_small_start
for node in eachnode(dg)

for v in eachvariable(equations)
viscous_flux_normal_ll = cache.mortars.u[1, v, position, node, mortar]
viscous_flux_normal_rr = cache.mortars.u[2, v, position, node, mortar]

# TODO: parabolic; only BR1 at the moment
fstar[position][v, node] = 0.5 * (viscous_flux_normal_ll + viscous_flux_normal_rr)
end

i_small += i_small_step
j_small += j_small_step
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
i_small_start, i_small_step = index_to_start_step_2d(small_indices[1],
index_range)
j_small_start, j_small_step = index_to_start_step_2d(small_indices[2],
index_range)
for position in 1:2
i_small = i_small_start
j_small = j_small_start
for node in eachnode(dg)
for v in eachvariable(equations)
viscous_flux_normal_ll = cache.mortars.u[1, v, position, node, mortar]
viscous_flux_normal_rr = cache.mortars.u[2, v, position, node, mortar]
# TODO: parabolic; only BR1 at the moment
fstar[position][v, node] = 0.5 * (viscous_flux_normal_ll + viscous_flux_normal_rr)
end
i_small += i_small_step
j_small += j_small_step
for position in 1:2
for node in eachnode(dg)
for v in eachvariable(equations)
viscous_flux_normal_ll = cache.mortars.u[1, v, position, node, mortar]
viscous_flux_normal_rr = cache.mortars.u[2, v, position, node, mortar]
# TODO: parabolic; only BR1 at the moment
fstar[position][v, node] = 0.5 * (viscous_flux_normal_ll + viscous_flux_normal_rr)
end

@DanielDoehring DanielDoehring added the enhancement New feature or request label Oct 10, 2023
@DanielDoehring
Copy link
Contributor

@jlchan How bad are the merge conflicts? Does it make sense to stay with this or start from main again?

@DanielDoehring
Copy link
Contributor

A reduced version of this PR is #1691 which is forked from this to maintain commits from @jlchan and @apey236 .

@jlchan
Copy link
Contributor Author

jlchan commented Oct 25, 2023

@jlchan How bad are the merge conflicts? Does it make sense to stay with this or start from main again?

I don't think they're bad. Since your PR supercedes ours, we should mostly just be using your commits.

Thanks for making the second PR. I'll take a look hopefully tomorrow.

@DanielDoehring
Copy link
Contributor

Thanks for making the second PR. I'll take a look hopefully tomorrow.

Sure, reason for this was that this PR contains some stuff that we disregarded when doing TreeMesh PR.

@DanielDoehring
Copy link
Contributor

With #1691 being merged, this should be reduced to only adding the 3D part.

@jlchan
Copy link
Contributor Author

jlchan commented Nov 26, 2023

@apey236 would you mind making a separate PR for your 3D parabolic mortar implementation? We can then close this PR

@apey236
Copy link
Contributor

apey236 commented Nov 26, 2023

@apey236 would you mind making a separate PR for your 3D parabolic mortar implementation? We can then close this PR

@jlchan Sure I will.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants