Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 07c99dbe authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

add h rescaling parameter to writeSpectraPk

parent 8facf9b8
......@@ -201,6 +201,7 @@ int main(int argc,char** argv){
string kvfile=parser.params.find<string>("kval_file","");
if (kvfile.size()!=0) {
bool h_rescale=parser.params.find<bool>("h_rescale",false);
cout <<"using k values from file=" <<kvfile <<endl;
//decode 1st column
ifstream f(kvfile.c_str());
......@@ -210,7 +211,10 @@ int main(int argc,char** argv){
//skip comments
if (line.find("#",0) !=std:: string::npos) continue;
std::istringstream str(line);
if (str>>kk) kval.push_back(kk);
if (str>>kk) {
if (h_rescale) kk*=h;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment