dune-fem 2.12-git
Loading...
Searching...
No Matches
dataconvert.cc
Go to the documentation of this file.
1//************************************************************
2//
3// (C) written and directed by Robert Kloefkorn
4//
5//************************************************************
6#include <iostream>
7#include <vector>
8#include <cassert>
9#include <string>
10
11#if HAVE_MPI == 1
12#warning "Visualization does not work in parallel"
13#endif
14
16using namespace Dune;
17
18// include definition of grid type
19// #include <dune/grid/io/file/dgfparser/dgfgridtype.hh>
20
21// include data reading
23
24// uses readtuple data instead of readiotupledata.
28
29int main(int argc, char **argv)
30{
32 try {
33 Fem::Parameter::append(argc,argv);
34#ifdef PARAMETER_APPEND_FUNCTION
35 PARAMETER_APPEND_FUNCTION();
36#endif
37
38 if (argc < 2)
39 {
40 print_help(argv[0]);
41 return(0);
42 }
43
44 if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "-help"))
45 {
46 print_help(argv[0]);
47 return(0);
48 }
49 return readParameterList(argc,argv,false);
50 }
51 catch (Dune::Exception& e)
52 {
53 std::cerr << e << std::endl;
54 return 1;
55 }
56 return 0;
57}
static void print_help(const char *funcName)
Definition printhelp.cc:8
int readParameterList(int argc, char **argv, bool displayData=true)
Definition readioparams.cc:158
int main(int argc, char **argv)
Definition dataconvert.cc:29
static void append(int &argc, char **argv)
add parameters from the command line RangeType gRight;
Definition io/parameter.hh:219
static void initialize(int &argc, char **&argv)
Definition mpimanager.hh:491
T endl(T... args)