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

What does it mean for arguments a, b, c in the function update_field_vals? #1

Open
WangYun1995 opened this issue Sep 9, 2020 · 4 comments

Comments

@WangYun1995
Copy link

I am confused about several arguments, e.g. field, a, b, and c in the function update_field_vals.
What are the differences between field and values?
Can you clarify the meaning for arguments a, b, and c?
And I don't understand indices in the line159, why should b['ind'] be multiplied by nx?
why should c['ind'] be multiplied nxny?
what does nxny refer to?

@shixun22
Copy link
Owner

shixun22 commented Sep 9, 2020 via email

@WangYun1995
Copy link
Author

Hi, Trying the example given in the code and looking into how the functions are called will help you find out the answers. abc are just dummies for xyz. The code is mapping 3D indices to a 1D one and thus the multiplication by nx and nxny respectively. By the way, as you can see in the comments of code, this clever way of doing cic is not my contribution. The credit goes to Joop and Neil. I only did a very small modification to Neil’s version. Best, Xun

On Wed, Sep 9, 2020 at 9:12 AM WangYun1995 @.
**> wrote: I am confused about several arguments, e.g. field, a, b, and c in the function update_field_vals. What are the differences between field and values? Can you clarify the meaning for arguments a, b, and c? And I don't understand indices in the line159, why should b['ind'] be multiplied by nx? why should c['ind'] be multiplied nxny? what does nxny refer to? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVSOCJDQKEWGD5RQLKG2LLSE3I7VANCNFSM4RAXNKLQ .

Thank you for your clarification!

@WangYun1995
Copy link
Author

Why is there no return in the function update_field_vals?

@shixun22
Copy link
Owner

shixun22 commented Sep 10, 2020 via email

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