Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit 86240a3

Browse files
committed
fix #13
1 parent 94c1521 commit 86240a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

io-mpi.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ void io_read_checkpoint() {
207207
// Load Data
208208
for (i = 0; i < my_partitions[cur_part].lp_count; i++, all_lp_i++) {
209209
b += io_lp_deserialize(g_tw_lp[all_lp_i], b);
210-
((deserialize_f)g_io_lp_types[0].deserialize)(g_tw_lp[all_lp_i]->cur_state, b, g_tw_lp[all_lp_i]);
210+
int lp_type_index = g_tw_lp_typemap(g_tw_lp[all_lp_i]->gid);
211+
((deserialize_f)g_io_lp_types[lp_type_index].deserialize)(g_tw_lp[all_lp_i]->cur_state, b, g_tw_lp[all_lp_i]);
211212
b += model_sizes[all_lp_i];
212213
}
213214
assert(my_partitions[cur_part].ev_count <= g_io_free_events.size);

0 commit comments

Comments
 (0)