msbGrid  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test1.cc
Go to the documentation of this file.
1 /*****************************************************************************
2 * This program is part of the msbGrid software *
3 * *
4 * msbGrid stands for multi-structured block Grid generator *
5 * *
6 * msbGrid is a free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * msbGrid is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * See the file COPYING for full copying permissions. *
17 *****************************************************************************/
25 #include <config.h>
26 #include <msbgrid.hh>
27 
28 #include "problem/problem.hh"
29 
30 namespace msbGrid
31 {
39 void usage(const char *progName, const std :: string &errorMsg)
40 {
41  if ( errorMsg.size() > 0 ) {
42  std :: string errorMessageOut = "\nUsage: ";
43  errorMessageOut += progName;
44  errorMessageOut += " [options]\n";
45  errorMessageOut += errorMsg;
46  errorMessageOut += "\n\nThe list of arguments for this program is:\n"
47  "each one of these arguments has a default value\n"
48  "we recommend the use the default parameter file \"programName.input\"\n"
49  "--outputPath=\"../../output/\"\n"
50  "--outputDirName=\"3block_clockwise\"\n"
51  "--xMin=\"0\"\n"
52  "--xMax=\"1\"\n"
53  "--bnCx=\"1\"\n"
54  "--bnCy=\"3\"\n"
55  "--dr=\"0.02\"\n"
56  "--rafC=\"1\"\n"
57  "--bCDistType=\"random\"\n"
58  "--bADistType=\"random\"\n"
59  "--bCId=\"0\"\n"
60  "--bAId=\"0\"\n"
61  "--bCPC=\"0\"\n"
62  "--d2bC=\"0\"\n"
63  "--intbC=\"1\"\n";
64 
65  std :: cout << errorMessageOut << "\n";
66  }
67 }
68 } /* namespace msbGrid */
69 
70 int main(int argc, char **argv)
71 {
72  std :: cout << "\n--> BEGIN PROGRAM\n\n";
73 
76 
77  std :: cout << "\n--> END PROGRAM\n\n";
78  return 0;
79 }