Skip to content
Snippets Groups Projects
Commit d23e957e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Imporve FFT error message

parent 62936cdf
No related branches found
No related tags found
1 merge request!225M214003/develop
......@@ -299,7 +299,6 @@ public:
if (numMissVals) cdo_abort("Missing values unsupported for spectral data!");
gridID1 = varList1.vars[varID].gridID;
;
// clang-format off
if (lgp2sp) grid2spec(spTrans, gridID1, array1, gridID2, array2);
else if (lsp2gp) spec2grid(spTrans, gridID1, array1, gridID2, array2);
......
......@@ -74,7 +74,16 @@ public:
{
vtrig.resize(nlon);
auto status = fft_set(vtrig.data(), ifax, nlon);
if (status < 0) cdo_abort("FFT error!");
if (status < 0)
{
cdo_print("Retry it with the fftw3 library!");
#ifdef HAVE_LIBFFTW3
cdo_warning("Using fftw3 lib is disabled!");
#else
cdo_warning("LIBFFTW3 support not compiled in!");
#endif
cdo_abort("FFT error!");
}
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment