Skip to content

Commit b526125

Browse files
PaulWesselgithub-actions[bot]
authored andcommitted
grdseamount must write grids even if no change for a time-step (#3715)
* grdseamount must write grids even if no change for a time-step Instead of warning of no input for a time, it actually skipped writing an empty (incremental) or unchanged (cumulative) grid, which breaks workflows that makes movies or computes flexure. Now we just warn, and clarify in man page. * Update grdseamount.rst
1 parent 2adbed3 commit b526125

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

doc/rst/source/supplements/potential/grdseamount.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,8 @@ Optional Arguments
175175
give start time *t0*. Default *unit* is years; append **k** for kyr and **M** for Myr.
176176
For a logarithmic time scale, append **+l** and specify *n* steps instead of *dt*.
177177
Alternatively, give a file with the desired times in the first column (these times
178-
may have individual units appended, otherwise we assume year). Note that the grid
179-
for *t0* (if a range is given) is not written as it is zero and marks the start of
180-
the building history.
178+
may have individual units appended, otherwise we assume year). Note that a grid
179+
will be written for all time-steps even if there are no loads or no changes.
181180

182181
.. _-Z:
183182

src/potential/grdseamount.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,9 +861,8 @@ EXTERN_MSC int GMT_grdseamount (void *V_API, int mode, void *args) {
861861
prev_user_time = this_user_time; /* Make this the previous time */
862862
}
863863
if (empty) {
864-
GMT_Report (API, GMT_MSG_INFORMATION, "No contribution made for time %g %s\n",
864+
GMT_Report (API, GMT_MSG_WARNING, "No contribution made for time %g %s\n",
865865
Ctrl->T.time[t].value * Ctrl->T.time[t].scale, gmt_modeltime_unit (Ctrl->T.time[t].u));
866-
continue;
867866
}
868867

869868
/* Time to write the grid */

0 commit comments

Comments
 (0)