Skip to content

Commit

Permalink
Merge pull request #3 from azrael417/debug
Browse files Browse the repository at this point in the history
compatibility with newest QDP++
  • Loading branch information
azrael417 committed Jan 15, 2015
2 parents cb93e00 + 6f3d6bd commit b85dea8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/qdp_hdf5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -813,12 +813,12 @@ namespace QDP {
} // while

if(float_size == 4) {
buf32 = new (nothrow) REAL32[total_size];
buf32 = new (std::nothrow) REAL32[total_size];
if(buf32 == 0x0) {
HDF5_error_exit("Unable to allocate buf\n");
} // if
} else {
buf64 = new (nothrow) REAL64[total_size];
buf64 = new (std::nothrow) REAL64[total_size];
if(buf64 == 0x0) {
HDF5_error_exit("Unable to allocate buf\n");
} // if
Expand Down Expand Up @@ -894,7 +894,7 @@ namespace QDP {
const int nodeSites = Layout::sitesOnNode();
size_t obj_size=sizeof(ColorMatrixD3)/float_size;
size_t tot_size = nodeSites*obj_size;
REAL* buf = new(nothrow) REAL[tot_size];
REAL* buf = new(std::nothrow) REAL[tot_size];
if( buf == 0x0 ) {
HDF5_error_exit("Unable to allocate buf\n");
}
Expand Down Expand Up @@ -962,7 +962,7 @@ namespace QDP {
const int nodeSites = Layout::sitesOnNode();
size_t obj_size=sizeof(ColorMatrixD3)/float_size;
size_t tot_size = nodeSites*sizes[Nd]*obj_size;
REAL* buf = new(nothrow) REAL[tot_size];
REAL* buf = new(std::nothrow) REAL[tot_size];
if( buf == 0x0 ) {
HDF5_error_exit("Unable to allocate buf\n");
}
Expand Down

0 comments on commit b85dea8

Please sign in to comment.