Commit f3910b1c authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

IoNg::dontPrintDebug(); InputNg: isAinur()

parent 576f402e
......@@ -557,6 +557,8 @@ public:
void rewind() {}
bool isAinur() const { return (ainur_ != nullptr); }
double versionAinur() const { return 2.5; }
double version() const { return (ainur_) ? 3. : 2.; }
......
......@@ -130,6 +130,11 @@ public:
*/
enum OpenMode {ACC_TRUNC, ACC_EXCL, ACC_RDONLY, ACC_RDW};
static void dontPrintDebug()
{
IoNgSerializer::dontPrintDebug();
}
class Out {
public:
......
......@@ -33,7 +33,7 @@ public:
: hdf5file_(0), filename_(filename), mode_(mode)
{
#ifdef NDEBUG
H5::Exception::dontPrint();
dontPrintDebug();
#endif
try {
......@@ -77,6 +77,11 @@ public:
hdf5file_ = 0;
}
static void dontPrintDebug()
{
H5::Exception::dontPrint();
}
void open(String filename,
unsigned int mode)
{
......
Markdown is supported
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