Skip to content

JSMumps.JSMumps()

John Willis edited this page Mar 21, 2017 · 2 revisions

Instantiates the JSMumps API.

    var jsm = new jsmumps.JSMumps(opts);

Arguments

  • opts: an object containing the initial configuration of JSMumps, e.g.:
    {
        workerCount: 5,
        logLevel: 3
    }
  • workerCount is a positive integer indicating the number of child processes to pre-fork when initializing JSMumps. Default value is 10.

  • logLevel indicates the level of logging desired, and is a positive integer in the range 0-4. A logLevel of 0 specifies no logging, a logLevel of 1 adds critical errors, 2 adds non-critical warnings, 3 adds informational messages, and 4 adds debugging messages (useful if you are adding new functionality to JSMumps). The default value is 2 (critical errors and non-critical warnings only).

Example

The following example will configure JSMumps with 15 child processes and a log level of 3 (critical errors, non-critical warnings, and informational messages).

    const jsmumps = require('jsmumps');
    var jsm = new jsmumps.JSMumps({
        workerCount: 15,
        logLevel: 3
    });
Clone this wiki locally