bug did not give error when switching to hdf5

This commit is contained in:
Dhanya Maliakal 2017-07-28 11:54:22 +02:00
parent 5713cd6092
commit 88b6fabb0d
3 changed files with 7 additions and 5 deletions

View File

@ -250,10 +250,11 @@ void UDPBaseImplementation::setFileFormat(const fileFormat f){
switch(f){ switch(f){
#ifdef HDF5C #ifdef HDF5C
case HDF5: case HDF5:
fileFormatType = f; fileFormatType = HDF5;
break;
#endif #endif
default: default:
fileFormatType = f; fileFormatType = BINARY;
break; break;
} }

View File

@ -114,10 +114,11 @@ void UDPStandardImplementation::setFileFormat(const fileFormat f){
switch(f){ switch(f){
#ifdef HDF5C #ifdef HDF5C
case HDF5: case HDF5:
fileFormatType = f; fileFormatType = HDF5;
break;
#endif #endif
default: default:
fileFormatType = f; fileFormatType = BINARY;
break; break;
} }
//destroy file writer, set file format and create file writer //destroy file writer, set file format and create file writer

View File

@ -2179,7 +2179,7 @@ int slsReceiverTCPIPInterface::set_file_format() {
retval = receiverBase->getFileFormat(); retval = receiverBase->getFileFormat();
if(f >= 0 && retval != f){ if(f >= 0 && retval != f){
ret = FAIL; ret = FAIL;
sprintf(mess,"Could not set file format to %d, returned %d\n",f,retval); sprintf(mess,"Could not set file format to %s, returned %s\n",getFileFormatType(f).c_str(),getFileFormatType(retval).c_str());
FILE_LOG(logERROR) << "Warning: " << mess; FILE_LOG(logERROR) << "Warning: " << mess;
} }
} }