noxim icon indicating copy to clipboard operation
noxim copied to clipboard

Assertion Error

Open taadaal opened this issue 2 years ago • 5 comments

Hi, I am trying to simulate this file porposed_config.docx everything ok with other traffic but when i simulated with TRAFFIC_BIT_REVERSAL, TRAFFIC_SHUFFLE, TRAFFIC_BUTTERFLY, I get this error Assertion Error What's the problem?

taadaal avatar Jun 19 '22 05:06 taadaal

Have you tried different mesh sizes ?(e.g., 8x8). I dont remember exactly, but it seems that those kind of traffics have some assumptions about the "shape" of the mesh, like being a power of 2 or something like that..

davidepatti avatar Jun 27 '22 14:06 davidepatti

Thanks for responding dear professor, Yes I Try 10x10, and the problem is from "Utils.h" file this part: Capture How can I fix this problem? Which part of the Noxim must be changed?

taadaal avatar Jun 27 '22 17:06 taadaal

what don't you just put some print messages to debug the values...

davidepatti avatar Jul 18 '22 15:07 davidepatti

I didn't understand the point. What are print messages?

taadaal avatar Jul 18 '22 15:07 taadaal

@taadaal You can use cout to print messages. That'll help you to see the transition of states. From the error you have pasted, it looks like your modification has caused it to exceed mesh_dim_y . Meaning if the max value of y dimension is 10, your changes have just gone above 10 and the assertion has failed.

theblueskies avatar Sep 01 '22 02:09 theblueskies