File numerics/src/GenericMechanical/GenericMechanicalProblem.h

Go to the source code of this file

struct for GenericMechanicalProblem

Functions

GenericMechanicalProblem *genericMechanical_newFromFile(FILE *file)
void genericMechanicalProblem_display(GenericMechanicalProblem *pGMP)
void genericMechanicalProblem_free(GenericMechanicalProblem *pGMP, unsigned int level)
GenericMechanicalProblem *genericMechanicalProblem_new(void)
void genericMechanicalProblem_printInFile(GenericMechanicalProblem *problem, FILE *file)
void *gmp_add(GenericMechanicalProblem *pGMP, int problemType, int size)
struct GenericMechanicalProblem
#include <GenericMechanicalProblem.h>

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() ,
  • gmp_add() ,
  • and genericMechanicalProblem_free() FUNCTIONS.

Public Members

listNumericsProblem *firstListElem
listNumericsProblem *lastListElem
NumericsMatrix *M
int maxLocalSize
double *q
int size
struct listNumericsProblem

Public Members

int error
struct listNumericsProblem *nextProblem
struct listNumericsProblem *prevProblem
void *problem
double *q
int size
int type