~ubuntu-branches/ubuntu/vivid/regina-normal/vivid

« back to all changes in this revision

Viewing changes to utils/trisetcmp.cpp

  • Committer: Package Import Robot
  • Author(s): Ben Burton
  • Date: 2014-08-29 17:37:46 UTC
  • mfrom: (19.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140829173746-igmqc9b67y366a7u
Tags: 4.96-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 *  Regina - A Normal Surface Theory Calculator                           *
5
5
 *  Compare two data files in search of isomorphic triangulations         *
6
6
 *                                                                        *
7
 
 *  Copyright (c) 1999-2013, Ben Burton                                   *
 
7
 *  Copyright (c) 1999-2014, Ben Burton                                   *
8
8
 *  For further details contact Ben Burton (bab@debian.org).              *
9
9
 *                                                                        *
10
10
 *  This program is free software; you can redistribute it and/or         *
178
178
        usage(argv[0], "Two data files must be specified.");
179
179
 
180
180
    // Open the two data files.
181
 
    NPacket* tree1 = regina::readFileMagic(file1);
 
181
    NPacket* tree1 = regina::open(file1.c_str());
182
182
    if (! tree1) {
183
183
        std::cerr << "File " << file1 << " could not be read.\n";
184
184
        std::cerr << "Please check that it exists and that it is a Regina data file.\n";
186
186
        return 1;
187
187
    }
188
188
 
189
 
    NPacket* tree2 = regina::readFileMagic(file2);
 
189
    NPacket* tree2 = regina::open(file2.c_str());
190
190
    if (! tree2) {
191
191
        std::cerr << "File " << file2 << " could not be read.\n";
192
192
        std::cerr << "Please check that it exists and that it is a Regina data file.\n";