Browse Source

File name fix in example prog.

master
T-bone 7 years ago
parent
commit
737ce9b24a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      examples/KernelV0-2.cpp

+ 2
- 2
examples/KernelV0-2.cpp View File

37
 
37
 
38
     // TODO fix python post-processing so this is not necessary
38
     // TODO fix python post-processing so this is not necessary
39
     // Save in simplified format for easy python plotting
39
     // Save in simplified format for easy python plotting
40
-    std::ofstream dout = std::ofstream(std::string("Rx-")+std::string(argv[3])+std::string(".dat"));
40
+    std::ofstream dout = std::ofstream(std::string("Tx")+std::string(argv[2])+std::string("Rx-")+std::string(argv[3])+std::string(".dat"));
41
     dout << "# Transmitters: ";
41
     dout << "# Transmitters: ";
42
     for (auto lp : tx) {
42
     for (auto lp : tx) {
43
         dout << lp << "\t";
43
         dout << lp << "\t";
56
         dout.close();
56
         dout.close();
57
 
57
 
58
     // Save YAML kernel
58
     // Save YAML kernel
59
-    std::ofstream out = std::ofstream(std::string("Rx-")+std::string(argv[2])+std::string(".yaml"));
59
+    std::ofstream out = std::ofstream(std::string("Tx")+std::string(argv[2])+std::string("Rx-")+std::string(argv[3])+std::string(".yaml"));
60
     out << *Kern;
60
     out << *Kern;
61
     out.close();
61
     out.close();
62
 
62
 

Loading…
Cancel
Save