PARPACK: Initialize machine dependent constants only once in PDNAITR - #483
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
|
Looks relevant. Do this triggered problems at you r side? |
The current implementation checks the value of the variable `aitr_first` but sets `first`. Change that to set `aitr_first` to false after the initialization has run. This also brings that part of the implementation of `PDNAITR` in line with the corresponding logic that is used in the implementation of the other `P?NAITR`.
|
Thanks for reviewing. No, I didn't see any actual problems. While at that, I skimmed some of the source files of ARPACK-ng and came across this inconsistency. |
OK. Indeed, it sounds like what my first impressions were when grepping/reviewing the code. |
So, do you agree that this can be merged as-is? |
I guess yes. Is the patch complete? |
As far as I can tell, this one line change is all that is needed. |
|
@mmuetzel: thanks! |
Pull request purpose
The current implementation checks the value of the variable
aitr_firstbut setsfirst.Detailed changes proposed in this pull request
Change that to set
aitr_firstto false after the initialization has run.This also brings that part of the implementation of
PDNAITRin line with the corresponding logic that is used in the implementation of the otherP?NAITR.