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

how to get the averaged value from the mutlilevel MultiFabs? #3891

Closed
ztdepztdep opened this issue Apr 14, 2024 · 1 comment
Closed

how to get the averaged value from the mutlilevel MultiFabs? #3891

ztdepztdep opened this issue Apr 14, 2024 · 1 comment

Comments

@ztdepztdep
Copy link

I want to get the total averaged value from the mutlilevel MultiFabs? Which function does this job?

@WeiqunZhang
Copy link
Member

There is a function called volumeWeightedSum in AMReX_MultiFabUtil.H that probably does what you want. It returns a volume weighted sum of all "leaf" cells.

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

No branches or pull requests

2 participants