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

Element Restriction Oriented #889

Merged
merged 8 commits into from
Feb 7, 2022
Merged

Element Restriction Oriented #889

merged 8 commits into from
Feb 7, 2022

Conversation

rezgarshakeri
Copy link
Collaborator

@rezgarshakeri rezgarshakeri commented Feb 1, 2022

Added CeedElemRestrictionCreateOriented to flip dofs (multiply by -1) if needed for H(div) implementation.

Copy link
Member

@jeremylt jeremylt left a comment

Choose a reason for hiding this comment

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

LGTM. If CI is happy, I'm happy

@rezgarshakeri
Copy link
Collaborator Author

LGTM. If CI is happy, I'm happy

:), thanks for your comments. @jedbrown do you have any comments?

backends/ref/ceed-ref-restriction.c Outdated Show resolved Hide resolved
@jeremylt
Copy link
Member

jeremylt commented Feb 4, 2022

I think with the bool hoisted out, the compiler should generate good code both ways.

Yeah, I was hoping changing the function signature to

static inline int CeedElemRestrictionApply_Ref_Core(CeedElemRestriction r,
    const CeedInt num_comp, const CeedInt blk_size, const CeedInt comp_stride,
    CeedInt start, CeedInt stop, CeedTransposeMode t_mode, const bool is_oriented,
    CeedVector u, CeedVector v, CeedRequest *request)

but not creating a bunch of separate variants would be enough for all of the compilers we use to fairly reliably generate good code.

@rezgarshakeri
Copy link
Collaborator Author

Why CI is failing?

@jeremylt
Copy link
Member

jeremylt commented Feb 4, 2022

CI on LV is flakey

@rezgarshakeri
Copy link
Collaborator Author

@jedbrown , @jeremylt is it good to merge now?!

@jedbrown jedbrown merged commit c6e1a27 into main Feb 7, 2022
@jedbrown jedbrown deleted the rezgar/oriented-restr branch February 7, 2022 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants