hm_getsolver

Returns the name or ID of the solver as provided by the template *codename() command.

Syntax

hm_getsolver ?value?

Type

HyperMesh Tcl Query Command

Description

Returns the name or ID of the solver as provided by the template *codename() command. If no name is provided, or no template is loaded, "none" is returned.

Inputs

value
An optional argument that specifies the type of value to return.
ID - return the template ID
name - return the template name (default)

Examples

To get the name of the current solver:

set solver_name [hm_getsolver]

or

set solver_name [hm_getsolver name]

To get the name of the current solver:

set solver_id [hm_getsolver id]

Errors

None.