Skip to content
Snippets Groups Projects
Commit 573020bb authored by Jan David Mol's avatar Jan David Mol
Browse files

COB-64: Added log message on ASSERT

parent f5958971
No related branches found
No related tags found
1 merge request!6Import cobalt2 into lofar4
......@@ -226,8 +226,8 @@ namespace LOFAR {
const unsigned board = ps.settings.antennaFields[stationIdx].rspBoardMap[sb];
const unsigned slot = ps.settings.antennaFields[stationIdx].rspSlotMap[sb];
ASSERT(board < nrBoards);
ASSERT(slot < mode.nrBeamletsPerBoard());
ASSERTSTR(board < nrBoards, logPrefix << "RSP Board Map refers to board " << board << " but we have only " << nrBoards << " inputs" );
ASSERTSTR(slot < mode.nrBeamletsPerBoard(), logPrefix << "RSP Slot Map refers to slot " << slot << " but each board only has " << mode.nrBeamletsPerBoard() );
// The specified (board,slot) is stored at position i
ASSERTSTR(result[board][slot] == -1, "Station " << stationID.name() << ": board " << board << " slot " << slot << " is used multiple times!");
......
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