Skip to content

Commit

Permalink
Fix an issue with 'ellipsoid' too.
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Jan 21, 2025
1 parent 6eff2b7 commit d9c95fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/potential/gmtgravmag3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static int parse(struct GMT_CTRL *GMT, struct GMTGRAVMAG3D_CTRL *Ctrl, struct GM
if (n_par < 4) err_npar = 1;
if (n_par < 7) Ctrl->M.params[ELLIPSOID][nELL][6] = Ctrl->npts_circ;
if (n_par < 8) Ctrl->M.params[ELLIPSOID][nELL][7] = Ctrl->n_slices;
if (Ctrl->M.params[SPHERE][nSPHERE][6] <= 0 || Ctrl->M.params[SPHERE][nSPHERE][7] <= 0) {
if (Ctrl->M.params[ELLIPSOID][nELL][6] <= 0 || Ctrl->M.params[ELLIPSOID][nELL][7] <= 0) {
GMT_Report (API, GMT_MSG_ERROR, "Bad parameters for the 'ellipsoid' body. Please, read the manual.");
return GMT_PARSE_ERROR;
}
Expand Down

0 comments on commit d9c95fc

Please sign in to comment.