X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mtp.git;a=blobdiff_plain;f=mtp_tracker.cc;h=c7c6602eac5c89c76079cdfdad0d2efab0c19471;hp=793b6729ec0c85bfc8298fa56af8198b10fb4f9d;hb=e755218e26614d7f836b22336f479da6bed7ae8b;hpb=f2e3ed51b2a5b2776c86223e873d765cb2b78c15 diff --git a/mtp_tracker.cc b/mtp_tracker.cc index 793b672..c7c6602 100644 --- a/mtp_tracker.cc +++ b/mtp_tracker.cc @@ -104,11 +104,11 @@ void MTPTracker::write(ostream *os) { } void MTPTracker::read(istream *is) { - int nb_locations, nb_time_steps; + int l, t; - (*is) >> nb_locations >> nb_time_steps; + (*is) >> l >> t; - allocate(nb_time_steps, nb_locations); + allocate(t, l); for(int l = 0; l < nb_locations; l++) { for(int m = 0; m < nb_locations; m++) {