xref: /libCEED/examples/deal.II/README.md (revision a44bca27e5d331f553a82497b0c34f31883da506)
145e62b5fSJeremy L Thompson## libCEED deal.II Example
245e62b5fSJeremy L Thompson
34a46e67dSJeremy L ThompsonAn example how to write libCEED operators (BP1-BP6) within the open-source finite element library [deal.II](https://www.dealii.org/).
44a46e67dSJeremy L ThompsonAs reference, operators are presented that use the native matrix-free infrastructure.
54a46e67dSJeremy L Thompson
64a46e67dSJeremy L ThompsonFirst compile deal.II and libCEED individually. After that, compile the deal.II example:
74a46e67dSJeremy L Thompson
84a46e67dSJeremy L Thompson```bash
94a46e67dSJeremy L Thompsonmkdir build
104a46e67dSJeremy L Thompsoncd build
114a46e67dSJeremy L Thompsoncmake ../ -DDEAL_II_DIR=~/path/to/dealii -DCEED_DIR=~/path/to/libceed
124a46e67dSJeremy L Thompsonmake
134a46e67dSJeremy L Thompson```
144a46e67dSJeremy L Thompson
15*d416dc2bSJeremy L ThompsonTo run the executables, write:
164a46e67dSJeremy L Thompson
174a46e67dSJeremy L Thompson```
18*d416dc2bSJeremy L Thompson./bps_cpu
19*d416dc2bSJeremy L Thompson```
20*d416dc2bSJeremy L Thompson
21*d416dc2bSJeremy L Thompson```
22*d416dc2bSJeremy L Thompson./bps_kokkos
234a46e67dSJeremy L Thompson```
244a46e67dSJeremy L Thompson
254a46e67dSJeremy L ThompsonOptional command-line arguments are shown by adding the command-line argument "--help".
26