diff options
author | Joe Zhao <ztuowen@gmail.com> | 2014-10-07 23:57:12 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2014-10-07 23:57:12 +0800 |
commit | 0c3b95c98a8c755aa99b0a177b790cb82e0bdcb5 (patch) | |
tree | 549d7c039d38404c038df7a5055dd11443366f09 | |
parent | e6bc31cee7b26e1ad58d947eb4b3f550196e975e (diff) | |
download | tnet-0c3b95c98a8c755aa99b0a177b790cb82e0bdcb5.tar.gz tnet-0c3b95c98a8c755aa99b0a177b790cb82e0bdcb5.tar.bz2 tnet-0c3b95c98a8c755aa99b0a177b790cb82e0bdcb5.zip |
output 1+++++++
-rw-r--r-- | src/CuTNetLib/cuCompDisc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CuTNetLib/cuCompDisc.h b/src/CuTNetLib/cuCompDisc.h index b6876c8..a9200ef 100644 --- a/src/CuTNetLib/cuCompDisc.h +++ b/src/CuTNetLib/cuCompDisc.h @@ -133,7 +133,10 @@ namespace TNet { CuComponent* FindOutput(int &pos) { if (pos<0 or pos>=outID.size()) + { + std::cout<<"pos"<<pos<<std::endl; Error("Position out of bound"); + } int i=pos; pos=outID[i].pos; return mBlocks[outID[i].block]; |