X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/07516f0b1615a95f3e68d073adf4cfda584b99fa..refs/heads/master:/o815/sim.cpp?ds=sidebyside diff --git a/o815/sim.cpp b/o815/sim.cpp index 70fe482..ec47339 100644 --- a/o815/sim.cpp +++ b/o815/sim.cpp @@ -11,7 +11,7 @@ o815::sim::sim(o815 *_O815, const int& _confmemSize) { hypercache::initC(O815->programid, O815->comargs.nequi, O815->comargs.nskip, O815->comargs.confcache.first, &confMem, _confmemSize, O815->comargs.confcache.second, log); nequi = O815->comargs.nequi; nskip = O815->comargs.nskip; - confmemSize = confmemSize; + confmemSize = _confmemSize; startConfiguration = NULL; @@ -22,7 +22,7 @@ o815::sim::sim(o815 *_O815, const int& _confmemSize) { dataReader.openFile(O815->comargs.startconfig); if ( dataReader.fisopen() ) { - startConfiguration = new char[confmemSize]; + startConfiguration = (char*)malloc(confmemSize); if ( dataReader.readFullBlock(startConfiguration) < 0 ) { *log << "SIM: Error while reading config from " << O815->comargs.startconfig << endl;