Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
azrael417 committed Jan 12, 2015
1 parent a839e0a commit f224c59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions include/qdp_hdf5.h
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ namespace QDP {
//***********************************************************************************************************************************
//helper routines for reading and writing objects:
void readPrepare(const std::string& name, hid_t& type_id);
void readPrepare(const std::string& name, hid_t& type_id, multi1d<ullong>& sizes);
void readPrepareLattice(const std::string& name, hid_t& type_id, multi1d<ullong>& sizes);

void readLattice(const std::string& name, const hid_t& type_id, const hid_t& base_type_id,
const ullong& obj_size, const ullong& tot_size, REAL* buf);
Expand Down Expand Up @@ -517,7 +517,7 @@ namespace QDP {
multi1d<ullong> sizes;
ullong obj_size=0;
hid_t type_id;
readPrepare(name,type_id,sizes);
readPrepareLattice(name,type_id,sizes);

//sanity check:
ullong float_size=H5Tget_size(type_id);
Expand Down Expand Up @@ -556,7 +556,7 @@ namespace QDP {
multi1d<ullong> sizes;
ullong obj_size=0;
hid_t type_id;
readPrepare(name,type_id,sizes);
readPrepareLattice(name,type_id,sizes);

//sanity check:
ullong float_size=H5Tget_size(type_id);
Expand Down Expand Up @@ -608,7 +608,7 @@ namespace QDP {
multi1d<ullong> sizes;
ullong obj_size=0;
hid_t type_id;
readPrepare(name,type_id,sizes);
readPrepareLattice(name,type_id,sizes);
if(profile) swatch_prepare.stop();

//sanity check:
Expand Down Expand Up @@ -675,7 +675,7 @@ namespace QDP {
multi1d<ullong> sizes;
ullong obj_size=0;
hid_t type_id;
readPrepare(name,type_id,sizes);
readPrepareLattice(name,type_id,sizes);
swatch_prepare.stop();

//check sanity
Expand Down
8 changes: 4 additions & 4 deletions lib/qdp_hdf5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ namespace QDP {
//READING Lattice Types:
//***********************************************************************************************************************************
//***********************************************************************************************************************************
void HDF5::readPrepare(const std::string& name, hid_t& type_id, multi1d<ullong>& sizes){
void HDF5::readPrepareLattice(const std::string& name, hid_t& type_id, multi1d<ullong>& sizes){
//determine whether there is a lattice with the specified name:
bool exists=objectExists(current_group,name);
if(!exists){
Expand Down Expand Up @@ -756,7 +756,7 @@ namespace QDP {
H5Dclose(dset_id);

//prefetch for faster I/O:
if(!isprefetched) prefetchLatticeCoordinates();
if(!isprefetched && sizes.size()>1) prefetchLatticeCoordinates();
}

void HDF5::readLattice(const std::string& name, const hid_t& type_id, const hid_t& base_type_id, const ullong& obj_size, const ullong& tot_size, REAL* buf) {
Expand Down Expand Up @@ -866,7 +866,7 @@ namespace QDP {
if(profile) swatch_prepare.start();
multi1d<ullong> sizes;
hid_t type_id;
readPrepare(name,type_id,sizes);
readPrepareLattice(name,type_id,sizes);
if(profile) swatch_prepare.stop();

//do some datatype sanity checks and get the basis precision:
Expand Down Expand Up @@ -932,7 +932,7 @@ namespace QDP {
if(profile) swatch_prepare.start();
multi1d<ullong> sizes;
hid_t type_id;
readPrepare(name,type_id,sizes);
readPrepareLattice(name,type_id,sizes);
if(profile) swatch_prepare.stop();

//do some datatype sanity checks and get the basis precision:
Expand Down

0 comments on commit f224c59

Please sign in to comment.