xref: /libCEED/examples/mfem/README.md (revision 45e62b5fd85c07bf32886201b28fd86143ee0826)
1*45e62b5fSJeremy L Thompson## libCEED MFEM Examples
2*45e62b5fSJeremy L Thompson
3*45e62b5fSJeremy L ThompsonThese examples show to write libCEED operators (BP1 and BP3) within the open-source finite element library [MFEM](https://www.mfem.org/).
4*45e62b5fSJeremy L Thompson
5*45e62b5fSJeremy L ThompsonFirst compile MFEM and libCEED individually. After that, compile the MFEM example:
6*45e62b5fSJeremy L Thompson
7*45e62b5fSJeremy L Thompson```bash
8*45e62b5fSJeremy L Thompsonexport MFEM_DIR=/path/to/mfem
9*45e62b5fSJeremy L Thompsonmake
10*45e62b5fSJeremy L Thompson```
11*45e62b5fSJeremy L Thompson
12*45e62b5fSJeremy L ThompsonTo run the executable, write:
13*45e62b5fSJeremy L Thompson
14*45e62b5fSJeremy L Thompson```
15*45e62b5fSJeremy L Thompson./bp[1, 3]
16*45e62b5fSJeremy L Thompson```
17*45e62b5fSJeremy L Thompson
18*45e62b5fSJeremy L ThompsonOptional command-line arguments are shown by adding the command-line argument "--help".
19