|
@@ -24,7 +24,7 @@ using namespace Lemma;
|
24
|
24
|
int main(int argc, char** argv) {
|
25
|
25
|
|
26
|
26
|
if (argc<3) {
|
27
|
|
- std::cout << "./KernelV0-2 Kernel.yaml TxString RxString \n";
|
|
27
|
+ std::cout << "./KernelV0-2 Kernel.yaml TxString RxString vtkoutput<true/false> \n";
|
28
|
28
|
return(EXIT_SUCCESS);
|
29
|
29
|
}
|
30
|
30
|
|
|
@@ -33,7 +33,14 @@ int main(int argc, char** argv) {
|
33
|
33
|
|
34
|
34
|
std::vector<std::string> tx = {std::string(argv[2])};
|
35
|
35
|
std::vector<std::string> rx = {std::string(argv[3])};
|
36
|
|
- Kern->CalculateK0( tx, rx, false ); // 3rd argument is vtk output
|
|
36
|
+
|
|
37
|
+ std::cout << "argv[4]\t" << argv[4] << std::endl;
|
|
38
|
+ if( std::string(argv[4]) == "true") {
|
|
39
|
+ Kern->CalculateK0( tx, rx, true ); // 3rd argument is vtk output
|
|
40
|
+ } else {
|
|
41
|
+ std::cout << "not using VTK" << std::endl;
|
|
42
|
+ Kern->CalculateK0( tx, rx, false ); // 3rd argument is vtk output
|
|
43
|
+ }
|
37
|
44
|
|
38
|
45
|
// TODO fix python post-processing so this is not necessary
|
39
|
46
|
// Save in simplified format for easy python plotting
|