Module util¶
- util_save_matrix(FMT, FILENAME, A)¶
Exports a sparse matrix into the file named FILENAME, using Harwell-Boeing (FMT=’hb’) or Matrix-Market (FMT=’mm’) formatting.
- util_load_matrix(FMT, FILENAME)¶
Imports a sparse matrix from a file.
- util_trace_level(level=None)¶
Set the verbosity of some GetFEM routines.
Typically the messages printed by the model bricks, 0 means no trace message (default is 3). if no level is given, the current trace level is returned.
- util_warning_level(level=None)¶
Filter the less important warnings displayed by getfem.
0 means no warnings, default level is 3. if no level is given, the current warning level is returned.
- util_set_num_threads(nb_threads)¶
Sets the number of threads for the multithreaded GetFEM version. It is available only when GetFEM is compiled with openmp support.