Fix example kernel calculation application for better warning with unsufficient argum...
authorTrevor Irons <tirons@egi.utah.edu>
Thu, 24 Aug 2017 18:20:07 +0000 (12:20 -0600)
committerTrevor Irons <tirons@egi.utah.edu>
Thu, 24 Aug 2017 18:20:07 +0000 (12:20 -0600)
examples/KernelV0-2.cpp

index a970e88..8114a72 100644 (file)
@@ -23,9 +23,9 @@ using namespace Lemma;
 
 int main(int argc, char** argv) {
 
-    if (argc<3) {
+    if (argc<5) {
         std::cout << "./KernelV0-2 Kernel.yaml TxString RxString  vtkoutput<true/false> \n";
-        return(EXIT_SUCCESS);
+        return(EXIT_FAILURE);
     }
 
     std::cout << "Using kernel paramaters: " << argv[1] << std::endl;