Skip to content

Conversation

@PaulWessel
Copy link
Member

THe problem is that grdcontour -N calls grdview and then itself via GMT_Call_Module. However, we have already flagged it as a oneliner but now there are several calls. The solution was to not trigger the oneliner check for grdcontour -N and then detect it instead in the special -N branch in grdcontour. We parse the options and discover if the command was a oneliner or not, and if it is we craft the gmt begin call needed and add the gmt end show call at the end. Seems to work.
Addresses aspects of #3701 but not the external part.

THe problem is that grdcontour -N calls grdview and then itself via GMT_Call_Module.  However, we have already flagged it as a oneliner but now there are several calls.  The solution was to not trigger the oneliner check for grdcontour -N and then detect it instead in the special -N branch in grdcontour.  We parse the options and discover if the command was a oneliner or not, and if it is we craft the gmt begin call needed and add the gnt end show call at the end.  Seems to work.
@PaulWessel PaulWessel requested review from joa-quim and seisman July 22, 2020 04:49
@PaulWessel PaulWessel added the backport 6.1 Backport this PR to 6.1 branch label Jul 22, 2020
@joa-quim joa-quim merged commit 7c3ee2e into master Jul 22, 2020
@joa-quim joa-quim deleted the grdcontour-onliner branch July 22, 2020 12:00
github-actions bot pushed a commit that referenced this pull request Jul 22, 2020
THe problem is that grdcontour -N calls grdview and then itself via GMT_Call_Module.  However, we have already flagged it as a oneliner but now there are several calls.  The solution was to not trigger the oneliner check for grdcontour -N and then detect it instead in the special -N branch in grdcontour.  We parse the options and discover if the command was a oneliner or not, and if it is we craft the gmt begin call needed and add the gnt end show call at the end.  Seems to work.
joa-quim pushed a commit that referenced this pull request Jul 22, 2020
THe problem is that grdcontour -N calls grdview and then itself via GMT_Call_Module.  However, we have already flagged it as a oneliner but now there are several calls.  The solution was to not trigger the oneliner check for grdcontour -N and then detect it instead in the special -N branch in grdcontour.  We parse the options and discover if the command was a oneliner or not, and if it is we craft the gmt begin call needed and add the gnt end show call at the end.  Seems to work.

Co-authored-by: Paul Wessel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 6.1 Backport this PR to 6.1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants