Commit deaf1dcd authored by dauncey's avatar dauncey

Set HGCROC-only

parent 62da8d82
......@@ -223,17 +223,23 @@ int main(int argc, char* argv[]) {
// BE
if(argc>2 && (argc%2)!=1) {
//if(argc>2 && (argc%2)!=1) {
if(argc==1) {
std::cerr << "Usage: " << argv[0] << " --<parameter> <value> or <parameter number>" << std::endl;
return 1;
}
if(argc==2) {
int initial(1);
if((argc%2)==0) {
initial=2;
unsigned nArg(0);
std::istringstream sArg(argv[1]);
sArg >> nArg;
// nArg--;
std::cout << nArg << std::endl;
seconds=pow(10,(nArg%10));
nArg/=10;
l1AcceptRate=550+50*(nArg%10);
......@@ -244,10 +250,9 @@ int main(int argc, char* argv[]) {
hgcrocLimit=(nArg%10);
nArg/=10;
hgcrocTransmission=40+2*(nArg%10);
}
} else {
for(int i(1);i<argc;i+=2) {
for(int i(initial);i<argc;i+=2) {
std::string sarg1(argv[i]);
std::istringstream sarg2(argv[i+1]);
......@@ -267,7 +272,6 @@ int main(int argc, char* argv[]) {
if(sarg1=="--econFormat") sarg2 >> econFormat;
//if(sarg1=="--econFlow") sarg2 >> econFlow;
}
}
std::ostringstream sout;
sout << "_L1AcceptRate" << l1AcceptRate;
......
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