Skip to content
Snippets Groups Projects
Commit 8d108355 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #4589: Use fpEquals for floating point comparison.

parent a491a6a9
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,8 @@
#include <GPUProc/SubbandProcs/BeamFormerSubbandProc.h>
#include <GPUProc/SubbandProcs/BeamFormerFactories.h>
#include "../fpequals.h"
using namespace std;
using namespace LOFAR::Cobalt;
using namespace LOFAR::TYPES;
......@@ -214,7 +216,7 @@ int main() {
for (size_t s = 0; s < nrStokes; s++)
for (size_t t = 0; t < nrSamples; t++)
for (size_t c = 0; c < nrChannels; c++)
ASSERTSTR(out[s][t][c] == outVal,
ASSERTSTR(fpEquals(out[s][t][c], outVal),
"out[" << s << "][" << t << "][" << c << "] = " <<
out[s][t][c] << "; outVal = " << outVal);
......
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