ソースを参照

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

master
Trevor Irons 6年前
コミット
62cd549dd7
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      examples/KernelV0-2.cpp

+ 2
- 2
examples/KernelV0-2.cpp ファイルの表示

@@ -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;

読み込み中…
キャンセル
保存