# Struct GenericMechanicalProblem¶

struct GenericMechanicalProblem

Remark: The M and q contains the matrices of the GMP problem. The sub problems (problems) has also a M and q member usfull for the computation of the local error.

Parameters
• numberOfBlockLine: The number of line of blocks.
• M: a sparse blocks matrix.
• q: a dense vector.
• size: sizes of the local problems (needed in the dense case)
• nextProblem: the list of the next problems
• prevProblem: the list of the previous problems Remark: The M and q contains the matrices of the GMP problem. The sub problems (problems) has also a M and q member usfull for the computation of the local error.
• numberOfBlockLine: The number of line of blocks.
• M: : NumericsMatrix sparseblock matrix set by the user
• q: : dense vector set by the user
• size: : maximal size of local problem
• maxLocalSize: “private” manage by gmp_add
• firstListElem: “private” manage by gmp_add
• lastListElem: “private” manage by gmp_add

ONLY q and M must be allocated/free by the users, the others fields are private: DO NOT FILL THIS STRUCTURE BY YOURSELF, BUT USE THE

• genericMechanicalProblem_new() ,