# http://trilinos.sandia.gov/packages/docs/r10.2/packages/intrepid/example/Drivers/example_05.cpp File Reference

Demonstrate diagonalized mass matrices for H(grad) elements in 1d using Gauss-Legendre quadrature. More...

`#include "Intrepid_FunctionSpaceTools.hpp"`
`#include "Intrepid_FieldContainer.hpp"`
`#include "Intrepid_CellTools.hpp"`
`#include "Intrepid_ArrayTools.hpp"`
`#include "Intrepid_HGRAD_QUAD_Cn_FEM.hpp"`
`#include "Intrepid_RealSpaceTools.hpp"`
`#include "Intrepid_DefaultCubatureFactory.hpp"`
`#include "Intrepid_Utils.hpp"`
`#include "Epetra_Time.h"`
`#include "Epetra_Map.h"`
`#include "Epetra_FECrsMatrix.h"`
`#include "Epetra_FEVector.h"`
`#include "Epetra_SerialComm.h"`
`#include "Teuchos_oblackholestream.hpp"`
`#include "Teuchos_RCP.hpp"`
`#include "Teuchos_BLAS.hpp"`
`#include "Shards_CellTopology.hpp"`
`#include "EpetraExt_RowMatrixOut.h"`
`#include "EpetraExt_MultiVectorOut.h"`

Go to the source code of this file.

## Functions

double evalu (double &x, double &y, double &z)
double evalDivGradu (double &x, double &y, double &z)
int main (int argc, char *argv[])

## Detailed Description

Demonstrate diagonalized mass matrices for H(grad) elements in 1d using Gauss-Legendre quadrature.

Remarks:
Usage
```
./Intrepid_example_Drivers_Example_03.exe max_deg verbose

int min_deg         - beginning polynomial degree to check
int max_deg         - maximum polynomial degree to check
verbose (optional)  - any character, indicates verbose output

```
Sample command line: checks mass matrix of degree 1,2,3
``` ./Intrepid_example_Drivers_Example_03.exe 1 3
```

Definition in file example_05.cpp.

Generated on Wed Mar 31 15:02:14 2010 for Intrepid by  1.6.3