[cig-commits] commit 2538 by heister to /var/svn/dealii/aspect

dealii.demon at gmail.com dealii.demon at gmail.com
Tue Apr 15 05:35:47 PDT 2014


Revision 2538

do not default to box.prm when no arg is given

U   trunk/aspect/source/main.cc


http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=2538&peg=2538

Diff:
Modified: trunk/aspect/source/main.cc
===================================================================
--- trunk/aspect/source/main.cc	2014-04-15 12:20:37 UTC (rev 2537)
+++ trunk/aspect/source/main.cc	2014-04-15 12:35:45 UTC (rev 2538)
@@ -197,13 +197,14 @@
                     << std::endl;
         }
 
+      if (argc < 2)
+        {
+          std::cout << "	Usage: ./aspect <parameter_file.prm>" << std::endl;
+          return 0;
+        }
 
       // see which parameter file to use
-      std::string parameter_filename;
-      if (argc >= 2)
-        parameter_filename = argv[1];
-      else
-        parameter_filename = "box.prm";
+      std::string parameter_filename = argv[1];
 
       // verify that it can be opened
       {


More information about the CIG-COMMITS mailing list