void check_counts_nodes() { // make sure they all have the same count if (!( (node_ids.count() == node_positions.count()) && (node_ids.count() == node_cs.count()) && (node_ids.count() == node_ver.count()) )) { cerr << "current id " << current_id << endl; cerr << "node counts are not aligned" << endl; cerr << "pos:" << node_positions.count() << endl; cerr << "ids: " << node_ids.count() << endl; cerr << "cs :" << node_cs.count() << endl; cerr << "ver :" << node_ver.count() << endl; // write the files node_positions.flush(); node_ids.flush(); node_cs.flush(); node_ver.flush(); exit (233); } }
void check_counts_rels() { // make sure they all have the same count if (! (rel_positions.count() == rel_ids.count() && rel_ids.count() == rel_cs.count() && rel_cs.count() == rel_ver.count() ) ) { cerr << current_id << endl; cerr << "rel counts not aligned" << endl; cerr << rel_positions.count() << endl; cerr << rel_ids.count() << endl; cerr << rel_cs.count() << endl; cerr << rel_ver.count() << endl; exit (233); } }
void check_counts_ways() { // make sure they all have the same count if (! ( (way_positions.count() == way_ids.count()) && (way_ids.count() == way_cs.count() ) ) ) { cerr << current_id << endl; cerr << "way counts not aligned" << endl; cerr << way_positions.count() << endl; cerr << way_ids.count() << endl; cerr << way_cs.count() << endl; exit (233); } }