-
Notifications
You must be signed in to change notification settings - Fork 117
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
[BUG FIX - ICB] iparam/ipntr sizes may change depending on cases. #247
Conversation
Could you please add a test which reproduce the bug and make sure it doesn't happen anymore? |
Pull Request Test Coverage Report for Build 1165
💛 - Coveralls |
Not really. Always / often happening : allocating more memory than needed (silent-not-hurting bug). The real question is : if 7d341a9 is OK (on LP64), then, could this fix #230 which seems to show up only on ILP64 ? (fix is related to |
15c5147
to
a7e04ad
Compare
OK, here : this is a silent-no-hurting bug. This should not create any problem : it's just that you may sometimes allocate a bit more memory than you need (14/11 integers instead of 11/7). You always allocate more : so there should be no worry here. At first, I suspected this may be the cause of #230 (seems to be ILP64 specific) as it's related to I let this PR aside for now. No problem if not merged. |
After looking back at this, this should preferably be merged :
|
a09b4d7
to
6e775bf
Compare
>> git grep "integer[ ]*iparam" SRC/*[ae]upd*.f SRC/cnaupd.f: integer iparam(11), ipntr(14) SRC/cneupd.f: integer iparam(11), ipntr(14) SRC/dnaupd.f: integer iparam(11), ipntr(14) SRC/dneupd.f: integer iparam(11), ipntr(14) SRC/dsaupd.f: integer iparam(11), ipntr(11) SRC/dseupd.f: integer iparam(7), ipntr(11) SRC/snaupd.f: integer iparam(11), ipntr(14) SRC/sneupd.f: integer iparam(11), ipntr(14) SRC/ssaupd.f: integer iparam(11), ipntr(11) SRC/sseupd.f: integer iparam(7), ipntr(11) SRC/znaupd.f: integer iparam(11), ipntr(14) SRC/zneupd.f: integer iparam(11), ipntr(14) >> git grep "integer[ ]*iparam" PARPACK/SRC/MPI/*[ae]upd*.f PARPACK/SRC/MPI/pcnaupd.f: integer iparam(11), ipntr(14) PARPACK/SRC/MPI/pcneupd.f: integer iparam(11), ipntr(14) PARPACK/SRC/MPI/pdnaupd.f: integer iparam(11), ipntr(14) PARPACK/SRC/MPI/pdneupd.f: integer iparam(11), ipntr(14) PARPACK/SRC/MPI/pdsaupd.f: integer iparam(11), ipntr(11) PARPACK/SRC/MPI/pdseupd.f: integer iparam(7), ipntr(11) PARPACK/SRC/MPI/psnaupd.f: integer iparam(11), ipntr(14) PARPACK/SRC/MPI/psneupd.f: integer iparam(11), ipntr(14) PARPACK/SRC/MPI/pssaupd.f: integer iparam(11), ipntr(11) PARPACK/SRC/MPI/psseupd.f: integer iparam(7), ipntr(11) PARPACK/SRC/MPI/pznaupd.f: integer iparam(11), ipntr(14) PARPACK/SRC/MPI/pzneupd.f: integer iparam(11), ipntr(14)
Rebasing on master as we know now this is no big bug and can't be related to ILP64 problems. |
return 0; | ||
} | ||
else if (aeupd == "eupd") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return 0; | |
} | |
else if (aeupd == "eupd") { | |
return 0; | |
} | |
if (aeupd == "eupd") { |
The else is useless as we have a return just above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi, you could just have press the "commit suggestion" button ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, now I know!
And this is a silent bug...