gf_util

Purpose

Various functions.

Synopsis

gf_util('save matrix',string fmt, string filename, spmat A)
A = gf_util('load matrix',string fmt, string filename)
gf_util('trace level', int level)
gf_util('warning level', int level)

Description

gf_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.

A=gf_util('load matrix', fmt, filename) : imports a sparse matrix from a file.

gf_util('trace level', level) : set the verbosity of some getfem++ routines (typically the messages printed by the model bricks), 0 means no trace message (default is 3).

gf_util('warning level', level) : filter the less important warnings displayed by getfem. 0 means no warnings, default level is 3.