summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-10-07 23:57:12 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-10-07 23:57:12 +0800
commit0c3b95c98a8c755aa99b0a177b790cb82e0bdcb5 (patch)
tree549d7c039d38404c038df7a5055dd11443366f09 /src
parente6bc31cee7b26e1ad58d947eb4b3f550196e975e (diff)
downloadtnet-0c3b95c98a8c755aa99b0a177b790cb82e0bdcb5.tar.gz
tnet-0c3b95c98a8c755aa99b0a177b790cb82e0bdcb5.tar.bz2
tnet-0c3b95c98a8c755aa99b0a177b790cb82e0bdcb5.zip
output 1+++++++
Diffstat (limited to 'src')
-rw-r--r--src/CuTNetLib/cuCompDisc.h3
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];