23 #ifndef __GLOBAL_PARAMETERS_H 24 #define __GLOBAL_PARAMETERS_H 26 #include "Parameters.h" 27 #include <dolfin/la/KrylovSolver.h> 28 #include <dolfin/la/LUSolver.h> 46 virtual void parse(
int argc,
char* argv[]);
56 p.
add(
"timer_prefix",
"");
59 p.
add(
"allow_extrapolation",
false);
64 p.
add(
"warn_on_xml_file_size", 100);
69 p.
add(
"std_out_all_processes",
true);
72 p.
add(
"relative_line_width", 0.025);
75 p.
add(
"print_mpi_thread_support_level",
false);
80 p.
add(
"reorder_dofs_serial",
true);
83 std::string default_dof_ordering_library =
"Boost";
85 default_dof_ordering_library =
"SCOTCH";
87 p.
add(
"dof_ordering_library", default_dof_ordering_library,
88 {
"Boost",
"random",
"SCOTCH"});
93 p.
add(
"ghost_mode",
"none",
94 {
"shared_facet",
"shared_vertex",
"none"});
97 p.
add(
"reorder_cells_gps",
false);
98 p.
add(
"reorder_vertices_gps",
false);
101 std::string default_mesh_partitioner =
"SCOTCH";
104 default_mesh_partitioner =
"ParMETIS";
107 p.
add(
"mesh_partitioner", default_mesh_partitioner,
108 {
"ParMETIS",
"SCOTCH",
"None"});
112 p.
add(
"partitioning_approach",
"PARTITION",
113 {
"PARTITION",
"REPARTITION",
"REFINE"});
118 p.
add(
"ParMETIS_repartitioning_weight", 1000.0);
122 p.
add(
"refinement_algorithm",
"plaza",
123 {
"regular_cut",
"plaza",
"plaza_with_parent_facets"});
128 std::set<std::string> allowed_coloring_libraries;
129 allowed_coloring_libraries.insert(
"Boost");
131 allowed_coloring_libraries.insert(
"Zoltan");
133 p.
add(
"graph_coloring_library",
"Boost", allowed_coloring_libraries);
138 std::string default_backend =
"Eigen";
139 std::set<std::string> allowed_backends = {
"Eigen"};
141 allowed_backends.insert(
"PETSc");
142 default_backend =
"PETSc";
143 p.
add(
"use_petsc_signal_handler",
false);
146 allowed_backends.insert(
"Tpetra");
148 default_backend =
"Tpetra";
152 p.
add(
"linear_algebra_backend",
static Parameters default_parameters()
Default parameter values.
Definition: GlobalParameters.h:49
void add(std::string key)
Definition: Parameters.h:128
static Parameters default_parameters()
Default parameter values.
Definition: LUSolver.h:68
virtual ~GlobalParameters()
Destructor.
Definition: GlobalParameters.cpp:77
This class defines the global DOLFIN parameter database.
Definition: GlobalParameters.h:35
Definition: Parameters.h:94
GlobalParameters()
Constructor.
Definition: GlobalParameters.cpp:35
GlobalParameters parameters
The global parameter database.
Definition: GlobalParameters.cpp:32
static Parameters default_parameters()
Default parameter values.
Definition: KrylovSolver.cpp:32
virtual void parse(int argc, char *argv[])
Parse parameters from command-line.
Definition: GlobalParameters.cpp:82