-
Notifications
You must be signed in to change notification settings - Fork 2
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
Comments
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 nx*ny 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! |
Why is there no |
There is no need to because Python functions can make permanent
modifications to elements of an input array (be careful about this!).
…On Wed, 9 Sep 2020 at 17:19, WangYun1995 ***@***.***> wrote:
Why is there no return in the function update_field_vals?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVSOCM37I35O3GRCGICXILSE5CC5ANCNFSM4RAXNKLQ>
.
|
I am confused about several arguments, e.g.
field
,a
,b
, andc
in the functionupdate_field_vals
.What are the differences between
field
andvalues
?Can you clarify the meaning for arguments
a
,b
, andc
?And I don't understand
indices
in the line159, why shouldb['ind']
be multiplied bynx
?why should
c['ind']
be multipliednxny
?what does
nxny
refer to?The text was updated successfully, but these errors were encountered: