The finite element interface (FEI) defines a linear solver interface for finite element applications. For information on how to use this interface, see [&make_named_href('', "node39.html#FEI-ref","[4]")]. This chapter describes the iterative methods and preconditioners in the HYPRE implementation of this interface.
Solving a linear system from a finite element problem consists of four steps in the FEI:
Parameters to the HYPRE solvers are specified by calling
where sysHandle is an identifier for the linear system being solved, numParams is the number of parameter strings, and paramStrings is an array of null-terminated strings with the format: ``parameter_name value''. For example, setting the preconditioner can be accomplished by:void FEI_parameters(int sysHandle, int numParams, char **paramStrings);
All possible parameters are listed in Table 5.1.char **paramStrings[1]; paramStrings[0] = (char *) malloc(64*sizeof(char)); strcpy(paramStrings[0], "preconditioner parasails"); FEI_parameters(sysHandle, 1, paramStrings);
A linear system is then solved by calling
void FEI_iterateToSolve(int sysHandle);