Initial commit
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
auto myiter = WFR_SELF_GETITERATIONID();
|
||||
std::cout << "AtomicActivity1 [" << myiter << "]:" << std::endl
|
||||
<< "\titerCount: " << sin->iterCount.getValue() << std::endl
|
||||
<< "\tloopPortIn1: " << sin->loopPortIn1.getValue() << std::endl;
|
||||
#include <sstream>
|
||||
if (myiter != sin->loopPortIn1.getValue()) {
|
||||
std::stringstream ss;
|
||||
ss << "Test Failure: IterationID [" << myiter << "] does not match loopPortIn1 [" << sin->loopPortIn1.getValue()<< "].";
|
||||
throw wfr::exception::wfr_fatal_error(ss.str());
|
||||
}
|
||||
if (sin->iterCount.getValue() <= 0) {
|
||||
std::stringstream ss;
|
||||
ss << "Test Failure: iterCount [" << sin->iterCount.getValue() << "] is not greater than zero.";
|
||||
throw wfr::exception::wfr_fatal_error(ss.str());
|
||||
}
|
||||
if (sin->iterCount.getValue() < sin->loopPortIn1.getValue()) {
|
||||
std::stringstream ss;
|
||||
ss << "Test Failure: loopPortIn1 [" << sin->loopPortIn1.getValue() << "] is greater than iterCount [" << sin->iterCount.getValue() << "].";
|
||||
throw wfr::exception::wfr_fatal_error(ss.str());
|
||||
}
|
||||
sout->taskOut1.setValue(sin->loopPortIn1.getValue()+1);
|
||||
Reference in New Issue
Block a user