~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to dolfin/parameter/GlobalParameters.h

  • Committer: corrado maurini
  • Date: 2012-12-18 12:16:08 UTC
  • mfrom: (6685.78.207 trunk)
  • Revision ID: corrado.maurini@upmc.fr-20121218121608-nk82ly9jgsld9u84
updating with trunk, fix uint in TAO solver and hacking the check for tao FindTAO.cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
      // Output
59
59
      p.add("std_out_all_processes", true);                  // Print standard output on all processes
 
60
      p.add("relative_line_width", 0.025);                   // Line width relative to edge length in SVG output
60
61
 
61
62
      // Threaded computation
62
63
      p.add("num_threads", 0);                               // Number of threads to run, 0 = run serial version
67
68
      // Print the level of thread support provided by the MPI library
68
69
      p.add("print_mpi_thread_support_level", false);
69
70
 
70
 
      // Graph partitioner
 
71
      // Allowed partitioners (not necessarily installed)
71
72
      std::set<std::string> allowed_mesh_partitioners;
72
 
      std::string default_mesh_partitioner("ParMETIS");
73
73
      allowed_mesh_partitioners.insert("ParMETIS");
74
 
      #ifdef HAS_SCOTCH
75
74
      allowed_mesh_partitioners.insert("SCOTCH");
76
 
        #ifndef HAS_PARMETIS
77
 
        default_mesh_partitioner = "SCOTCH";
 
75
 
 
76
      // Set default graph/mesh partitioner
 
77
      std::string default_mesh_partitioner = "SCOTCH";
 
78
      #ifdef HAS_PARMETIS
 
79
        #ifndef HAS_SCOTCH
 
80
        default_mesh_partitioner = "ParMETIS";
78
81
        #endif
79
82
      #endif
 
83
 
 
84
      // Add mesh/graph partitioner
80
85
      p.add("mesh_partitioner",
81
 
            default_mesh_partitioner,
82
 
            allowed_mesh_partitioners);
 
86
            default_mesh_partitioner,
 
87
            allowed_mesh_partitioners);
83
88
 
84
89
      // Graph coloring
85
 
      p.add("graph_coloring_library", "Boost");
 
90
      std::set<std::string> allowed_coloring_libraries;
 
91
      allowed_mesh_partitioners.insert("Boost");
 
92
      allowed_mesh_partitioners.insert("Zoltan");
 
93
      p.add("graph_coloring_library", "Boost", allowed_coloring_libraries);
86
94
 
87
95
      // Mesh refinement
88
96
      std::set<std::string> allowed_refinement_algorithms;
104
112
      allowed_backends.insert("PETSc");
105
113
      default_backend = "PETSc";
106
114
      p.add("use_petsc_signal_handler", false);
107
 
 
108
115
      #endif
109
116
      #ifdef HAS_PETSC_CUSP
110
117
      allowed_backends.insert("PETScCusp");