Commit 723ce08b authored by Keerthi Nakkalil's avatar Keerthi Nakkalil
Browse files

Update testvec.C . Correct convention (col,row)

parent 2a349a89
void createfiles(int r, int c){
void createfiles(int c, int r){
std::ifstream Energy_file("Energy_table.dat");
std::vector<double>Energy_e = {200,300,400,500,600,700,800,900,1000,1100,1200,
......@@ -49,9 +49,9 @@ void createfiles(int r, int c){
istringstream ss2(line_2);
ss2 >> TPcol1 >> TPcol2 >> TPcol3 >> tot >> tot_var >> toa >> toa_var;
if (TPcol1==10){
if (TPcol1==c){
// cout << " checking for row 125..."<<std::endl;
if (TPcol2==10){
if (TPcol2==r){
TOA.push_back(toa);
TOA_VAR.push_back(toa_var);
......@@ -84,7 +84,7 @@ void createfiles(int r, int c){
void testvec(){
int row = 10, col = 10;
createfiles(row,col);
createfiles(col,row);
std::cout << " Done ..." <<std ::endl;
}
......
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