Commit ce6c0e8f authored by Philip Carns's avatar Philip Carns
Browse files

add safety check for event size

parent 99118364
......@@ -60,6 +60,15 @@ void model_net_event(
int i;
int last = 0;
if((remote_event_size + self_event_size + model_net_get_msg_sz(net_id))
> g_tw_msg_sz)
fprintf(stderr, "Error: model_net trying to transmit an event of size %d but ROSS is configured for events of size %zd\n",
(remote_event_size + self_event_size + model_net_get_msg_sz(net_id)),
if(message_size % packet_size)
num_packets++; /* Handle the left out data if message size is not exactly divisible by packet size */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment