-
Notifications
You must be signed in to change notification settings - Fork 401
Refactor grdimage using functions #4215
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
Conversation
Splitting the various cases into separate subfunctions to allow OpenMP use.
|
FYI, this PR fails on Linux: |
|
I built using gcc-mp and ran all tests (-j1) using the OpenMP enabled GMT. No failures, so I think this branch is good to merge now. |
|
FYI, homebrew may be broken recently. That's why the macOS CI fails in all our CI jobs. |
|
@PaulWessel Please merge master to keep this branch up-to-date. |
|
I see some compilation warnings: |
|
Thanks, I will leave the gmt_getscale warning there since this resulted from the work to enhance +c and it looks like that flag is not used - I need to understand this a bit more before I simply remove that parameters rather than marking it unused. |
Description of proposed changes
grdimage has become very hard to debug due to ad hoc growth in capabilities. While it initially only dealt with plotting grids via CPTs it now can read images as well, and the grids may be remote or tiled. With intensity grids possibly to be derived from the tiled grids, the order of reading and calculations changed, making the flow much more variable.
This PR achieves several things:
The same tests that pass in master now pass in this branch. However, I have not yet tested this with OpenMP hence I added the WIP prefix. Also, I'd like @joa-quim to have a detailed look since both he and I made many changes to grdimage over the years so we need a more careful review given the importance of this specific module to GMT.