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

add gradients for euler2d #163

Closed
wants to merge 2 commits into from
Closed

add gradients for euler2d #163

wants to merge 2 commits into from

Conversation

fnrizzi
Copy link
Member

@fnrizzi fnrizzi commented Sep 17, 2023

Gradients for each app are disabled by default, so to enable them one to have:

PRESSIODEMOAPPS_ENABLE_GRADIENTS

defined before including the demoapps headers (e.g. added as a compile definition when building an executable)

NOTE : This is still a draft because I need to think more about whether it is better NOT to put the gradients insdie the app and just keep a separate object for doing so. Effectively there is no strong reason for keeping the gradients inside the app.
The gradients just need a mesh object and field on it, so it is fully orthogonal to what the field is.
The state vector is lives outside anyway, so this is another reason for keeping the gradients separate.

@fnrizzi fnrizzi changed the title Add gradients for euler2d add gradients for euler2d Sep 17, 2023
@fnrizzi fnrizzi marked this pull request as draft September 17, 2023 12:26
@fnrizzi fnrizzi closed this Sep 17, 2023
@fnrizzi fnrizzi deleted the gradients_for_euler2d branch September 17, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant