Commit 8d538ab6 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

toolboxdmrg uses InputFromDataOrNot

parent ccfb9e72
......@@ -6,6 +6,7 @@
#include "ToolBox.h"
#include "PsimagLite.h"
#include "Qn.h"
#include "InputFromDataOrNot.h"
#ifndef USE_FLOAT
typedef double RealType;
......@@ -145,11 +146,8 @@ int main(int argc,char **argv)
inputCheck.checkFileOptions(toolOptions.extraOptions);
}
InputNgType::Writeable ioWriteable(toolOptions.filename,
inputCheck,
"InputStartsHere",
"InputEndsHere");
InputNgType::Readable io(ioWriteable);
InputFromDataOrNot<InputCheck> inputFromDataOrNot(toolOptions.filename, inputCheck);
InputNgType::Readable io(inputFromDataOrNot.ioWriteable());
//! Read the parameters for this run
bool earlyExit = true;
......
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