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,7 +37,7 @@ int main(int argc, char** argv) {
37 37
 
38 38
     // TODO fix python post-processing so this is not necessary
39 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 41
     dout << "# Transmitters: ";
42 42
     for (auto lp : tx) {
43 43
         dout << lp << "\t";
@@ -56,7 +56,7 @@ int main(int argc, char** argv) {
56 56
         dout.close();
57 57
 
58 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 60
     out << *Kern;
61 61
     out.close();
62 62
 

Loading…
Cancel
Save