parallelizing file name has its consequences, file name prefix edited only in multi level

This commit is contained in:
Dhanya Maliakal
2017-09-19 11:37:54 +02:00
parent 15b86a50d5
commit 3a79f0ad9b
2 changed files with 23 additions and 8 deletions

View File

@ -5229,6 +5229,11 @@ string multiSlsDetector::setFileName(string s) {
string ret = "error";
int posmax = thisMultiDetector->numberOfDetectors;
if(!s.empty()){
fileIO::setFileName(s);
s=createReceiverFilePrefix();
}
if(!threadpool){
cout << "Error in creating threadpool. Exiting" << endl;
return string("");
@ -5259,6 +5264,14 @@ string multiSlsDetector::setFileName(string s) {
}
}
}
if ((ret != "error") || (ret != "")) {
#ifdef VERBOSE
std::cout << "Complete file prefix from receiver: " << ret << std::endl;
#endif
fileIO::setFileName(getNameFromReceiverFilePrefix(ret));
}
return ret;
}