Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gmt_fft.c
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ int GMT_FFT_2D (void *V_API, gmt_grdfloat *data, unsigned int n_columns, unsigne
int status, use;
struct GMTAPI_CTRL *API = gmtfft_get_api_ptr (V_API);
struct GMT_CTRL *GMT = API->GMT;
assert (mode & GMT_FFT_COMPLEX); /* GMT_FFT_REAL not implemented yet */
assert ((mode & GMT_FFT_COMPLEX) || (mode & GMT_FFT_NO_DEMUX)); /* GMT_FFT_REAL not implemented yet */
use = gmtfft_2d_selection (GMT, n_columns, n_rows);

GMT_Report (GMT->parent, GMT_MSG_INFORMATION, "2-D FFT using %s\n", GMT_fft_algo[use]);
Expand Down
3 changes: 2 additions & 1 deletion src/potential/gravfft.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,8 @@ EXTERN_MSC int GMT_gravfft (void *V_API, int mode, void *args) {
gravfft_do_isostasy (GMT, Grid[0], Ctrl, K);

GMT_Report (API, GMT_MSG_INFORMATION, "Inverse FFT...\n");
if (GMT_FFT (API, Grid[0], GMT_FFT_INV, GMT_FFT_COMPLEX, K))
//if (GMT_FFT (API, Grid[0], GMT_FFT_INV, GMT_FFT_COMPLEX, K))
if (GMT_FFT (API, Grid[0], GMT_FFT_INV, Ctrl->T.moho ? GMT_FFT_NO_DEMUX : GMT_FFT_COMPLEX, K))
Return (GMT_RUNTIME_ERROR);

if (!doubleAlmostEqual (scale_out, 1.0))
Expand Down