Browse Source

Fix example kernel calculation application for better warning with unsufficient arguments.

master
Trevor Irons 6 years ago
parent
commit
62cd549dd7
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      examples/KernelV0-2.cpp

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

@@ -23,9 +23,9 @@ using namespace Lemma;
23 23
 
24 24
 int main(int argc, char** argv) {
25 25
 
26
-    if (argc<3) {
26
+    if (argc<5) {
27 27
         std::cout << "./KernelV0-2 Kernel.yaml TxString RxString  vtkoutput<true/false> \n";
28
-        return(EXIT_SUCCESS);
28
+        return(EXIT_FAILURE);
29 29
     }
30 30
 
31 31
     std::cout << "Using kernel paramaters: " << argv[1] << std::endl;

Loading…
Cancel
Save