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

Can i out the value of a value not located in the IOprocessors? #3859

Closed
ztdepztdep opened this issue Mar 29, 2024 · 2 comments
Closed

Can i out the value of a value not located in the IOprocessors? #3859

ztdepztdep opened this issue Mar 29, 2024 · 2 comments

Comments

@ztdepztdep
Copy link

ztdepztdep commented Mar 29, 2024

I'm working with a Multifab data structure and I want to monitor the value at index (50, 90). However, there's a possibility that this particular index might not be present in the I/O processor.
My question is: Can I still output the value using print functions, even if the index is missing?

@ztdepztdep ztdepztdep changed the title which file include the function "boxArray(lev)", I cann't find this definition. Can i out the value of a value not located in the IOprocessors? Mar 29, 2024
@WeiqunZhang
Copy link
Member

amrex::printCell( my_multifab, amrex::IntVect(50,90)); (for 2d)

https://amrex-codes.github.io/amrex/doxygen/namespaceamrex.html#a376ff66b5e6a76d195cace00df41d05e

@ztdepztdep
Copy link
Author

amrex::printCell( my_multifab, amrex::IntVect(50,90)); (for 2d)

https://amrex-codes.github.io/amrex/doxygen/namespaceamrex.html#a376ff66b5e6a76d195cace00df41d05e

How to monitor its value , i.e. assign the value at (50,90) to a variable,then broadcast it to all the other processs.

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