Compare commits

...
987 Commits
Author SHA1 Message Date
Julian Andrej 7167757d39 renaming and alternative interface 2020-12-03 08:49:51 -08:00
Julian Andrej 60ef17a321 example test 2020-11-30 13:43:45 -08:00
Julian Andrej 97272d60e8 support coordinates in qfunc kernel 2020-11-25 09:59:55 -08:00
Julian Andrej bb9eb4872b fixed parallel 2020-11-24 14:29:27 -08:00
Julian Andrej 41798f7028 more tests and example updated 2020-11-24 12:05:45 -08:00
Julian Andrej 633ee29601 more unit tests 2020-11-23 18:10:52 -08:00
Julian Andrej bb194bbcd5 plaplacian ready 2020-11-23 16:51:43 -08:00
Julian Andrej 9d5977165f more ad functions 2020-11-23 16:03:57 -08:00
Julian Andrej 68fb8e80a9 add unit tests and work towards p-Laplacian 2020-11-23 14:51:46 -08:00
Julian Andrej 274416caf5 add temporary safeguards for independent variables during AD 2020-11-20 17:53:40 -08:00
Julian Andrej 5853221745 ad working 2020-11-20 16:50:04 -08:00
Sam Mish c79cccdc08 changes to get variadic args working 2020-11-19 08:53:35 -08:00
Julian Andrej 91f30e88c9 refactor 2020-11-18 15:44:09 -08:00
Julian Andrej 1432ac14a6 working example 2020-11-18 08:26:51 -08:00
Julian Andrej 02cfe4ff0a parameter pack expansion 2020-11-17 09:00:58 -08:00
Julian Andrej 447214ef57 switch to tuple return type 2020-11-16 10:50:46 -08:00
Julian Andrej fba6b4d832 gradient matvec 2020-11-13 16:32:48 -08:00
Julian Andrej 12ec6db87c working operator application 2020-11-11 18:18:38 -08:00
Julian Andrej f117c0a4e7 first try 2020-11-11 16:04:23 -08:00
Tzanio Kolev 7cd6686e42 Merge pull request #1805 from mfem/navier-filter
Implementation of a filter method for Navier
2020-11-03 12:39:54 -08:00
Tzanio 4101b62099 Merge branch 'master' into navier-filter 2020-11-03 12:37:38 -08:00
Julian Andrej eb0df95218 changelog entry 2020-11-03 12:35:56 -08:00
Veselin Dobrev a828dbb5fe Merge pull request #1788 from mfem/mumps-solver
Interface with the distributed MUMPS solver
2020-11-03 10:38:51 -08:00
Veselin Dobrev 538ac3a6ab Merge branch 'master' into mumps-solver 2020-11-03 08:19:30 -08:00
Tzanio Kolev 3c0d346d0d Merge pull request #964 from mfem/RK_solvers
Added three ESDIRK schemes [RK_solvers]
2020-11-03 07:39:13 -08:00
Tzanio 4914e93d0f Merge branch 'master' into navier-filter 2020-11-03 07:38:47 -08:00
Tzanio 6e63b81c94 Mentioned #964 in CHANGELOG 2020-11-03 07:37:55 -08:00
Tzanio edbaa5b3fd Merge branch 'master' into RK_solvers 2020-11-03 07:36:07 -08:00
Tzanio Kolev eb1cf52ebd Merge pull request #1835 from mfem/scaled-jacobian-plot-dev
Scaled Jacobian plot and locations of bad elements [scaled-jacobian-plot-dev]
2020-11-03 07:31:57 -08:00
Tzanio Kolev 03aa166858 Merge branch 'master' into scaled-jacobian-plot-dev 2020-11-03 07:31:20 -08:00
Tzanio Kolev 37efde9e55 Merge pull request #1855 from mfem/catch-v2.13.2
Upgrade from Catch v2.13.0 to v2.13.2
2020-11-01 13:37:18 -08:00
Tzanio a17a1f1a2d Updated CHANGELOG 2020-11-01 13:32:02 -08:00
Tzanio 0640727b77 Merge branch 'master' into mumps-solver 2020-11-01 13:31:21 -08:00
Tzanio 01c0f4af68 Updated CHANGELOG 2020-11-01 13:29:51 -08:00
Tzanio 8de1d37871 Merge branch 'master' into scaled-jacobian-plot-dev 2020-11-01 13:27:11 -08:00
Tzanio 0359c410a9 Merge branch 'master' into RK_solvers 2020-11-01 13:26:02 -08:00
Tzanio d3028ea057 Merge branch 'master' into navier-filter 2020-11-01 13:24:39 -08:00
Tzanio 9f8e2f8bc7 Updated CHANGELOG 2020-11-01 13:22:53 -08:00
Tzanio 2436fa67ca Merge branch 'master' into catch-v2.13.2 2020-11-01 13:20:54 -08:00
Tzanio Kolev b4ba111505 Merge pull request #1857 from mfem/new-dev-version-4.2.1
Update version numbers to 4.2.1 -- a new development version [new-dev-version-4.2.1]
2020-11-01 13:20:07 -08:00
Veselin Dobrev 7bf942176e Merge branch 'master' into mumps-solver 2020-11-01 03:10:08 -08:00
Veselin Dobrev 4149fbc0d6 Update version numbers to 4.2.1 -- a new development version. 2020-11-01 02:18:15 -08:00
Tzanio Kolev ed5604e0d3 Merge pull request #1827 from mfem/mfem-4.2-dev
Final changes for the mfem-4.2 release
2020-10-30 15:30:58 -07:00
Veselin Dobrev 4bfb6b5a93 In miniapps/adjoint/cvsRoberts_ASAi_dns.cpp, call the method
SetMaxNStepsB() after InitB().
2020-10-30 14:59:56 -07:00
Veselin Dobrev ca7cf33e51 In class CVODESSolver, add a wrapper for CVodeSetMaxNumStepsB
and use it in miniapps/adjoint/cvsRoberts_ASAi_dns.cpp to
increase the default value.
2020-10-30 14:48:21 -07:00
Tzanio 3ff745bbd6 The mfem-4.2 release date is 10/30/20 2020-10-30 14:23:14 -07:00
Veselin Dobrev 51067ca0ae To address an issue with SUNDIALS v5.4.0, explicitly set the
maximum number of steps in
   miniapps/adjoint/adjoint_advection_diffusion.cpp.
2020-10-30 13:23:05 -07:00
Veselin Dobrev eb5a60e24e In miniapps/adjoint, remove the unnecessary dependency on
'mfem-common' from the CMake file as well.
2020-10-30 10:00:27 -07:00
Will Pazner 949d43f80e Upgrade from Catch v2.13.0 to v2.13.2
Adds a workaround for internal NVCC compiler error:

   nvcc segfaults when encountering a call to __builtin_constant_p with an
   argument that involves a new-expression trying to invoke a user-provided
   constructor

We would encounter this problem with complex REQUIRE statements (e.g. in
test_ode.cpp).
2020-10-30 09:42:10 -07:00
Veselin Dobrev 780cf34b0e Remove the 'mfem-common' dependency and linking from the
miniapps/adjoint directory.

In miniapps/adjoint/adjoint_advection_diffusion.cpp, print
the usage/options messages only from rank 0.

Update two package version requirements in INSTALL.
2020-10-30 08:57:14 -07:00
Veselin Dobrev 97ad695664 In HIP kernels, use MFEM_HIP_BLOCKS instead of MFEM_CUDA_BLOCKS.
There is no change in the compiled code since both macros are
defined to be 256.
2020-10-29 06:18:56 -07:00
Tzanio Kolev e6cee4c66a Merge pull request #1847 from mfem/parse-subnormals
Fix GLVis issue with subnormals Apple Clang
2020-10-28 16:58:19 -07:00
Will Pazner 7fc5ce17ba Zero subnormals in ParaView output 2020-10-28 11:48:46 -07:00
Will Pazner 62f4c49ac6 Remove conditional compilation of resetting failbit for subnormals 2020-10-28 11:42:54 -07:00
Veselin Dobrev 732c7c755d Fix recursive header inclusion and header include warnings.
Remove some copy-paste comments inside doxygen comments.
2020-10-28 07:28:41 -07:00
Will Pazner d15a402464 Fix GLVis issue with subnormals Apple Clang
Zero out subnormal numbers when writing a Vector to an output stream. When
reading a Vector from an input stream with Apple Clang, ignore "out of range"
errors, which can be caused by (correctly) parsing subnormal numbers.
2020-10-27 15:05:42 -07:00
Veselin Dobrev 93d6ae57a0 Fix the logic in ForallWrap to reflect exactly the
allowed/enabled backends.

When using 'occa-omp' enable the 'omp' backend (if MFEM was
built with MFEM_USE_OPENMP=YES) unless 'raja-omp' is already
enabled.

If using 'ceed-cuda' enable 'cuda' only if 'raja-cuda' is
not allowed.

Update the documentation of Device::Configure.

Ensure that at most one 'ceed-*' backend is allowed.
2020-10-26 23:33:14 -07:00
Tzanio 96b4b127ea minor 2020-10-26 14:48:16 -07:00
Veselin Dobrev 46b8f916ba Small edits in CHANGELOG and INSTALL. 2020-10-26 12:37:14 -07:00
Tzanio KolevandAndrew T. Barker 2f64f73cbd Apply suggestions from code review
Thanks Andrew!

Co-authored-by: Andrew T. Barker <barker29@llnl.gov>
2020-10-26 08:26:09 -07:00
Tzanio 9bfe9cac44 Removed some non-ASCII characters 2020-10-26 07:19:28 -07:00
Veselin Dobrev fa340fd6b1 In CGSolver::Mult check for convergence with <= instead of <.
Adjust the "CGSolver" unit test.
2020-10-26 04:26:00 -07:00
Veselin Dobrev acad1864a2 Remove byte order mark (BOM) from files.
Add newline at the end of a file.
2020-10-26 03:15:50 -07:00
Tzanio 8fe29c6d63 Updated CHANGELOG before the mfem-4.2 release 2020-10-25 22:31:07 -07:00
Tzanio a53d9c1299 Changes in the examples/ directory before the mfem-4.2 release 2020-10-25 17:07:24 -07:00
Tzanio 6a49025c07 Changes in the miniapps/ directory before the mfem-4.2 release 2020-10-25 15:13:00 -07:00
Veselin Dobrev 129e191776 Use 1 as the default attribute in class Element.
Tweak the "Element-wise construction" mesh unit test to set the
vertices in counterclockwise order and check that the default
attribute is 1.

Before the above changes, there was a warning from the unit test
about non-positive element attributes.
2020-10-25 11:54:41 -07:00
Veselin Dobrev 65d7576530 Fix typos in the CMake file in miniapps/nurbs. 2020-10-25 00:33:29 -07:00
Tzanio a7d05f30b5 Merge branch 'mfem-4.2-dev' of github.com:mfem/mfem into mfem-4.2-dev 2020-10-24 20:07:15 -07:00
Tzanio a344b2051f Changes in the fem/ directory before the mfem-4.2 release 2020-10-24 20:07:10 -07:00
Veselin Dobrev c540ca8dec Fix source file names in config/sample-runs.sh 2020-10-24 19:39:08 -07:00
Tzanio 410c2c8d0f Changes in the mesh/ directory before the mfem-4.2 release 2020-10-24 19:26:22 -07:00
Tzanio bd7fdaff4e Merge branch 'master' into mfem-4.2-dev 2020-10-24 19:07:49 -07:00
Tzanio Kolev de4a24b0ff Merge pull request #1837 from mfem/adios2-element-attribute
ADIOS2 output switch material to MFEM attribute in CellData
2020-10-24 19:07:23 -07:00
Tzanio d472fe16d9 Changes in the linalg/ directory before the mfem-4.2 release 2020-10-24 19:06:53 -07:00
Tzanio 89fad12237 Changes in the general/ directory before the mfem-4.2 release 2020-10-24 18:27:14 -07:00
Tzanio 6be78c57e1 Added comments and a refinement for the scaled Jacobian option in mesh explorer. 2020-10-24 14:46:22 -07:00
William F Godoy 4ba894af37 ADIOS2 output switch material to MFEM attribute in CellData
To sync up with ParaViewDataCollection
2020-10-24 11:27:42 -04:00
Veselin Dobrev 54fa6fe4d6 Add support for MPI+HIP builds in makefiles.
Fix a few issues with the MPI+HIP build.
2020-10-23 20:48:42 -07:00
Walter I. Nissen ca37dc2e67 Fixed brace style 2020-10-23 15:25:49 -07:00
Walter I. Nissen eb7833533f Slight comments 2020-10-23 15:04:39 -07:00
Walter I. Nissen 9d0a7ac938 Tweak to output to use mfem-style Print function and summary of elements not printed. 2020-10-23 15:04:39 -07:00
Walter I. Nissen f34b48335a Add scaled jacobians with the 'j' key 2020-10-23 15:04:39 -07:00
Walter I. Nissen 4e570ad11c Thanks to Tzanio for telling me where to put this. 2020-10-23 15:04:39 -07:00
Yohann Dudouit 651809f473 Add support for Raja > 0.12 2020-10-23 11:46:59 -07:00
Tzanio 4fb2bade1a Merge branch 'master' into mfem-4.2-dev 2020-10-23 07:20:03 -07:00
Tzanio Kolev 1bc87a5778 Merge pull request #1825 from mfem/paraview-bdr
ParaView output of boundary elements and attributes
2020-10-23 07:19:11 -07:00
Tzanio 748533fc93 Changes in the doc/ directory before the mfem-4.2 release 2020-10-22 21:56:22 -07:00
Tzanio de99f19692 Changes in the config/ directory before the mfem-4.2 release 2020-10-22 19:14:38 -07:00
Tzanio 6e5e4246c1 Changes in the tests/ directory before the mfem-4.2 release 2020-10-22 19:04:41 -07:00
Tzanio 6538d4ccf5 Small changes before the mfem-4.2 release 2020-10-22 18:50:33 -07:00
Tzanio 20424d5c88 Merge branch 'paraview-bdr' into mfem-4.2-dev 2020-10-22 17:52:12 -07:00
Dylan Copeland 75c79303a2 Set operator size in AmgXSolver. 2020-10-22 16:34:01 -07:00
Will Pazner a83ac75a8f Document and fix path handling in ParMesh::PrintVTU 2020-10-22 13:51:26 -07:00
Tzanio 2cb0a7b8b6 Merge branch 'master' into mfem-4.2-dev 2020-10-22 12:29:48 -07:00
Tzanio Kolev 2d62a136d0 Merge pull request #1719 from mfem/yohann/test-ceed
Add tests for the libCEED integration in MFEM
2020-10-22 12:28:02 -07:00
psocratis 4b09bc532f moving macros to .cpp file 2020-10-22 12:06:11 -07:00
Veselin Dobrev 3ab4dd4194 Some formatting edits. 2020-10-22 11:54:40 -07:00
psocratis ca3f53b37b fixed version in changelog 2020-10-22 11:04:10 -07:00
Tzanio 1833aa7248 Merge branch 'master' into mfem-4.2-dev 2020-10-21 18:44:37 -07:00
Veselin Dobrev 9c82ef12d1 Merge pull request #1749 from mfem/nc-point-mat-index-dev
Unique point matrices in `NCMesh::NCList` [nc-point-mat-index-dev]
2020-10-21 18:27:26 -07:00
psocratis 799069babc renaming info and icntl to avoid conflicts with catch. INFO->MUMPS_INFO, ICNTL->MUMPS_ICNTL 2020-10-21 16:18:01 -07:00
Tzanio cb85fe98e7 Merge branch 'master' into mfem-4.2-dev 2020-10-21 15:36:02 -07:00
Tzanio 4832f32078 Small rewording 2020-10-21 15:35:17 -07:00
Adrien M. Bernede d1bd2290a4 Remove .html mentions in CONTRIBUTING 2020-10-21 15:18:23 -07:00
Adrien M. Bernede 006a30c031 Fix: restoring logo 2020-10-21 15:13:14 -07:00
Adrien M. Bernede 8149aa2407 Remove mentions of .html and web 2020-10-21 15:11:30 -07:00
Adrien M. Bernede 6aa01187d7 Remove doc/web directory, now only using mfem/web repo 2020-10-21 14:36:56 -07:00
Adrien M. Bernede 89de74c545 Remove remaining html files 2020-10-21 14:10:41 -07:00
psocratis a14b018692 adding check for HYPRE_BIGINT 2020-10-21 13:49:42 -07:00
Will Pazner 5143a46538 Update CHANGELOG 2020-10-21 13:47:43 -07:00
Tzanio Kolev ec10e26b15 Merge pull request #1819 from mfem/examples/artv3/amgx-ex1p
Minor fixes to amgx:ex1p, adjust amgx defaults
2020-10-21 10:55:15 -07:00
Tzanio Kolev 9161bdca79 Merge pull request #1826 from mfem/tbnlf
Absolute value function 'abs' when argument is of floating point type [tbnlf]
2020-10-21 10:53:50 -07:00
Will Pazner d98cd5ff7c Parallel VTU output for meshes and boundaries 2020-10-20 15:36:22 -07:00
Tzanio 41b0aa5d45 Updates in INSTALL for mfem-4.2 release:
- Use hypre 2.20.0 instead of 2.16.0 in the example
- Mesquite is deprecated and will be removed
- Versions for ADIOS and HIOP
2020-10-20 14:08:31 -07:00
Adrien M. Bernede a209a82e08 Update MFEM version: CHANGELOG, makefile, CMakeLists.txt, doc/CodeDocumentation.conf.in 2020-10-20 13:30:38 -07:00
Tzanio 1527b58ffc Merge branch 'tbnlf' into mfem-4.2-dev 2020-10-20 12:50:43 -07:00
Tzanio 1197dd6a31 Merge branch 'examples/artv3/amgx-ex1p' into mfem-4.2-dev 2020-10-20 12:50:33 -07:00
Tzanio 89c1638ff9 Merge branch 'yohann/test-ceed' into mfem-4.2-dev 2020-10-20 12:50:20 -07:00
Tzanio 9497f837ca Merge branch 'nc-point-mat-index-dev' into mfem-4.2-dev 2020-10-20 12:50:08 -07:00
camierjs 83ad60cfbe Absolute value function 'abs' when argument is of floating point type 2020-10-20 09:53:41 -07:00
Will Pazner 7b827ad096 Allow for VTU output of boundary elements and attributes 2020-10-19 17:08:02 -07:00
Julian Andrej c10ede8fba clarify docs 2020-10-19 16:33:42 -07:00
Julian Andrej 81dcca3e12 reference formatting 2020-10-19 11:28:45 -07:00
Julian Andrej bdd237c7ea spelling 2020-10-19 11:27:41 -07:00
Yohann Dudouit 47f5468540 Remove extra semicolons 2020-10-19 11:27:34 -07:00
Julian Andrej cacc93d8dc mention filter algorithm reference 2020-10-19 11:27:00 -07:00
Yohann Dudouit 3f8ff31d52 Reorganize CMakeLists 2020-10-19 10:41:07 -07:00
Yohann Dudouit ba467dbf04 Update hypre test 2020-10-19 10:36:15 -07:00
Yohann Dudouit a88c07b4ac Merge branch 'master' into yohann/test-ceed 2020-10-19 09:49:16 -07:00
Tzanio 18e1a91d61 minor 2020-10-18 18:47:19 -07:00
psocratis 3b9c4b28ad style 2020-10-18 15:43:19 -07:00
psocratis 3df5658695 fixing comments for the set* methods 2020-10-18 15:42:40 -07:00
psocratis 8cc5feb057 resolving conflicts with master. Minor changes addressing reviewers' comments 2020-10-18 15:33:05 -07:00
Arturo Vargas dc768abcab fixed verify message 2020-10-18 14:56:01 -07:00
Arturo Vargas a38b8081b2 add verify for basic example 2020-10-18 14:53:45 -07:00
Arturo Vargas 89d257c335 minor edits 2020-10-18 14:34:05 -07:00
Arturo Vargas 0e36573436 minor documenation fixes, adjust solver preconditioner 2020-10-18 14:13:54 -07:00
Tzanio Kolev f97eef13fc Merge pull request #1756 from mfem/superlu-update-dev
Update SuperLU to 6.3.1
2020-10-18 12:45:51 -07:00
Tzanio 0d95f455f9 Final updates for the SuperLU PR #1756 2020-10-18 12:43:52 -07:00
Tzanio a3563bd454 Merge branch 'master' into superlu-update-dev
Conflicts:
	examples/makefile
2020-10-18 11:21:20 -07:00
Tzanio Kolev e17b0c5aee Merge pull request #1386 from mfem/feature/artv3/amgx
Add support for AmgX
2020-10-18 11:20:00 -07:00
Tzanio 1dafb75576 Final updates for the AmgX PR #1386 2020-10-18 11:16:37 -07:00
Tzanio Kolev 740178cfcf Merge pull request #1714 from mfem/libceed-hip
Enable HIP backend in libCEED
2020-10-18 11:02:53 -07:00
Tzanio 3b01fd0741 Updated CHANGELOG and Example 1 sample runs 2020-10-18 11:00:25 -07:00
Tzanio Kolev ef0c14eb6e Merge pull request #1673 from wcdawn/master
Address leaks in SlepcEigenSolver
2020-10-17 21:43:05 -07:00
Tzanio Kolev e124e91469 Merge pull request #1787 from mfem/barker29/hypre-initial-spelling
hypre.hpp: transition to a correct spelling for SetInitialIterate()
2020-10-17 21:41:49 -07:00
Aaron Fisher 9c269df22d Merge branch 'superlu-update-dev' of github.com:mfem/mfem into superlu-update-dev 2020-10-15 11:53:15 -07:00
Aaron Fisher d668a28b29 Fixed make test in the superlu example. 2020-10-15 11:52:38 -07:00
Veselin Dobrev 7e45098ad1 Merge pull request #1802 from mfem/hypre-smoother-fix
Fix for reusing HypreSmoother
2020-10-14 18:04:36 -07:00
YohannandWill Pazner ca3aa0e446 Delete coeff.
Co-authored-by: Will Pazner <11493037+pazner@users.noreply.github.com>
2020-10-14 11:20:27 -07:00
YohannandWill Pazner fcf5eeef3e Create FunctionCoefficient only when needed.
Co-authored-by: Will Pazner <11493037+pazner@users.noreply.github.com>
2020-10-14 11:20:03 -07:00
Yohann Dudouit a9a372ca5d Replace fes by mesh_fes. 2020-10-13 16:52:50 -07:00
Yohann Dudouit 104f94e645 Update comment. 2020-10-13 15:38:39 -07:00
Yohann Dudouit f4b31f910a Fix the interface for strided restrictions. 2020-10-13 15:14:01 -07:00
Yohann Dudouit f9ede5f5c4 Remove memory leak. 2020-10-13 15:07:55 -07:00
Aaron Fisher 592abbbd41 Merge branch 'superlu-update-dev' of https://github.com/mfem/mfem into superlu-update-dev 2020-10-13 11:55:20 -07:00
Aaron Fisher e99eab4197 Removed a static condensation sample run that I missed. 2020-10-13 11:43:11 -07:00
Tzanio Kolev f931e46e5d Merge branch 'master' into superlu-update-dev 2020-10-13 11:37:02 -07:00
Yohann Dudouit b1d2e2827b Remove compilation warnings in test_ceed.cpp. 2020-10-13 10:56:53 -07:00
Jakub Červený c18fabe72f Fixed crash due to incorrect slave.geom of edge-face constraints. 2020-10-13 14:57:28 +02:00
Arturo Vargas af7bc8f988 minor fixes to examples 2020-10-12 18:32:21 -07:00
psocratis 84d4013a50 fix conflicts 2020-10-12 18:09:01 -07:00
Aaron Fisher 44bfdec7fc Fixed some verbiage, removed some defunct sample runs and added some SuperLU command line options to the example. 2020-10-12 17:00:59 -07:00
Tzanio Kolev 265ed8caa8 Merge pull request #1785 from mfem/jfnk
Add KINSOL JFNK interface
2020-10-12 15:26:50 -07:00
Tzanio 983c83d4b5 Minor editing 2020-10-12 15:11:40 -07:00
Julian Andrej aa06473d31 Merge branch 'master' into jfnk 2020-10-12 14:54:28 -07:00
Julian Andrej f44c9f217f changelog entry 2020-10-12 14:49:18 -07:00
Tzanio a4ef4063f3 minor 2020-10-12 14:37:46 -07:00
Julian Andrej c507d3dc3d make style 2020-10-12 13:43:33 -07:00
Ben Southworth 62d78501a3 Change to three space=indent 2020-10-12 13:25:37 -07:00
Arturo Vargas 07b02018b2 Merge branch 'feature/artv3/amgx' of github.com:mfem/mfem into feature/artv3/amgx 2020-10-12 13:21:17 -07:00
Arturo Vargas 7a30f9d690 merge with master + conflicts 2020-10-12 13:21:02 -07:00
Ben Southworth 5fbe7bd995 Added unit tests 2020-10-12 13:01:00 -07:00
Tzanio Kolev 9e8396f5ca Merge pull request #1784 from mfem/mkl-pardiso
Interface to MKL Parallel Direct Sparse Solver for Clusters
2020-10-12 12:39:01 -07:00
Arturo Vargas 48df14a60b make style 2020-10-12 12:34:53 -07:00
Arturo Vargas c8c72d285b PR example fixes 2020-10-12 12:32:50 -07:00
Tzanio 7a917bec44 minor 2020-10-12 11:26:40 -07:00
Julian Andrej c11a9f232b change naming in asserts 2020-10-12 10:10:44 -07:00
Julian Andrej 0f0ad13b17 clarify some comments on the input parameters 2020-10-12 10:09:27 -07:00
Julian Andrej 042fe5c210 unsymmetric -> nonsymmetric 2020-10-12 10:04:02 -07:00
Julian Andrej c7a32cd6e7 style in ex11p 2020-10-12 10:02:34 -07:00
Julian Andrej 4f477a22d7 clarify naming in CHANGELOG 2020-10-12 10:01:43 -07:00
Julian Andrej b34523d8ec clarify naming in INSTALL 2020-10-12 10:00:42 -07:00
Arturo Vargas be9180d7b8 revert ex1,1p, change log, keep amgx examples under amgx folder 2020-10-12 09:22:38 -07:00
Arturo Vargas b7d40db11e configure master rank to only print 2020-10-12 08:28:45 -07:00
Tzanio Kolev a50f58f1de Merge pull request #1687 from mfem/hypre-ilu-dev
Wrapper for Hypre Flexible GMRES and Parallel ILU [hypre-ilu-dev]
2020-10-11 10:47:12 -07:00
Tzanio 6d4c5cb9e8 minor 2020-10-11 10:45:15 -07:00
Jason Hicken 2ff6105824 added description to CHANGELOG 2020-10-11 11:47:59 -04:00
Tzanio Kolev 3553d77f71 Merge pull request #1792 from mfem/jeremy/libceed-07
libceed - update to v0.7
2020-10-10 19:06:03 -07:00
Tzanio 96c7ad1fe8 Styling 2020-10-10 18:30:30 -07:00
Yohann Dudouit b43167f841 Lower the order of the tests. 2020-10-09 16:08:02 -07:00
Yohann Dudouit d27560980e Add ceed tests to cmake. 2020-10-09 16:02:02 -07:00
Arturo Vargas 18b629e39d update notice and github link to amgxwrapper 2020-10-09 14:31:13 -07:00
Will Pazner 2cc635a159 Split CEED unit tests and main file for faster compilation 2020-10-09 12:35:33 -07:00
Yohann Dudouit 5089710785 Add ceed_tests to .gitignore 2020-10-09 12:25:14 -07:00
Arturo Vargas d0cae7b65e improve documentation based on feedback 2020-10-09 10:36:16 -07:00
bensworth e4a8344e94 Merge branch 'master' into RK_solvers 2020-10-09 09:41:31 -06:00
Veselin Dobrev 58066cb40a Various updates to the build systems mostly related to AmgX. 2020-10-08 22:29:47 -07:00
Socratis cb5f1830de checked cmake both on linux and macos 2020-10-08 16:54:57 -07:00
Yohann Dudouit c409addf73 Remove the test on tet for cuda-gen... 2020-10-08 15:57:19 -07:00
Yohann Dudouit 124be8083d Add tests on periodic and tet mesh. 2020-10-08 15:44:03 -07:00
Yohann Dudouit 1d362dabf4 Rewrite InitCeedBasis/Restriction to work with L2. 2020-10-08 15:43:43 -07:00
Tzanio Kolev bfbde13aef Merge pull request #1807 from mfem/probot-stale-dev
Configuration for the Probot Stale GitHub app
2020-10-08 15:20:16 -07:00
Veselin Dobrev 6feaeca0af Merge pull request #1661 from mfem/stdfunction-dev
[Discuss] Change function coefficients to use a std::function [stdfunction-dev]
2020-10-08 14:11:17 -07:00
Tzanio Kolev b0f3506cd1 Adjusted message 2020-10-08 12:13:38 -07:00
Tzanio Kolev 1324813877 Merge pull request #1683 from mfem/yohann/fix-doc-FULL
Use LEGACYFULL instead of FULL in the documentation.
2020-10-08 12:02:51 -07:00
Tzanio Kolev ffc2ddd19f Merge pull request #1724 from pghysels/fix-strumpack-hypre2160
Fix for STRUMPACK with Hypre >= 21600
2020-10-08 12:02:16 -07:00
Tzanio Kolev 99c541aaf0 Merge pull request #1702 from mfem/bug_parblocknlform
Bug - double ParBlockNonlinearForm::GetEnergy(const Vector &x)
2020-10-08 12:01:05 -07:00
psocratis d91e31458c minor fix in cmake 2020-10-08 11:31:27 -07:00
nbeams aa278f92a3 update comments for ceed backends 2020-10-08 13:04:11 -04:00
Yohann Dudouit 3b55af5e7d Add an error message when used on periodic meshes. 2020-10-08 09:55:29 -07:00
Yohann Dudouit 94dfb80751 Remove SetupPA from DiffusionIntegrator. 2020-10-08 09:38:02 -07:00
Yohann 459a463105 Merge branch 'master' into yohann/test-ceed 2020-10-08 09:26:31 -07:00
Yohann Dudouit 7a9267a126 Remove IntegrationRule from InitCeedTensorRestriction. 2020-10-08 09:22:23 -07:00
Arturo Vargas bb74522d3d change log + install notes 2020-10-08 09:03:05 -07:00
Arturo Vargas 2b00b42807 fix doxygen error 2020-10-08 08:49:35 -07:00
Tzanio Kolev 36aa62fe1d Proper emoji? 2020-10-08 08:20:27 -07:00
Tzanio 0d9ad5bc2e Updated probot-stale configuration 2020-10-08 08:17:39 -07:00
Arturo Vargas 17c5a5d42c clean up pass for amgx examples 2020-10-08 07:59:19 -07:00
Arturo Vargas 645a6f7eec .cpp clean up pass 2020-10-08 07:49:30 -07:00
Arturo Vargas 0db4c52ad6 doc pass for header 2020-10-08 07:35:09 -07:00
Arturo Vargas 4c944f13c0 doc pass, remove whitelines 2020-10-08 06:18:17 -07:00
Arturo Vargas 9f4db78cf5 PR comments pass 2020-10-08 05:21:57 -07:00
Arturo Vargas 90c4fd93c3 initial cmake support 2020-10-08 04:34:43 -07:00
Tzanio 9dc14f5a3a Configuration for the Probot Stale GitHub app 2020-10-07 19:58:44 -07:00
Julian Andrej 7893c819a9 implementation of a filter method 2020-10-07 16:03:33 -07:00
Tzanio Kolev b0a2d04644 Merge pull request #1803 from mfem/fix/lassen-debug-ci
Build cuda debug on lassen with O2 to speed up [fix/lassen-debug-ci]
2020-10-07 15:51:52 -07:00
Tzanio c55da48818 Fix for #1795 2020-10-06 15:57:15 -07:00
Adrien M. Bernede 76d45096d5 Build cuda debug on lassen with O2 to speed up 2020-10-06 15:15:14 -07:00
Yohann Dudouit 1ee3a4c7ae Improve documentation for AssembleMF. 2020-10-06 11:45:29 -07:00
Veselin Dobrev eec0efad09 Add a CHANGELOG entry for the changes in the function coefficient
classes.

Improve the formatting of some doxygen comments.
2020-10-05 18:03:58 -07:00
Julian Andrej 8ed2b92887 remove code duplication for printlevel 2020-10-05 16:33:34 -07:00
Julian Andrej 5161740a87 adapt to new sundials 2020-10-05 16:22:30 -07:00
Julian Andrej 717f28496f fix sundials cmake 2020-10-05 16:22:04 -07:00
Julian Andrej a2dd91f7a8 Merge branch 'master' into jfnk 2020-10-05 15:24:43 -07:00
Aaron Fisher 9bbbe58c4a Made the version numbers for the latest SuperLU library consistant. 2020-10-05 13:40:54 -07:00
Aaron Fisher f8a3266845 Setup the SuperLU integration to work with SuperLU_DIST 5 or 6. 2020-10-05 13:33:45 -07:00
Aaron Fisher 6f4bf0af67 make style 2020-10-05 10:59:50 -07:00
Arturo Vargas d528b94e2e amgx option to example 1 2020-10-04 23:24:32 -07:00
Arturo Vargas 0697f7a2fe reorg for default parameters 2020-10-04 22:15:57 -07:00
Arturo Vargas 13a1fa3969 add default parameters to simply integrating AMGX into applications 2020-10-04 19:27:09 -07:00
Tucker Babcock 90b933c56a fix merge conflict 2020-10-04 19:18:22 -04:00
Tucker Babcock 858cfdd2db remove support for overloaded functions in function coefficients that required metaprogramming. 2020-10-04 19:12:53 -04:00
Tzanio Kolev 84e68df837 Merge pull request #1744 from mfem/hotfix/pbnlf-essbdr
Support non-conforming meshes with BlockNonlinearForm and ParBlockNonlinearForm
2020-10-04 12:12:53 -07:00
Tzanio a74337433f Mention in CHANGELOG 2020-10-04 12:11:09 -07:00
Tzanio Kolev e70cf4c5d6 Merge pull request #1726 from balos1/sundials-gpu-dev
Add support for SUNDIALS GPU features [sundials-gpu-dev]
2020-10-04 11:58:40 -07:00
Tzanio Kolev 5ff4841dbc Merge pull request #1665 from mfem/matdiffpa
Matrix coefficients for diffusion PA
2020-10-04 11:54:23 -07:00
Tzanio Kolev 24cef871af Merge pull request #1765 from mfem/blfi-default-assemble-vector-dev
Default implementation of AssembleElementVector and AssembleFaceVector for bilinear integrators [blfi-default-assemble-vector-dev]
2020-10-04 11:49:20 -07:00
Tzanio 8b05534d60 Some comments 2020-10-04 11:48:29 -07:00
Julian Andrej d9a2fde388 remove MKL test code in cmake build system 2020-10-04 10:48:33 -07:00
Julian Andrej 561daa66b6 add dependencies to mumps 2020-10-02 16:52:07 -07:00
Julian Andrej cd1cacd1a6 correct findmumps cmake 2020-10-02 16:48:33 -07:00
Veselin Dobrev bdc302e5c2 In ex19p, remove an MPI_Finalize call which is now wrong. 2020-10-02 16:08:21 -07:00
psocratis 2b94b8bd43 configuring cmake 2020-10-02 14:56:38 -07:00
Arturo Vargas 2816f85a7e Merge branch 'master' into feature/artv3/amgx 2020-10-02 13:56:47 -07:00
Socratis b6e4244806 minor tweaks 2020-10-02 11:32:40 -07:00
Socratis 59eaee6f13 fixing travis doc errors 2020-10-01 19:31:03 -07:00
Socratis 9fd56d22a2 fixed newly introduced valgrind mem leak 2020-10-01 19:11:19 -07:00
psocratis fc3babf85d minor, initialization of int arrays 2020-10-01 19:03:35 -07:00
Socratis 1d0b509827 mumps_solver valgrind issue free. Added mumps_solver to ex25p 2020-10-01 18:18:58 -07:00
Veselin Dobrev 4fbde641db In ex19p, MPI_Finalize() needs to be called after the destructor of
RubberOperator; this is now achieved using the MPI_Session class.
2020-10-01 17:12:55 -07:00
Jason Hicken ae547f984d fixed minor typo in call to Hypre SetPrecond for FGMRES 2020-10-01 15:11:49 -04:00
Julian Andrej 7a167341ba GMRES -> GMRESFlex 2020-10-01 11:00:50 -07:00
Julian Andrej 9a2904ba55 hypre version guard in test 2020-10-01 10:59:53 -07:00
Julian Andrej 04365ce503 correct typo in test labels 2020-10-01 10:57:36 -07:00
Julian Andrej db1e290721 test target typo 2020-10-01 10:36:19 -07:00
Julian Andrej 4e2383278f newlines 2020-10-01 10:36:03 -07:00
Jakub Červený ac94a3a64e Merge branch 'master' into nc-point-mat-index-dev 2020-10-01 11:09:55 +02:00
Jakub Červený dbad596d65 Documentation: added link to OrientedPointMatrix where edge_flags are commented. 2020-10-01 11:08:07 +02:00
psocratis 50b525907f minor 2020-09-30 19:11:28 -07:00
Veselin Dobrev 70f4fcdf23 Due to failures in some cases, increase by a factor of 2 the
tolerance in the "ParallelFormLinearSystem" unit test.
2020-09-30 18:18:24 -07:00
Balos, Cody Joe f95a148f69 fix sundials find_package logic 2020-09-30 09:26:44 -07:00
jeremylt 43b9e2c66e libceed - update to v0.7 2020-09-30 07:52:04 -06:00
psocratis 5137ef5604 clean up 2020-09-29 19:42:44 -07:00
psocratis 8f1d08dc93 Adding symmetric and SPD matrix case 2020-09-29 19:04:17 -07:00
Jason Hicken c32232802c added unit test for HypreILU and HypreFGMRES 2020-09-29 21:53:21 -04:00
Balos, Cody Joe 31efd0d227 cmake fixes for SUNDIALS with CUDA 2020-09-29 17:50:36 -07:00
Julian Andrej e63f9887f4 add MUMPS version check to makefile build system 2020-09-29 14:13:14 -07:00
Jason Hicken 94fecaf5ad fixed accidental overwrite of ex7.cpp 2020-09-29 17:01:56 -04:00
psocratis 2819c0e361 more cleaning up 2020-09-29 13:23:43 -07:00
Jason Hicken d1d30209f8 fixed the define guard statement, and removed some HypreILU default options 2020-09-29 16:13:10 -04:00
Jason Hicken f173273523 addressing PR issues 2020-09-29 14:46:37 -04:00
Tzanio Kolev bf3f1f1327 Merge pull request #1754 from mfem/mixed-curl-pa-fix
Bug fix for MixedVectorCurlIntegrator PA
2020-09-29 08:05:11 -07:00
Jason Hicken e1539e50d0 Merge branch 'master' into hypre-ilu-dev 2020-09-29 08:55:17 -04:00
Arturo Vargas efd9eafa12 PR comments 2020-09-28 21:29:36 -07:00
psocratis 30b0ae9581 cleanup 2020-09-28 17:47:08 -07:00
Arturo Vargas 700a2b1da8 remove amgx_ex4p 2020-09-28 15:08:54 -07:00
psocratis 59a32942f2 make style 2020-09-28 15:06:23 -07:00
psocratis 90af7527d0 mumps interface works with any combination of distributed RHS and Solution or not... still needs some cleanup and a valgrind run 2020-09-28 15:05:18 -07:00
Andrew T. Barker aea150bee2 hypre.hpp: transition to a correct spelling for SetInitialIterate() 2020-09-28 08:04:49 -07:00
William Dawn eee6a45458 fixing spacing 2020-09-28 09:41:48 -04:00
William Dawn 4a155f28dd do not double-delete fec 2020-09-28 09:38:51 -04:00
Arturo Vargas e388516e6e add sample output 2020-09-27 19:54:34 -07:00
Arturo Vargas d94ce0de35 add amgx folder to makestyle 2020-09-27 19:27:47 -07:00
Arturo Vargas c6bd0f93a8 add examples 2020-09-27 19:24:36 -07:00
Arturo Vargas 4fc956c146 clean up pass 2020-09-27 19:23:44 -07:00
Arturo Vargas e2b4f2587e clean up example 1 2020-09-27 18:51:32 -07:00
psocratis ac6ff275ba Adding MUMPSSolver interface. Finished the case where RHS and Solution are gathered on host 2020-09-27 18:09:25 -07:00
Arturo Vargas 1e6972fa48 clean up internals a bit 2020-09-27 17:30:59 -07:00
Arturo Vargas 881e2d32bc add option to update operator 2020-09-27 17:15:37 -07:00
Arturo Vargas 7dc13efd8e always use double precision, test amgx_ex with device = cuda 2020-09-27 15:08:22 -07:00
Arturo Vargas 4030ee4f3c Merge branch 'master' into feature/artv3/amgx 2020-09-27 14:10:56 -07:00
Tzanio Kolev 32bcf9c1c1 Merge pull request #1647 from mfem/mem_leak_fix
Fix mem leak in BlockNonlinearForm
2020-09-27 12:01:56 -07:00
Tzanio Kolev 5aa238633d Merge pull request #1753 from smsolivier/patch-1
Small bug in fe.cpp prevents building in thread safe mode
2020-09-27 11:58:13 -07:00
Tzanio Kolev 50e0c25e00 Merge pull request #1745 from mfem/dg-advection-pa-gf-coeff
Improve PA advection coefficient handling
2020-09-27 11:55:58 -07:00
Tzanio ca6f032b46 minor 2020-09-27 11:55:35 -07:00
Tzanio Kolev e71a622375 Merge pull request #1751 from mfem/superlu-negative-returncode-dev
Add better error messages from SuperLU for invalid parameters [superlu-negative-returncode-dev]
2020-09-27 11:52:30 -07:00
Julian Andrej b78402803f bugs everywhere 2020-09-26 18:21:36 -07:00
Julian Andrej 6e5bb7e5e1 more distributed solution vector fiddling 2020-09-26 16:25:48 -07:00
Julian Andrej 99a3803b4f distributed rhs and solution 2020-09-26 15:48:07 -07:00
Julian Andrej c0495229fc add MUMPS to the makefile buildsystem 2020-09-26 14:08:56 -07:00
psocratis adce9a5755 Adding interface for distributed MUMPS still needs implementation for distributed RHS 2020-09-25 20:22:36 -07:00
Julian Andrej ffc65ee2f0 move config header out of guarding 2020-09-25 18:56:04 -07:00
Julian Andrej 197854c4c0 guard source and header 2020-09-25 18:50:51 -07:00
Julian Andrej baeed18fc6 remove user.mk 2020-09-25 18:44:40 -07:00
Julian Andrej c18b00f9a3 add to makefile build system 2020-09-25 18:38:20 -07:00
Julian Andrej 765918926f spellcheck 2020-09-25 15:24:52 -07:00
Julian Andrej 0829c40ef1 simplify JFNK codepath 2020-09-25 14:29:12 -07:00
Julian Andrej 78d01a2753 correct comment 2020-09-25 14:28:53 -07:00
Julian Andrej 1fcf44617b typo 2020-09-25 14:27:39 -07:00
Julian Andrej ccdd4151f5 adjust cmake build system to new naming and test output 2020-09-25 14:00:48 -07:00
Julian Andrej 5e2cc2d63b readability and refactoring 2020-09-25 13:57:11 -07:00
Julian Andrej 5aec9ffe25 change matrix data ownership 2020-09-25 13:32:50 -07:00
nbeams b267750431 consolidate CEED_HIP and CEED_CUDA checks 2020-09-25 15:55:29 -04:00
Arturo Vargas bd8feac2f8 reduce number of white lines 2020-09-25 11:44:37 -07:00
Arturo Vargas 99dc5fc36d PR comments 2020-09-25 11:36:33 -07:00
Julian Andrej 145877e2e3 correct interface comment 2020-09-25 11:03:28 -07:00
Julian Andrej cf336ec28f correct delete calls 2020-09-25 11:03:15 -07:00
Arturo Vargas 425a951550 Merge branch 'master' into feature/artv3/amgx 2020-09-25 10:45:06 -07:00
Julian Andrej 14771eeb79 cmake build system tweak for LC 2020-09-25 10:31:43 -07:00
Julian Andrej 32d0df49d6 added changelog entry 2020-09-25 09:11:58 -07:00
Julian Andrej e5c5d1e419 make style 2020-09-25 08:56:53 -07:00
Julian Andrej 18dc8f7a56 documentation and refactor on teh pardiso interface 2020-09-25 08:07:29 -07:00
Julian Andrej 5720512ef2 add pardiso option to ex11p 2020-09-25 08:07:12 -07:00
bslazarov 08516cfa01 clean unused variables 2020-09-24 19:32:21 -07:00
bslazarov 022e96da56 clean up 2020-09-24 19:10:27 -07:00
Julian Andrej 8f602ab9d3 add support for MKL Cluster Pardiso 2020-09-24 15:15:13 -07:00
bslazarov a673e7e754 more cosmetics 2020-09-24 14:29:46 -07:00
Julian Andrej ce0b3e3b20 add support for KINSOL JFNK 2020-09-24 12:48:42 -07:00
bslazarov d1c9023a3a Merge branch 'master' into bug_parblocknlform 2020-09-24 11:25:22 -07:00
bslazarov 7b297e6661 cosmetics 2020-09-24 10:47:55 -07:00
bslazarov 7eaf68f030 style 2020-09-24 10:40:56 -07:00
bslazarov 0f2676f229 New 3D test for BlockNonlinearForm::GetEnergy() 2020-09-23 20:41:08 -07:00
Yohann Dudouit 11a025b26a Update makefile with new device option. 2020-09-23 12:20:53 -07:00
YohannandWill Pazner 41d0aeeea7 Update tests/unit/ceed/test_ceed.cpp
Handle more cleanly command line option for test_ceed.

Co-authored-by: Will Pazner <11493037+pazner@users.noreply.github.com>
2020-09-23 12:13:16 -07:00
Yohann Dudouit 56a985b586 Fix ceed_tests. 2020-09-23 12:03:03 -07:00
Yohann Dudouit 395ce0f1f6 Readd inadvertently deleted ceed_tests makefile target. 2020-09-23 11:42:07 -07:00
Dylan Copeland 0368022256 Merge fix 2020-09-23 09:39:01 -07:00
Dylan Copeland bd99e05631 Merge branch 'master' of github.com:mfem/mfem into mixed-curl-pa-fix 2020-09-23 09:27:24 -07:00
Balos, Cody Joe bf6012b2db Merge branch 'sundials-gpu-dev' of github.com:balos1/mfem into sundials-gpu-dev 2020-09-22 17:04:22 -07:00
Balos, Cody Joe 027d27fdf9 various minor fixes to address reviewer comments:
- use wildcard to detect sundials library directory
- add some error strings
- remove dead code
2020-09-22 17:04:10 -07:00
Balos, Cody Joe c879180508 call HostRead after ::Step to ensure data is up to date on host 2020-09-22 17:01:11 -07:00
camierjs 8d5aa9ffd9 Add using for nvcc warnings 2020-09-22 16:35:37 -07:00
Tucker Babcock 29294b603d setting size of elvect 2020-09-22 16:55:27 -04:00
Tzanio Kolev 6f2a59f823 Update fem/nonlinearform.cpp 2020-09-22 11:09:23 -07:00
Dylan Copeland 5bb18f7fae Removing the verification in Eval that the coefficient is not symmetric. 2020-09-21 17:42:43 -07:00
Yohann b71345dab6 Merge branch 'master' into yohann/test-ceed 2020-09-21 10:04:08 -07:00
Balos, Cody Joe c36d6ca2b1 sundials-gpu-dev: a couple minor fixes 2020-09-21 08:57:45 -07:00
Tzanio Kolev 27acd4f56d Merge pull request #1764 from mfem/mesh-boundary-fix
Mesh bug fix and unit test
2020-09-20 10:32:37 -07:00
Dylan Copeland 72e8c7771a Merge branch 'master' of github.com:mfem/mfem into matdiffpa 2020-09-18 10:17:08 -07:00
Tzanio Kolev 1cd7ef1599 Merge pull request #1584 from mfem/pacurlsmem
Shared memory for H(curl) PA
2020-09-17 17:41:31 -07:00
Tzanio Kolev 7087ae37a7 Merge pull request #1704 from mfem/adios2-element-attribute
Add element attribute to adios2 bp dataset
2020-09-17 17:40:22 -07:00
Arturo Vargas 18f35703dc set X - 0 in mpi-teams mode 2020-09-17 13:41:53 -07:00
Arturo Vargas 15a2135052 set X to zero when using as pre-con 2020-09-17 13:25:28 -07:00
Tucker Babcock 58275bca9a make style 2020-09-17 15:01:14 -04:00
Tucker Babcock e8d1890399 Adding default implementation of AssembleElementVector and AssembleFaceVector for BilinearFormIntegrators that just multiply the state vector by the element stiffness matrix 2020-09-17 14:11:53 -04:00
Jakub Červený efebb2ceb3 The CheckEnlarge line needs to stay, this is the new behavior from nc-init-dev. 2020-09-17 11:05:15 +02:00
Jakub Cerveny 2b9505aa0b Added more documentation for PointMatrixHash. 2020-09-17 10:25:44 +02:00
Yohann Dudouit b7584314d1 make style. 2020-09-16 18:30:55 -07:00
Yohann Dudouit 2a3858071a Fix typos. 2020-09-16 18:14:33 -07:00
Yohann Dudouit d62441a60f Rewrite RemoveCeedBasisAndRestriction to fix a bug on Linux. 2020-09-16 18:12:36 -07:00
Yohann Dudouit 846d019ece Erase entries when destroying the CeedBasis and CeedRestr. 2020-09-16 17:16:29 -07:00
Dylan Copeland dac6f6afe7 Fixing a bug and adding a small unit test that catches it. 2020-09-16 14:55:12 -07:00
Jakub Cerveny 0ad7d157c0 Added documentation for MatrixMap. 2020-09-16 10:35:51 +02:00
Yohann Dudouit 7fd34fa3c3 Merge branch 'yohann/vec-mass-diff' into yohann/test-ceed 2020-09-15 10:54:21 -07:00
Yohann Dudouit 530cd42e58 Use reference instead of value inside RemoveCeedBasisAndRestriction. 2020-09-15 10:31:12 -07:00
nbeams f2d5e1a1d3 update abort kernel functions for HIP 2020-09-14 19:45:51 -04:00
nbeams 28d366b77c allow use of short name for HIP backends in libCEED 2020-09-14 19:45:21 -04:00
nbeams 184fc62fc1 Merge branch 'master' into libceed-hip 2020-09-14 18:24:19 -04:00
Dylan Copeland 8592379542 Allowing symmetric matrix function coefficients to call Eval with copying of values to the full dense matrix. 2020-09-14 12:31:58 -07:00
Yohann Dudouit 42e2120d34 Merge branch 'yohann/vec-mass-diff' into yohann/test-ceed 2020-09-14 10:41:14 -07:00
William Dawn 281bc5a94c fixing leaks in ex11p 2020-09-14 10:27:12 -04:00
William Dawn 1903cabffd no need to set pointer to null in destructor 2020-09-14 09:52:36 -04:00
Veselin Dobrev 0f45ec77b6 Add some ches for assumptions in ceed q-functions. 2020-09-11 19:33:46 -07:00
Yohann Dudouit 8adbd3235c Factorize code into a InitCeedVector function. 2020-09-11 19:13:27 -07:00
Yohann Dudouit e3e9f961a9 Update CMakeLists. 2020-09-11 17:56:19 -07:00
Yohann Dudouit 97bdaeedcd Update CMakeLists. 2020-09-11 17:54:55 -07:00
Yohann Dudouit 2a65380426 include ceed.hpp 2020-09-11 17:09:47 -07:00
Yohann Dudouit c3802dff13 include ceed.hpp 2020-09-11 17:09:15 -07:00
Yohann Dudouit a05113cf08 Add a RemoveCeedBasisAndRestriction function. 2020-09-11 15:44:22 -07:00
Yohann Dudouit da1c9d8077 Add a RemoveCeedBasisAndRestriction function. 2020-09-11 15:43:55 -07:00
Yohann Dudouit 1cd5c44365 make style 2020-09-11 15:13:41 -07:00
Yohann Dudouit fdb3151fe4 make style 2020-09-11 15:13:12 -07:00
Yohann Dudouit d2843d8270 Remove basis and restr when destructing a FiniteElementSpace. 2020-09-11 15:03:08 -07:00
Yohann Dudouit dc6c10d5fb Remove basis and restr when destructing a FiniteElementSpace. 2020-09-11 15:02:07 -07:00
Yohann Dudouit 3f6912f9b0 Move things around. 2020-09-11 14:35:06 -07:00
Yohann Dudouit 99912229dc Let MFEM handle memory for nodes in CeedMFAssemble. 2020-09-11 14:29:30 -07:00
Tzanio 2b2410e0bd minor 2020-09-11 12:25:12 -07:00
Yohann dd05e8b5d5 Merge branch 'master' into yohann/test-ceed 2020-09-11 11:10:46 -07:00
Yohann Dudouit 7d24b35af1 update CHANGELOG. 2020-09-11 10:59:11 -07:00
Yohann Dudouit f471b8e528 Use DiffusionIntegrator's IntegrationRule in VectorDiffusionIntegrator::AssembleElementVector. 2020-09-11 10:59:03 -07:00
Yohann Dudouit 4799747f2b Merge branch 'yohann/vec-mass-diff' into yohann/test-ceed 2020-09-11 10:24:59 -07:00
Yohann Dudouit 5d73899d88 move things around 2020-09-11 10:24:39 -07:00
Yohann Dudouit fb5ad410c6 Merge branch 'yohann/vec-mass-diff' into yohann/test-ceed 2020-09-11 10:23:25 -07:00
Yohann Dudouit a49325731e Let MFEM handle the memory for the mesh nodes. 2020-09-11 10:20:39 -07:00
Yohann Dudouit e73611a403 Use DEVICE_MASK instead of CUDA 2020-09-11 10:05:57 -07:00
Robert Carson efd71f438f changelog wording 2020-09-11 10:00:07 -07:00
Balos, Cody Joe a5bb313e52 Update to SUNDIALS 5.4.0 RC
This has no changes to the CPU only code (all changes were in
MFEM_USE_CUDA ifdef). The primary change is that mfem controls the
lifetime of the SUNMemoryHelper, thus the SundialsMemHelper class and
mfem::sunmemHelper were added.
2020-09-11 01:09:55 -07:00
Veselin Dobrev b9cd30304a Some formatting edits. 2020-09-11 00:20:08 -07:00
Aaron Fisher 89610836d3 Added the cmake system for the new example and updated the version numbers for SuperLU 2020-09-10 16:10:54 -07:00
Aaron Fisher b0f2390fa7 Minor changes to set us up to use SuperLU 6.3.1, and added a simple SuperLU Example. 2020-09-10 15:51:34 -07:00
Balos, Cody Joe d9e87e1e13 gnu make: look for sundials libraries in lib instead of lib64 2020-09-10 12:06:28 -07:00
Balos, Cody Joe 94e07ba735 remove unused function from FE_Evolution class in ex9 2020-09-10 12:03:50 -07:00
Dylan Copeland 22fba7ab27 Fix compiler warnings. 2020-09-10 11:46:23 -07:00
Dylan Copeland 63a45967c1 Fixed a bug in the setup for MixedVectorCurlIntegrator, and added a unit test for it with H(curl)-H(div) spaces. 2020-09-10 11:12:41 -07:00
Sam Olivier 3a012e0e9a Update fe.cpp
"d2shape_z" is misspelled on line 8034. Causes compile issues for thread safe mode only.
2020-09-09 16:08:14 -07:00
Yohann Dudouit 347e6f2447 Add the missing files..... 2020-09-09 15:40:13 -07:00
Yohann Dudouit 604dab7693 Update test_ceed.cpp to run the tests with AssemblyLevel::NONE. 2020-09-09 15:00:38 -07:00
Yohann Dudouit d2f3e33e72 Add fully matrix-free (MF) VectorMass and VectorDiffusion using libCEED. 2020-09-09 15:00:09 -07:00
Yohann Dudouit f01e45dfde Merge branch 'yohann/ceed-mf' into yohann/test-ceed 2020-09-09 14:39:31 -07:00
William Dawn 73a87ed46a simplify deleting vectors in destructor 2020-09-09 10:17:37 -04:00
Jakub Červený f31c63dad6 Checked hashing function and bucket size distribution. 2020-09-09 10:54:22 +02:00
Jakub Červený 1f8f0a010b make style 2020-09-09 10:34:32 +02:00
Dylan Copeland 2a5fcacbb1 Merge branch 'master' of github.com:mfem/mfem into pacurlsmem 2020-09-08 18:28:53 -07:00
Julian Andrej d211b3c305 Simplify Array2D assignment operator 2020-09-08 16:33:59 -07:00
Josh Essman 3842442768 style: remove trailing space 2020-09-08 17:03:04 -05:00
Josh Essman 1675ba62db better error messages from SuperLU for invalid parameters
format: add space
2020-09-08 16:46:32 -05:00
Tzanio Kolev a40523a7cf Merge pull request #1655 from mfem/curl-curl-coef
Support additional coefficient options in CurlCurlIntegrator
2020-09-08 12:52:55 -07:00
Tzanio Kolev 44696d423d Merge pull request #1688 from mfem/feature/lassen_ci_dev
Add tests on Lassen in Gitlab CI
2020-09-08 12:46:54 -07:00
Jakub Červený a7f6573ebd Minor improvements. 2020-09-08 20:34:48 +02:00
Julian Andrej a5a6748731 Set sizes new on Array2D assignment operator 2020-09-08 11:22:38 -07:00
Tucker Babcock a789c63098 updating doc 2020-09-08 13:54:04 -04:00
Tucker Babcock 14c93a200c make style 2020-09-08 13:51:56 -04:00
Tucker Babcock 4145343273 merging master 2020-09-08 13:48:38 -04:00
Tucker Babcock 0eedb90c75 updated function coefficient implementation to use cleaner style suggested by @v-dobrev 2020-09-08 13:30:09 -04:00
Jakub Červený 41babcea77 Switchted to Array instead of std::vector in NCMesh::NCList. 2020-09-08 13:25:13 +02:00
Jakub Červený dbfd3747e4 ParNCMesh works with NCList::point_matrices (still uses aux_pm_store though) 2020-09-08 13:05:33 +02:00
Arturo Vargas db4dfaea35 clean up examples 2020-09-07 23:09:05 -07:00
Arturo Vargas 9da9cdf7a8 remove old examples 2020-09-07 22:37:21 -07:00
Arturo Vargas fac09884bb organize MPI ifdefs 2020-09-07 22:25:34 -07:00
Arturo Vargas 4379b14531 fixes for serial version + support for NO MPI 2020-09-07 20:51:06 -07:00
Arturo Vargas 65f9ee3d91 clean up pass 2020-09-07 18:11:13 -07:00
Arturo Vargas ca996615ad consolidate solve->mult 2020-09-07 17:50:39 -07:00
Julian Andrej 109e68d7bb Guard parallel calls in serial build 2020-09-07 11:56:48 -07:00
Tzanio Kolev 1cf578ea0b Merge pull request #1649 from mfem/nc-init-dev
On the fly NC mesh initialization [nc-init-dev]
2020-09-06 18:55:35 -07:00
Jakub Červený 5a06fa5798 New NCList point matrices work in serial. 2020-09-06 20:54:46 +02:00
Arturo Vargas e4b57b57ca Merge branch 'master' into feature/artv3/amgx 2020-09-04 17:01:31 -07:00
Arturo Vargas bef0f4e145 reorg setA for hypre matrices 2020-09-04 17:00:36 -07:00
Will Pazner f05de3f1c0 Handle discontinuous density and add test cases 2020-09-04 13:20:10 -07:00
Will Pazner a555edbd76 Improve PA DG coefficient handling
Batch evaluate the velocity field on each element (which speeds up
evaluation of VectorGridFunctionCoefficient) and change the evaluation
of the velocity field on faces to match that of the legacy integrator.
2020-09-04 12:35:19 -07:00
Jakub Červený a087f7f4f1 Exporting point matrices works. 2020-09-04 17:08:22 +02:00
Julian Andrej 7933fd9b88 Make blocknonlinearform and parblocknonlinearform work with non conforming meshes 2020-09-04 08:05:11 -07:00
Julian Andrej 9a4f7ed262 Modify ex19/ex19p to support non conforming meshes 2020-09-04 07:59:38 -07:00
Jakub Červený 618a8fb85f Creating slave matrix indices with MatrixMap, changed everywhere. 2020-09-04 16:11:02 +02:00
Jakub Červený 07962a73cd WIP hashing point matrices into indices for NCMesh::Slave. 2020-09-04 13:56:09 +02:00
Yohann Dudouit 254724d96f Update incorrect documentation. 2020-09-03 11:56:36 -07:00
Balos, Cody Joe a35d0c984d revert accidental change 2020-09-03 11:55:35 -07:00
Balos, Cody Joe b3659147a5 remove unused code 2020-09-03 11:50:37 -07:00
Balos, Cody Joe 3a1829ba3e update comments for functions marked as deprecated 2020-09-03 11:50:22 -07:00
Balos, Cody Joe 4b292c09a9 fix alignment 2020-09-03 11:45:11 -07:00
Balos, Cody Joe 311eb40ac3 remove TODO comments about ToNVector function 2020-09-03 11:43:01 -07:00
Julian Andrej f7f5b9a82b Moved ess dof elimination from vdofs to tdofs in parallel 2020-09-02 16:13:16 -07:00
Yohann Dudouit fd396ac682 Move code in CEED guard to avoid dead code. 2020-09-02 15:29:28 -07:00
Yohann Dudouit 90e02bbd2d Improve doc. 2020-09-02 14:35:44 -07:00
Dylan Copeland e75f242ff6 Removing unnecessary ifdef. 2020-09-02 12:06:32 -07:00
Tzanio Kolev 065f5692b0 Merge pull request #1561 from mfem/convergence-dev
Convergence rate tests [convergence-dev]
2020-09-02 08:26:13 -07:00
Yohann Dudouit dc6517f77e move #endif. 2020-09-01 22:07:13 -07:00
Yohann Dudouit 67b317f3df Remove dead code. 2020-09-01 22:02:02 -07:00
Yohann Dudouit 33e29a4bd1 Change IntegrationRule in VectorDiffusion. 2020-09-01 21:11:48 -07:00
Yohann Dudouit d96f7c2c71 Fix a bug. 2020-09-01 21:11:05 -07:00
Yohann Dudouit bc4199f4a5 Replace star and fichera by their q3 versions. 2020-09-01 20:57:56 -07:00
Yohann Dudouit 4cbdfd34ea Change IntegrationRule in VectorDiffusion. 2020-09-01 20:57:10 -07:00
Yohann Dudouit efb937ed06 Fix a bug. 2020-09-01 20:56:40 -07:00
Yohann Dudouit cb8c9e543a Modiify test_ceed for Vector Mass and Diffusion. 2020-09-01 19:45:53 -07:00
Tzanio Kolev 00a54534d7 Update .gitignore 2020-09-01 17:14:28 -07:00
Yohann Dudouit deaaea5f12 Add VectorMass and VectorDiffusion to libCEED tests. 2020-09-01 17:13:37 -07:00
Yohann Dudouit 8433c504f5 typo. 2020-09-01 17:12:56 -07:00
Yohann Dudouit 9a52687795 Rename grid to quad. 2020-09-01 17:12:20 -07:00
Tzanio 73433a7515 Final changes 2020-09-01 17:12:15 -07:00
Tzanio aa3b111af1 Styling 2020-09-01 16:25:25 -07:00
Tzanio e02ee0ed95 Updated CHANGELOG 2020-09-01 16:25:14 -07:00
Yohann Dudouit 2ece2a07f7 Merge branch 'yohann/vec-mass-diff' into yohann/test-ceed 2020-09-01 16:21:53 -07:00
Yohann Dudouit 18c0f1b8ba Reorder initialization in constructor. 2020-09-01 16:19:19 -07:00
Yohann Dudouit 9cd90ff055 Merge branch 'yohann/vec-mass-diff' into yohann/test-ceed 2020-09-01 16:16:41 -07:00
Yohann Dudouit 5e2f4816fd Merge branch 'yohann/ceed-coeff' into yohann/test-ceed 2020-09-01 15:56:19 -07:00
Yohann Dudouit d3b7601f88 Destroy CeedQFunctionContext. 2020-09-01 15:48:22 -07:00
psocratis 271aab3537 modified CHANGELOG 2020-09-01 15:28:14 -07:00
Yohann Dudouit 00444a21db Add a constructor that initializes fields to NULL. 2020-09-01 15:14:56 -07:00
Yohann Dudouit 6823ecee8a Merge branch 'master' into yohann/ceed-coeff 2020-09-01 15:07:34 -07:00
Yohann Dudouit 131e8ba848 Remove useless default case 2020-09-01 15:03:20 -07:00
Yohann Dudouit af51fabcc8 Fix a potential bug. 2020-09-01 14:54:51 -07:00
Yohann Dudouit 401c13fef7 Improve error messages when using MF without libCEED. 2020-09-01 14:51:50 -07:00
Tzanio 2d2151e4e5 minor 2020-09-01 14:51:22 -07:00
Tzanio 6f1a090c06 Merge branch 'master' into convergence-dev 2020-09-01 14:50:43 -07:00
Tzanio Kolev e8a8691680 Merge pull request #1632 from mfem/ex6-pa-preconditioner
Ex6[p] diagonal preconditioner for PA
2020-09-01 14:49:31 -07:00
Tzanio a7de792214 Fix copyright header 2020-09-01 14:46:14 -07:00
Tzanio b91aebd35a Merge branch 'master' into ex6-pa-preconditioner
Conflicts:
	CHANGELOG
2020-09-01 14:41:57 -07:00
Tzanio 7e283304a3 Merge branch 'master' into convergence-dev 2020-09-01 14:38:56 -07:00
Yohann Dudouit 9a141f8629 make style. 2020-09-01 14:37:05 -07:00
Tzanio 72cf086b27 edits 2020-09-01 14:21:03 -07:00
Yohann Dudouit dc5a600503 Rewrite constructors. 2020-09-01 11:31:32 -07:00
Yohann Dudouit 1fd8fff49f Move the #ifdef MFEM_USE_CEED logic inside ceed files. 2020-09-01 11:16:51 -07:00
Tzanio Kolev a194e35053 Merge pull request #1560 from mfem/findpts-crystalrouter
FindPointsGSLIB support for non-H1 gridfunctions
2020-09-01 10:20:19 -07:00
Tzanio c218bba6d4 Final changes 2020-09-01 10:18:31 -07:00
Balos, Cody Joe 3f62a99c64 update N_NewCustom name 2020-08-31 15:54:44 -07:00
Yohann Dudouit f89f626c43 Fix inaccurate comments. 2020-08-31 15:10:18 -07:00
Yohann Dudouit 3eec9ace81 Simplify AssembleMF 2020-08-31 15:06:48 -07:00
Yohann Dudouit a4c3a02c70 Use new context interface for libCEED. 2020-08-31 15:06:26 -07:00
Yohann Dudouit 65e9fcbc2d Merge remote-tracking branch 'origin/master' into yohann/ceed-mf 2020-08-31 15:00:38 -07:00
Jakub Červený 8c1e9337c0 Moved finalization after setting curvature in 2D. Added more validations. 2020-08-31 19:26:45 +02:00
Yohann Dudouit 2c4cc326de Merge remote-tracking branch 'origin/master' into yohann/vec-mass-diff 2020-08-31 09:57:10 -07:00
Yohann Dudouit 7b5f176765 Refactor Ceed Setup in mass_pa and diffusion_pa 2020-08-31 09:51:44 -07:00
YohannandWill Pazner c5e505b000 Update fem/bilininteg_vecmass.cpp
Co-authored-by: Will Pazner <11493037+pazner@users.noreply.github.com>
2020-08-31 09:45:17 -07:00
YohannandWill Pazner 033592a234 Update fem/bilininteg_vecdiffusion.cpp
Co-authored-by: Will Pazner <11493037+pazner@users.noreply.github.com>
2020-08-31 09:44:51 -07:00
Arturo Vargas 1040a45df5 organize gather/scatter arrays 2020-08-30 20:02:26 -07:00
Tzanio Kolev b2983cb965 Merge pull request #1705 from mfem/jeremy/libceed-refactor-dev
libCEED - prevent duplicate Ceed objects from MFEM FES
2020-08-30 17:42:12 -07:00
Tzanio Kolev 65c3984b54 Merge pull request #1697 from mfem/nc-face-neighbors-fix
Fix crash in ParNCMesh::GetFaceNeighbors [nc-face-neighbors-fix]
2020-08-30 17:39:58 -07:00
Tzanio Kolev 2b7ac1d5c1 Merge pull request #1685 from benzwick/error-messages
Improve DenseMatrix error messages
2020-08-30 17:39:12 -07:00
Arturo Vargas 849c508686 Merge branch 'master' into feature/artv3/amgx 2020-08-28 16:18:10 -07:00
William F Godoy 18ddb79f10 Updated Changelog 2020-08-28 15:58:58 -04:00
Ketan Mittal 6f36aad054 removing hdiv file and minor changes 2020-08-26 15:41:15 -07:00
Balos, Cody Joe a5a7608de0 update INSTALL 2020-08-26 13:49:06 -07:00
Balos, Cody Joe 8b02cfc752 fix comment 2020-08-26 13:45:36 -07:00
Balos, Cody Joe 06e4c5039e update CHANGELOG 2020-08-26 13:40:12 -07:00
Balos, Cody Joe 206df44ad2 Always do base.Read() before making an alias in MakeRef.
See https://github.com/mfem/mfem/issues/1578#issuecomment-649962962 for an explanation of why this is necessary.
2020-08-26 13:20:36 -07:00
Balos, Cody Joe c5e75c6472 cleanup 2020-08-26 13:20:36 -07:00
Balos, Cody Joe 8551ca83e9 revert mem_manager.hpp whitespace changes 2020-08-26 13:20:36 -07:00
Balos, Cody Joe c7ead47f1d remove unused includes 2020-08-26 13:20:36 -07:00
Balos, Cody Joe 72e9164c66 revert sample runs section of comment in sundials modification of ex9 2020-08-26 13:20:36 -07:00
Balos, Cody Joe 6f78235cfe keep sundials backwards compatibility when not using cuda 2020-08-26 13:20:36 -07:00
Balos, Cody Joe 937db1a293 Add support for SUNDIALS GPU features
Add support for SUNDIALS CUDA features. These changes will be easily
extendable to support future GPU features in SUNDIALS, e.g. HIP
features. To keep things clean, this creates a SundialsNVector
class to interface with the SUNDIALS N_Vector. This class inherits
from the mfem::Vector class, and follows the pattern used in MFEM
interfaces to other libraries such as PETSc and hypre.
2020-08-26 13:20:36 -07:00
Yohann Dudouit ae549f035a Update comments. 2020-08-26 12:20:16 -07:00
Dylan Copeland b708606309 Adding support for general coefficients in curl-curl diagonal assembly, with unit testing. 2020-08-25 20:27:16 -07:00
Yohann Dudouit e23c886030 Add destructor to VectorMass and VectorDiffusion. 2020-08-25 15:28:22 -07:00
Dylan Copeland ffeadb4f8c Merge branch 'master' of github.com:mfem/mfem into curl-curl-coef 2020-08-25 15:12:01 -07:00
Tzanio Kolev 4f521a1be6 Merge pull request #1718 from mfem/debug_device
Backend::DEBUG to Backend::DEBUG_DEVICE [debug_device]
2020-08-25 14:20:25 -07:00
Tzanio Kolev ca15d29cf4 Merge pull request #1691 from mfem/yohann/EA-add-set
Add an option to set or add when using AssembleEA.
2020-08-25 14:19:23 -07:00
Tzanio Kolev 829c2e3a6c Merge pull request #1575 from mfem/complex-operator-gpu
GPU support for complex operators
2020-08-25 14:13:39 -07:00
Tzanio cf953c2275 Minor styling 2020-08-25 14:10:49 -07:00
Dylan Copeland cf0222e0ce Removing height<4 condition. 2020-08-25 14:08:08 -07:00
Yohann Dudouit 7e490f5f05 Merge branch 'yohann/ceed-coeff' into yohann/test-ceed 2020-08-25 13:40:38 -07:00
Yohann Dudouit d41c880974 Update destructor. 2020-08-25 13:39:12 -07:00
Yohann Dudouit 530c37ad8e Merge remote-tracking branch 'origin/jeremy/libceed-refactor-dev' into yohann/test-ceed 2020-08-25 13:18:20 -07:00
jeremylt 841d6e7bee Drop extra destroys for basis/restr 2020-08-25 14:14:52 -06:00
Yohann Dudouit 5dbeef3916 Merge branch 'jeremy/libceed-refactor-dev' into yohann/test-ceed 2020-08-25 12:54:36 -07:00
Yohann Dudouit 5afe254020 Merge remote-tracking branch 'origin/jeremy/libceed-refactor-dev' into yohann/test-ceed 2020-08-25 12:54:05 -07:00
jeremylt 1527dcbf44 Expand keys to include ncomp 2020-08-25 13:53:07 -06:00
jeremylt 956a37a2d9 Drop unused variables 2020-08-25 13:44:30 -06:00
Veselin Dobrev d02aa95619 Merge pull request #1645 from mfem/bugfix/dof-marker-gpu
MarkerToList: delete and reset the underlying data object
2020-08-25 12:36:42 -07:00
Yohann Dudouit 1b34ddd6d2 Use INFO instead of SECTION. 2020-08-25 12:25:26 -07:00
Yohann Dudouit e155c66b4a Merge branch 'yohann/ceed-coeff' into yohann/test-ceed 2020-08-25 12:21:50 -07:00
Yohann Dudouit 8d17dbb03a Refactor test_ceed.cpp. 2020-08-25 12:00:45 -07:00
Yohann Dudouit 839cbc71ce Merge remote-tracking branch 'origin/jeremy/libceed-refactor-dev' into yohann/test-ceed 2020-08-25 10:52:43 -07:00
Pieter Ghysels ef0858c7a1 Fix for STRUMPACK with hypre >= 21600 2020-08-25 10:48:41 -07:00
Yohann Dudouit f6fe94e131 Merge remote-tracking branch 'origin/master' into yohann/test-ceed 2020-08-25 10:32:16 -07:00
camierjs fe425fafbf Merge master in debug_device 2020-08-25 10:17:20 -07:00
Tzanio Kolev 85749266f4 Merge pull request #1682 from mfem/catch2
Upgrade unit tests to Catch v2.13.0 from v1.6.1
2020-08-25 08:14:51 -07:00
Yohann Dudouit f757b76f92 Use device pointer for GridFunctionCoefficient. 2020-08-24 21:22:33 -07:00
Yohann Dudouit 6e6eddd169 Test only order 3 to fasten tests. 2020-08-24 21:21:19 -07:00
Arturo Vargas 49944af711 do not use std::cout 2020-08-24 21:17:14 -07:00
Arturo Vargas 9d5402a1e1 clean up pass, need to clean up SetA next 2020-08-24 21:07:33 -07:00
Arturo Vargas 0ce8c2466f clean up pass 2020-08-24 20:27:03 -07:00
Arturo Vargas 806651102f add different configuration modes, serial, mpi-teams, mpi-exclusive 2020-08-24 20:10:11 -07:00
Yohann Dudouit 6a6460b809 Change orders in test_ceed. 2020-08-24 17:06:31 -07:00
Yohann Dudouit d216b13f96 Remove unused variable. 2020-08-24 15:45:38 -07:00
Yohann Dudouit 493460f941 Add GPU tests for libCEED. 2020-08-24 14:14:13 -07:00
Dylan Copeland 2b82976ba9 Merge branch 'master' of github.com:mfem/mfem into matdiffpa 2020-08-24 13:05:27 -07:00
camierjs fa7ea733ab Merge master in debug_device 2020-08-24 11:44:45 -07:00
Yohann Dudouit c51f2a407d Minor 2020-08-24 09:58:48 -07:00
camierjs 2678423e6e Add a line to clarify the 'debug' device exception. 2020-08-24 08:13:58 -07:00
Arturo Vargas f2af704dc9 import support for 1 mpi, per gpu with lrun 2020-08-23 19:07:40 -07:00
Arturo Vargas 788676a947 use hypre_MergeDiagAndOffd 2020-08-23 17:07:56 -07:00
Tzanio ca82238e40 Minor edits 2020-08-23 14:44:13 -07:00
Tzanio Kolev bb3c788a05 Merge pull request #1623 from mfem/barker29/reorder-boomeramg
HypreBoomerAMG: allow Ordering::byNODES in systems version
2020-08-23 14:03:32 -07:00
Tzanio Kolev b79d3de89a Merge pull request #1706 from mfem/okina-mmu-mflags
Okina mmu mflags [okina-mmu-flags]
2020-08-23 13:34:17 -07:00
Dylan CopelandandStefan Henneking 7d756f6016 Remove newline.
Co-authored-by: Stefan Henneking <stefan.henneking@gmail.com>
2020-08-23 13:15:44 -07:00
Arturo Vargas e7b8093d90 clean up pass for serial version 2020-08-22 18:34:09 -07:00
Arturo Vargas c4addea256 clean up + SetOperator now calls SetA 2020-08-22 17:29:55 -07:00
Yohann Dudouit a696640253 Regorganize test_ceed and add to makefile. 2020-08-21 17:08:35 -07:00
camierjs ea24d37651 Typo 2020-08-21 17:03:24 -07:00
Yohann Dudouit cb973e773d Move test_ceed in a ceed folder. 2020-08-21 15:32:15 -07:00
Yohann Dudouit 34231caee4 Add a skeleton to test the libCEED integration in MFEM. 2020-08-21 15:17:22 -07:00
Yohann Dudouit 2db9129cd7 Remove test_ceed 2020-08-21 15:15:41 -07:00
Yohann Dudouit 56228ded89 typos. 2020-08-21 15:14:24 -07:00
Yohann Dudouit def6aa3ae3 Move test_ceed in miniapps. 2020-08-21 14:49:47 -07:00
camierjs eaf2257263 Rename Backend::DEBUG to Backend::DEBUG_DEVICE 2020-08-21 14:34:15 -07:00
Arturo Vargas 9b2a01eeb6 Merge branch 'master' into feature/artv3/amgx 2020-08-21 14:31:55 -07:00
Yohann Dudouit 6ba206fcf2 Include ceed.hpp in the ceed test. 2020-08-21 14:17:08 -07:00
Yohann Dudouit 7555df1d11 Remove white space 2020-08-21 13:41:05 -07:00
Yohann Dudouit 9627d2b0ef make style 2020-08-21 13:30:49 -07:00
Yohann Dudouit b24169c858 make style 2020-08-21 13:19:15 -07:00
Yohann Dudouit a61dae6313 Add a test for the libCEED integration. 2020-08-21 13:17:45 -07:00
Yohann Dudouit 39bab7204b make style 2020-08-21 12:28:59 -07:00
Yohann Dudouit b7cabc6aa2 Remove some magic numbers. 2020-08-21 11:40:21 -07:00
Yohann Dudouit a176fb2d52 Add support for all scalar coefficient types. 2020-08-21 11:30:22 -07:00
Ketan Mittal c3eb129cc8 adding support for user-defined functions 2020-08-21 11:14:58 -07:00
lazarov ffcd252a06 clean-up 2020-08-20 19:18:33 -07:00
Yohann DudouitandJeremy L Thompson d28659a50c Fix a bug when vdim > 1.
Co-authored-by: Jeremy L Thompson <25011573+jeremylt@users.noreply.github.com>
2020-08-20 15:58:07 -07:00
nbeams b8992fa122 make style 2020-08-20 18:49:54 -04:00
Yohann Dudouit 485600bbd3 Add vdim to the BuildContext. 2020-08-20 15:35:17 -07:00
Yohann Dudouit 1aea0a752b Minor 2020-08-20 14:52:23 -07:00
Yohann Dudouit 512f3283e8 Modify Qfunctions for mass and diffusion to work in vector case. 2020-08-20 14:39:08 -07:00
nbeams deeef2572d TEMPORARY: hack to get around hipcc error 2020-08-20 17:23:22 -04:00
nbeams 0264406aa9 add XLINKER flag for HIP 2020-08-20 17:20:45 -04:00
nbeams 372dd6b3b2 enable HIP backend for libCEED 2020-08-20 17:20:10 -04:00
Yohann Dudouit 377de82d76 make style 2020-08-20 13:16:32 -07:00
nbeams 0246d693fb Merge branch 'jeremy/libceed-ctx-dev' into libceed-hip 2020-08-20 15:31:47 -04:00
Yohann Dudouit cc7634d475 Add support for Vector Mass and Diffusion using libCEED. 2020-08-20 12:01:56 -07:00
stefanhenneking 6b24cac9bb minor 2020-08-19 17:30:03 -05:00
jeremylt e13d898c1f Ceed - drop unused functions 2020-08-19 15:47:47 -06:00
jeremylt ce3e27fc99 minor style 2020-08-19 13:50:28 -06:00
stefanhenneking 0db216e51d Merged master into feature branch. 2020-08-19 12:50:31 -05:00
stefanhenneking 2417a4328c minor 2020-08-19 12:47:58 -05:00
camierjs a2f144d0db Merge master in okina-mmu-mflags 2020-08-19 08:04:49 -07:00
camierjs c10364d3f2 Move assignments inside if statements 2020-08-19 08:03:11 -07:00
jeremylt c968ed6920 Ceed - revert typo 2020-08-18 19:20:11 -06:00
jeremylt 32f6bf55fa Ceed -fix const in the key tuples 2020-08-18 19:19:22 -06:00
jeremylt 5b8bb9cc17 Ceed - fix embarassing pointer mistake 2020-08-18 19:07:30 -06:00
Will Pazner 5cd33e391a Fix bug 2020-08-18 16:57:24 -07:00
Will Pazner f285421dfe Workaround for nvcc/Catch compatibility
Certain REQUIRE statements were causing nvcc (specifically cicc) to
crash when compiling.

This can be temporarily worked around by introducing temporary
variables.

See https://github.com/catchorg/Catch2/issues/2005
2020-08-18 16:22:58 -07:00
jeremylt af09a4ec59 style updates from Travis 2020-08-18 17:17:12 -06:00
jeremylt 49fdfd73de Ceed - refactor FES->Basis,ElemRestriction hash table to use tuples 2020-08-18 16:50:19 -06:00
psocratis d184bc43ff Editing some comments 2020-08-18 11:18:21 -07:00
jeremylt 3140782959 style fixes from Travis 2020-08-18 11:59:04 -06:00
jeremylt de1100519d Ceed - refactor to use standard library hash table and avoid null arguments 2020-08-18 11:34:59 -06:00
stefanhenneking 5e94c43b7c minor 2020-08-17 17:41:30 -05:00
Yohann Dudouit 172e8ffe08 Fix the logic to transpose faces in ElementAssembly. 2020-08-17 14:53:14 -07:00
Yohann Dudouit 1522a69a83 Merge branch 'master' into yohann/EA-add-set 2020-08-17 13:48:33 -07:00
Yohann Dudouit 8f02cdb352 Remove more unnecessary zero initializations. 2020-08-17 13:47:13 -07:00
Yohann Dudouit dcfd8c72ca Remove unnecessary zero initialization. 2020-08-17 13:16:23 -07:00
YohannandTzanio Kolev 2b93007196 Update fem/bilininteg.hpp
Co-authored-by: Tzanio Kolev <tzanio@llnl.gov>
2020-08-17 12:14:39 -07:00
YohannandTzanio Kolev 91f9984a70 Update fem/complex_fem.hpp
Co-authored-by: Tzanio Kolev <tzanio@llnl.gov>
2020-08-17 12:13:40 -07:00
YohannandTzanio Kolev fd67897628 Update fem/complex_fem.hpp
Co-authored-by: Tzanio Kolev <tzanio@llnl.gov>
2020-08-17 12:13:34 -07:00
YohannandTzanio Kolev 77defb3b4a Update fem/bilinearform.hpp
Co-authored-by: Tzanio Kolev <tzanio@llnl.gov>
2020-08-17 12:13:23 -07:00
Tzanio 52530f419e Various small changes 2020-08-16 19:44:08 -07:00
Tzanio 8d5c51ebd1 Merge branch 'master' into findpts-crystalrouter 2020-08-16 15:48:18 -07:00
Tzanio 62ee56e544 minor 2020-08-16 15:39:27 -07:00
Will Pazner da94f8631e Adjust tolerance in NCMesh unit test 2020-08-16 14:39:45 -07:00
Will Pazner 6d9d0aa07d Change tolerances in new unit tests 2020-08-16 14:03:33 -07:00
Tzanio ccf5b8df5f Merge branch 'master' into catch2 2020-08-16 11:47:14 -07:00
Will Pazner 2ae8010ee2 Update CHANGELOG 2020-08-14 17:14:46 -07:00
Ketan Mittal e74ebc977b minor 2020-08-14 15:06:16 -07:00
Ketan Mittal 3b9328a937 account for L2 functions of order 0 and enable a no averaging option 2020-08-14 15:05:04 -07:00
Dylan Copeland 74fbc63ad7 Merge branch 'master' of github.com:mfem/mfem into matdiffpa 2020-08-14 14:27:56 -07:00
Dylan Copeland c7006c63f1 Merge branch 'master' of github.com:mfem/mfem into pacurlsmem 2020-08-14 14:19:32 -07:00
stefanhenneking 186d605b71 minor 2020-08-14 16:09:16 -05:00
jeremylt bd83eab2e9 CEED - allow null arguments to InitCeedBasisAndRestriction as well 2020-08-14 13:03:37 -06:00
jeremylt 813a68ed15 Ceed - update libCEED git hash 2020-08-14 12:59:34 -06:00
camierjs 98450102f5 Merge master in okina-mmu-mflags 2020-08-14 11:21:55 -07:00
camierjs 97b31f641e Remove dead code 2020-08-14 11:07:37 -07:00
camierjs 0b79c6a742 Fix aliases test_mem and cleanup 2020-08-14 11:04:23 -07:00
stefanhenneking a6139cc245 Merge branch 'master' of github.com:mfem/mfem into ex6-pa-preconditioner 2020-08-14 12:52:57 -05:00
stefanhenneking 8d0d4e4bc1 Merging master into feature branch. 2020-08-14 12:51:55 -05:00
jeremylt ad66b16d0d Ceed - add ceed-hash tables for mfem fes -> ceed basis, restriction 2020-08-14 11:48:35 -06:00
stefanhenneking 2fbfaf80de Merge branch 'master' of github.com:mfem/mfem into curl-curl-coef 2020-08-14 12:04:50 -05:00
jeremylt 0546ed1030 Ceed - allow null arguments to InitCeed*BasisAndRestriction 2020-08-14 10:19:20 -06:00
jeremylt f2343c6f9b Ceed - update libCEED git hash for install 2020-08-14 09:46:55 -06:00
jeremylt a11c00e12e libCEED - add new qfunction context data object, mild perf improvement 2020-08-14 09:46:32 -06:00
camierjs c9b9dd8f07 Merge branch 'master' into okina-mmu-mflags 2020-08-14 08:31:04 -07:00
Ketan Mittal 48fb45bf1b minor 2020-08-13 20:26:30 -07:00
Ketan Mittal 569ad39379 doxygen comments 2020-08-13 19:49:32 -07:00
Will Pazner f1271d5ffe Merge remote-tracking branch 'origin/master' into catch2
# Conflicts:
#	tests/unit/fem/test_assembly_levels.cpp
#	tests/unit/fem/test_pa_kernels.cpp
2020-08-13 17:02:24 -07:00
Ketan Mittal b1f54d1215 remove extra lines 2020-08-13 16:14:45 -07:00
Ketan Mittal d15bdaa7df doxygen comment fix 2020-08-13 15:05:21 -07:00
camierjs 2f2a4ca5fd Merge branch 'master' into okina-mmu-mflags 2020-08-13 14:35:31 -07:00
Ketan Mittal c7f49ba820 make style 2020-08-13 12:48:36 -07:00
Ketan Mittal e5e37bb104 minor 2020-08-13 12:28:15 -07:00
Ketan Mittal 9d05f6a69c introduce default values for point not found 2020-08-13 12:07:04 -07:00
Ketan Mittal 95118654a2 fix for when points are not found 2020-08-13 11:32:13 -07:00
William F Godoy 219083b48c Add element attribute to adios2 bp dataset
Update dataset format version
Save element attribute as "material" local array variable
Add material as CellData in xml schema
Update FindADIOS2.cmake for adios2 v2.6.0.
2020-08-13 13:04:44 -04:00
Ketan Mittal 848872ee26 resolve conflict 2020-08-13 09:26:38 -07:00
Ketan Mittal d6f0eb888a update CHANGELOG 2020-08-13 09:25:20 -07:00
lazarov e6d7736c51 mod 2020-08-13 07:22:24 -07:00
lazarov 79760fc4ab Bug fix for double ParBlockNonlinearForm::GetEnergy(const Vector &x) 2020-08-12 22:30:56 -07:00
Tomov 4cb7b3bd4d Merge branch 'master' into findpts-crystalrouter 2020-08-12 17:39:45 -07:00
Ketan Mittal 6105236ac8 minor fix if freedata is called more than once 2020-08-12 15:24:57 -07:00
Vargas 656703bfca make style 2020-08-12 14:15:57 -07:00
Adam Oler 28ce2c07ad fix multi-line comment 2020-08-12 13:54:54 -07:00
Adam Oler a570ec1558 make style 2020-08-12 13:16:19 -07:00
Ketan Mittal 9f78b74272 print out only unique points in pfinfpts 2020-08-11 16:11:59 -07:00
Adam Oler 161deb4482 fixed getNumIterations 2020-08-11 14:20:19 -07:00
Adam Oler e10086b3b0 timing ex4p 2020-08-11 09:57:21 -07:00
Adam Oler d1c73ef932 removed multi-line comment 2020-08-11 09:47:40 -07:00
Adam Oler d49b427e45 make style 2020-08-10 17:06:42 -07:00
Adam Oler 2d6d09434d deleting unncessary files 2020-08-10 16:49:40 -07:00
Adam Oler 36032a86dc make style 2020-08-10 15:02:49 -07:00
Adam Oler f5de2c89e8 make style 2020-08-10 15:01:05 -07:00
Adam Oler 20508d24af fixing amgx directory name / reloading examples 2020-08-10 14:07:57 -07:00
Adam Oler 04e673c09c fixing AMGX directory name 2020-08-10 13:55:18 -07:00
Adam Oler b0de5df7f0 fixing makefile 2020-08-10 13:19:26 -07:00
Jakub Červený cf8a86dde6 Fix crash in ParNCMesh::GetFaceNeighbors due to slave edges/faces beyond the ghost layer. 2020-08-10 10:21:53 +02:00
Dylan Copeland be65608e07 Moving constexpr ints into MFEM_FORALL. 2020-08-07 16:45:43 -07:00
Dylan Copeland a2309b6044 Moved some constexpr ints inside the MFEM_FORALL. 2020-08-07 14:56:26 -07:00
Adrien M. Bernede b9ca2a3013 Apply review suggestion 2020-08-07 14:43:59 -07:00
Dylan Copeland c09cb09a65 Changing the condition for deciding whether to use smem kernels. 2020-08-07 11:19:29 -07:00
Adam Oler d19de9e373 Merge branch 'feature/artv3/amgx' of https://github.com/mfem/mfem into feature/artv3/amgx 2020-08-06 17:37:10 -07:00
Adam Oler ad3749642b adding getNumIterations 2020-08-06 17:34:35 -07:00
Ketan Mittal 59e33bcd3d Merge branch 'findpts-crystalrouter' of https://github.com/mfem/mfem into findpts-crystalrouter 2020-08-06 13:16:00 -07:00
Ketan Mittal 5aefc6e2ec minor fix with ip.SetD 2020-08-06 13:15:32 -07:00
Dylan Copeland d245aaa52c Multi-threading some quadrature loops. 2020-08-06 12:43:04 -07:00
Tomov 747cae6785 Minor. 2020-08-06 12:22:29 -07:00
Tomov 57bc15f4b3 AMR sample run. 2020-08-06 12:18:33 -07:00
Tomov 84c81f32e5 Minor. 2020-08-06 12:15:46 -07:00
Tomov 88e63a1692 Extra output and examples in field-interp. 2020-08-06 12:11:09 -07:00
Dylan Copeland a37e4c5adb Using templates for all shared memory kernels. 2020-08-06 11:25:17 -07:00
stefanhenneking 79ad2cfda4 Adding a few sample runs with PA on CPU. 2020-08-06 13:15:43 -05:00
Adrien M. Bernede e099e0d3eb Possible fix 2020-08-06 09:49:06 -07:00
stefanhenneking 1b2bd158e1 Adding assertion to ensure dynamically cast pointer is not NULL. 2020-08-06 10:48:14 -05:00
Arturo Vargas 9c3a536155 AMGX->amgx in defaults.mk 2020-08-05 20:19:38 -07:00
Ben Zwick 845daf78d0 Clarify error messages 2020-08-06 08:46:00 +08:00
Ketan Mittal ddda149fd4 Merge branch 'findpts-crystalrouter' of https://github.com/mfem/mfem into findpts-crystalrouter 2020-08-05 16:47:27 -07:00
Ketan Mittal 7cf2680f8e minor fix for H1 2020-08-05 16:47:02 -07:00
Tomov dddf17c8f5 Corrected the creation of ND and RD spaces in findpts.cpp. 2020-08-05 16:39:52 -07:00
Yohann Dudouit 97f51343cb Fix a bug in AssembleEA Transpose 3D. 2020-08-05 16:13:02 -07:00
Yohann Dudouit 6329d712b7 Set default to true. 2020-08-05 16:00:55 -07:00
Dylan Copeland 26f4a0c585 Minor changes. 2020-08-05 16:00:17 -07:00
Yohann Dudouit 1d6eefe56e make style 2020-08-05 15:59:31 -07:00
Dylan Copeland 12c9c9fe3e Merge branch 'pacurlsmem-tmp' of github.com:mfem/mfem into pacurlsmem 2020-08-05 15:44:53 -07:00
Yohann Dudouit 073d9526d9 Add an option to set or add when using AssembleEA. 2020-08-05 15:40:50 -07:00
Will PaznerandStefan Henneking 9ea7f160db Change documentation comment type
Co-authored-by: Stefan Henneking <stefan.henneking@gmail.com>
2020-08-05 13:25:34 -07:00
Dylan Copeland eef3f16f7a Moving useConfigData out of the MPI ifdef. 2020-08-05 12:58:50 -07:00
Dylan Copeland 45457af5a6 Changing shared memory array definition. 2020-08-05 10:38:11 -07:00
Adrien M. Bernede 719556056a Minor changes, essentially to trigger CI 2020-08-05 09:15:52 -07:00
Adrien M. Bernede 23a20ed498 Basic lassen tests 2020-08-05 09:15:52 -07:00
Jason Hicken 0e7ebbc839 added safe-guard for NSH option, and included more documentation on ilu_type 2020-08-05 12:03:30 -04:00
Dylan Copeland 9cc330035f Making 3D mass diagonal PA SMEM version templated. 2020-08-05 08:39:14 -07:00
Dylan Copeland 47c980d1e5 Adding CUDA tag to diagonal PA test. Restoring an old unit test. 2020-08-05 08:34:28 -07:00
Jakub Červený de56b17a73 polar-nc: fixed unused variable ('origin'). 2020-08-05 13:41:32 +02:00
Jakub Červený 3333f1a0ba Updated CHANGELOG 2020-08-05 13:36:46 +02:00
Jakub Červený 0463a6c2e2 Merge branch 'master' into nc-init-dev 2020-08-05 12:59:44 +02:00
Jakub Červený 11f6fe668a polar-nc: output is now called the same as the miniapp 2020-08-05 12:57:28 +02:00
Ben Zwick eef546bb91 Improve DenseMatrix error messages 2020-08-05 16:59:40 +08:00
Jakub Červený 3cd393dddb polar-nc: added visualization option 2020-08-05 09:49:18 +02:00
Jakub Červený 3f74fc0a1b Fixed tabs in miniapps/meshing/makefile 2020-08-05 09:25:17 +02:00
Will Pazner 4fee14d514 Merge branch 'master' into catch2 2020-08-04 21:05:59 -07:00
Will Pazner 78468b8481 Minor 2020-08-04 21:03:55 -07:00
stefanhenneking 3277d9619e Minor (simplification). 2020-08-04 16:52:07 -05:00
Jason Hicken 5949d421f1 added wrappers for Hypre FGMRES and ILU 2020-08-04 17:47:47 -04:00
Dylan Copeland 7364d761a5 Changing kernel argument variable names to not begin with underscore or a capital letter. 2020-08-04 13:51:45 -07:00
stefanhenneking 2db150149d Minor change. 2020-08-04 15:12:04 -05:00
Adam Oler 6490c85f67 cleaning up before benchmarking 2020-08-04 12:24:25 -07:00
Yohann Dudouit d386fc532d Remove innaccurate documentation (I think). 2020-08-04 12:01:08 -07:00
Will Pazner b8663ce965 Re-enable Assembly Levels test. CI will fail until #1660 is merged. 2020-08-04 11:49:10 -07:00
Yohann Dudouit 55233ea4d1 Use LEGACYFULL instead of FULL in the documentation. 2020-08-04 11:46:12 -07:00
Will Pazner ebe07eaa36 make style 2020-08-04 09:48:53 -07:00
camierjs 84f59e1afc Merge branch 'master' into okina-mmu-mflags 2020-08-04 09:24:23 -07:00
Will Pazner 9d83eed55c Upgrade to Catch v2.13.0 from v1.6.1 2020-08-04 08:37:48 -07:00
Dylan Copeland d5d267eefd Fixing merge. 2020-08-03 15:08:47 -07:00
Dylan Copeland c14581a1e8 Merge branch 'master' of https://github.com/mfem/mfem into matdiffpa 2020-08-03 13:03:52 -07:00
stefanhenneking 4be4d220a8 Adding Sync and SyncAlias methods for [Par]ComplexGridFunction and [Par]ComplexLinearForm. 2020-08-03 14:35:22 -05:00
William Dawn 051a1bef0f Merge branch 'master' of github.com:wcdawn/mfem into master 2020-08-03 11:43:08 -06:00
William Dawn 76c05e2404 address leaks in SlepcEigenSolver 2020-08-03 11:42:04 -06:00
Jakub Červený c1d32eb781 polar-nc: miniapp description, makefile cleaning, gitignore 2020-08-02 22:15:06 +02:00
Jakub Červený 73d9b2b468 More renaming. 2020-08-02 18:05:37 +02:00
Jakub Červený 7fc19f99e1 Renamed miniapp radial-nc to polar-nc. 2020-08-02 18:02:10 +02:00
Jakub Červený a448f94afd radial-nc: center tets in 3D now respect the aspect setting. 2020-08-02 17:59:06 +02:00
Jakub Červený be806c66cd radial-nc: boundary elements in 3D added. 2020-08-02 17:24:57 +02:00
Jakub Červený 20fdb60ca6 Finished mesh initialization API improvements. 2020-08-02 17:24:34 +02:00
Jakub Červený 2dab711e35 radial-nc: higher order curvature in 3D works 2020-08-02 14:53:50 +02:00
Ketan Mittal 44b3749566 minor 2020-07-31 17:00:20 -07:00
William Dawn dd05b45c62 address leaks in SlepcEigenSolver 2020-07-31 16:09:01 -06:00
Tucker Babcock f08de96178 updating documentation 2020-07-31 14:24:43 -07:00
Ketan Mittal 7e29e7a66f remove an extra line 2020-07-31 12:38:17 -07:00
Ketan Mittal a97e0f081e allow source and target function type to be different 2020-07-31 10:14:10 -07:00
Yohann Dudouit c3fa8cdf02 make style 2020-07-31 09:06:04 -07:00
Yohann Dudouit b76a9fbb68 Add mass and diffusion MF to CMakeLists. 2020-07-30 17:05:38 -07:00
Yohann Dudouit 72b1dec3e7 Remove unnecessary qdatasize for MF. 2020-07-30 16:31:23 -07:00
Yohann Dudouit 7f1bde17a2 Add AssembleDiagonalMF. 2020-07-30 16:20:21 -07:00
Yohann Dudouit a59c17e6ae Add fully matrix-free support in MFEM using libCEED. 2020-07-30 16:11:12 -07:00
Tucker Babcock f19fcd01e6 switching to initializers instead of assignments in function coefficient constructors 2020-07-30 14:57:16 -07:00
Tucker Babcock e315af4d4c adding documentation to new members in detail namespace 2020-07-30 14:30:53 -07:00
Tucker Babcock fef6f5bbaf make style 2020-07-30 14:16:17 -07:00
Tucker Babcock 936f49bbad fix lambda function time-independent vector function coefficient constructor 2020-07-30 14:12:06 -07:00
Tucker Babcock febc9a8a6e using template meta-programming SFINAE to remove ambiguity of constructor for stateless lambda 2020-07-30 12:43:59 -07:00
stefanhenneking 9dba6a2429 Fixing a typo (comment). 2020-07-30 13:50:18 -05:00
Dylan Copeland 85d7da47a1 Removing SetSymmetric function. Verifying symmetry flag in MatrixFunctionCoefficient::Eval. 2020-07-30 11:40:18 -07:00
Dylan Copeland 66ab25dc09 Eliminating some unnecessary memory. 2020-07-29 21:27:57 -07:00
Ketan Mittal 9deac910fa account for basis type 2020-07-29 16:53:44 -07:00
Dylan Copeland 39f72c9c6b Extending diffusion diagonal assembly for all coefficient types, with unit tests. 2020-07-29 16:14:20 -07:00
Ketan Mittal 2becd019a3 minor 2020-07-29 16:05:25 -07:00
Dylan Copeland e4f8acb473 Adding vector coefficients to DiffusionIntegrator, with unit tests. Unifying the setup functions for diffusion and H(curl) mass. 2020-07-29 13:01:48 -07:00
Jakub Červený 729f568ac5 radial-nc: 3D meshing works for linear elements. 2020-07-29 21:40:37 +02:00
Ketan Mittal d905170a28 addressing reviewers' comments 2020-07-29 08:44:32 -07:00
Dylan Copeland 5b8c4ebc0f Adding matrix coefficient support for diffusion PA, with unit tests. 2020-07-28 22:26:09 -07:00
Tomov a09e19e4f5 Minor. 2020-07-28 17:22:10 -07:00
Tomov 90bdac177e Minor. 2020-07-28 16:00:22 -07:00
Tucker Babcock deccdec496 using delegating constructors to allow construction with function pointers. This is needed because if one tried to construct a FunctionCoefficient with a function that was overloaded, it could not be implicitly converted to a std::function 2020-07-28 15:38:46 -07:00
Dylan Copeland 79a1aaaa98 Fixing coefficient dimensions in the 2D case. 2020-07-28 17:14:39 -05:00
stefanhenneking a98ef3ae5b Merge branch 'master' of github.com:mfem/mfem into curl-curl-coef 2020-07-28 15:48:47 -05:00
Ketan Mittal b85fccf3d6 added file for sample run in field-interp 2020-07-28 11:07:00 -07:00
Tucker Babcock 3e0e2a7498 fixes for CI 2020-07-28 10:39:44 -07:00
Ketan Mittal 834cef52b7 minor changes 2020-07-28 10:04:24 -07:00
stefanhenneking 2f37cc37de Add a similar fix for ListToMarker(). 2020-07-28 11:44:19 -05:00
stefanhenneking c1f395c813 Adding fix to ensure the list is valid on host. 2020-07-28 11:40:01 -05:00
stefanhenneking e4df598c0b Reverting changes in example 6. 2020-07-28 11:39:07 -05:00
Jakub Červený 26d8d91118 radial-nc: trying to fix 3D parametrization 2020-07-28 14:40:20 +02:00
Tucker Babcock 7206fdb854 changing function coefficients to use std::functions instead of function pointers 2020-07-27 21:07:49 -07:00
Dylan Copeland 411d3fc96d Implemented vector and matrix coefficients for 3D curl-curl PA integrator, with unit tests. Added the option to specify integration rule, which is necessary for the unit tests. 2020-07-27 16:21:40 -07:00
stefanhenneking 4de6b5eeba Merge branch 'master' of github.com:mfem/mfem into complex-operator-gpu 2020-07-27 16:32:53 -05:00
Adam Oler ecae2467e8 adding support for matrix coefficients 2020-07-27 13:35:36 -07:00
Stefan Henneking a8e2e7383f A few minor changes to reproduce the issue. 2020-07-27 09:46:50 -07:00
psocratis 15f871eafa added small comment on the computation of the rate 2020-07-24 17:33:37 -07:00
psocratis a817874f12 make style 2020-07-24 16:15:15 -07:00
psocratis 48c9b0f92f Merge branch 'master' into curl-curl-coef 2020-07-24 16:06:45 -07:00
psocratis 5977679b6b fixed typo 2020-07-24 16:06:31 -07:00
psocratis 25ded86cd3 Replaced PMLMatrixCoefficient with PMLDiagMatrixCoefficient (VectorCoefficient) in ex25p.cpp 2020-07-24 15:55:24 -07:00
psocratis 8fa68c42ff Modified ex25 to use VectorCoefficient instead of a MatrixCoefficient 2020-07-24 15:22:40 -07:00
psocratis c5538ff8dc Added Diagonal Matrix Coefficient (VectorCoefficient) in CurlCurlintegrator 2020-07-24 15:09:13 -07:00
Jakub Červený 5b345e43a5 radial-nc: WIP 3D mesh 2020-07-24 19:25:04 +02:00
stefanhenneking 7595b945b8 Minor change. 2020-07-24 12:01:27 -05:00
stefanhenneking 7b392632eb Merge branch 'abs-mult-dev' of github.com:mfem/mfem into ex6-pa-preconditioner 2020-07-24 11:55:17 -05:00
stefanhenneking bb74169b37 Merge branch 'master' of github.com:mfem/mfem into ex6-pa-preconditioner 2020-07-24 11:55:07 -05:00
lazarov bd93333312 Style check 2020-07-23 17:07:50 -07:00
Jakub Červený 85713406a7 radial-nc: added SFC ordering option. 2020-07-23 20:16:58 +02:00
stefanhenneking c922f6926e Minor change in comments. 2020-07-23 12:20:30 -05:00
stefanhenneking 768a689aa5 Merging support for block operator on device into feature branch. 2020-07-23 12:16:53 -05:00
stefanhenneking a16150a436 Minor change to changelog. 2020-07-23 12:13:48 -05:00
lazarov 43beaf69b6 Fix mem leak in BlockNonlinearForm 2020-07-22 21:50:46 -07:00
Dylan Copeland 23a34bd2e7 Fix cuda unit tests build. 2020-07-22 21:03:12 -07:00
Dylan Copeland 27b1a97cc9 Excluding cunit_tests from build if not using cuda. 2020-07-22 19:47:16 -07:00
psocratis 0219828ca6 Renaming public methods and signatures for better readability. Modified the examples accordingly 2020-07-22 18:14:45 -07:00
Julian Andrej e6af88c98c fix cuda unit test in cmake 2020-07-22 16:11:46 -07:00
Dylan Copeland d34b094f27 Merge branch 'master' of https://github.com/mfem/mfem into pacurlsmem 2020-07-22 15:51:02 -07:00
psocratis ab0955357c minor changes addressing reviewers comments 2020-07-22 11:11:36 -07:00
psocratis e520ed9647 Merge branch 'master' into convergence-dev 2020-07-22 10:43:21 -07:00
Jakub Červený 13f5a48fa4 radial-nc: added mesh curvature 2020-07-22 19:39:51 +02:00
stefanhenneking 733630ee14 Ensure to delete and reset the underlying data object. 2020-07-21 16:31:48 -05:00
Ketan Mittal be240f9242 minor stylistic changes 2020-07-21 14:18:38 -07:00
stefanhenneking d1b5234a09 Merging master into feature branch. 2020-07-21 16:18:38 -05:00
stefanhenneking 91e3853cd4 Merge branch 'master' of github.com:mfem/mfem into ex6-pa-preconditioner 2020-07-21 16:15:55 -05:00
Ketan Mittal 0881487256 Merge branch 'master' of https://github.com/mfem/mfem into findpts-crystalrouter 2020-07-21 11:17:20 -07:00
Jakub Červený 13d2c2eaec Mesh::AddVertexParents works, added boundary elements in radial-nc miniapp. 2020-07-21 19:29:58 +02:00
Jakub Červený 69a04bb7f0 radial-nc miniapp: doubling rows and creating hanging vertices. 2020-07-21 15:30:24 +02:00
Jakub Červený 338b484217 WIP improvements of on-the-fly mesh initialization, including NC meshing. 2020-07-21 14:27:48 +02:00
Dylan Copeland a2910dadb7 Updating CMakeLists.txt for cunit_tests. 2020-07-17 22:38:33 -07:00
Dylan Copeland 93865c8176 Adding smem versions of mixed curl integrators. Adding unit test to run all tests with tag CUDA, using "cuda" device. 2020-07-17 22:08:20 -07:00
Adam Oler 9ae4c595f6 speed up initialization 2020-07-17 16:48:37 -07:00
stefanhenneking 48c0d02405 Updating CHANGELOG. 2020-07-17 14:37:27 -05:00
stefanhenneking 8e54a05376 Adding diagonal preconditioner to PA case. 2020-07-17 14:31:08 -05:00
stefanhenneking 9a6c263019 Merge branch 'abs-mult-dev' of github.com:mfem/mfem into ex6-pa-preconditioner 2020-07-17 13:19:25 -05:00
Dylan Copeland 5ede2d36b9 Adding pa_tests_cuda to unit tests. 2020-07-17 10:46:05 -07:00
Adam Oler 7b606deff1 fix scatterv 2020-07-17 10:15:37 -07:00
Adam Oler 06f96b6f49 bug tracking 2020-07-17 09:37:52 -07:00
Ketan Mittal d850f810ce return mfem_elem instead of gslib_elem 2020-07-16 16:55:15 -07:00
Dylan Copeland 140d93ab33 Enabled smem kernels for up to order 4. 2020-07-16 10:34:45 -07:00
Dylan Copeland f5c9fee3c0 Adding smem version of 3D H(curl) mass diagonal assembly. 2020-07-15 20:26:12 -07:00
Dylan Copeland f6542b6a8f Switching between kernel versions (smem or not) depending on whether using device. This allows unit tests to pass. 2020-07-15 17:32:01 -07:00
Andrew T. Barker fc8475828d HypreBoomerAMG: allow Ordering::byNODES in systems version 2020-07-15 16:18:58 -07:00
stefanhenneking b570911a15 Updating changelog. 2020-07-15 17:31:56 -05:00
psocratis 5108a8b28d Updated copyright banner 2020-07-15 14:43:39 -07:00
stefanhenneking 3da43efb86 Merge branch 'master' of github.com:mfem/mfem into complex-operator-gpu 2020-07-15 16:32:57 -05:00
Tzanio Kolev 4b011866f8 Merge branch 'master' into convergence-dev 2020-07-15 14:29:05 -07:00
stefanhenneking 064a859fd1 Minor fix in member variable initialization. 2020-07-15 15:18:36 -05:00
stefanhenneking 56211dfeb9 Merging complex-operator-pa branch. 2020-07-15 15:15:59 -05:00
psocratis 930fa24327 minor comment addition 2020-07-15 12:23:28 -07:00
Adam Oler 24756aea1a adding amgx to ex16p 2020-07-15 10:56:09 -07:00
Stefan Henneking ac69933f77 Merge branch 'master' into complex-operator-gpu 2020-07-15 10:50:21 -05:00
Dylan Copeland 26b36ef71b Merge branch 'master' of github.com:mfem/mfem into pacurlsmem 2020-07-14 20:23:26 -07:00
stefanhenneking 7009af9ecc Simplifying MakeRef functions. 2020-07-14 19:21:54 -05:00
stefanhenneking a2da036bdb Destroying alias vectors to avoid issues with dangling references in memory manager. 2020-07-14 18:18:04 -05:00
Dylan Copeland c71428a623 Rearranging SmemPACurlCurlApply3D to reduce shared memory access. 2020-07-14 15:56:24 -07:00
psocratis e9e9741f48 merge master 2020-07-13 18:52:31 -07:00
Socratis 043227cae0 fixed valgrind issue in ratesp 2020-07-13 17:44:46 -07:00
psocratis 39b695dd72 minor 2020-07-13 17:32:27 -07:00
psocratis 0df63b1d08 cleaned up the example rates[p] 2020-07-13 17:14:32 -07:00
psocratis 3e6e5a3685 Added comments in [p]gridfunction and clean up 2020-07-13 17:13:34 -07:00
psocratis 88713bcd12 added cpp and hpp in CmakeList and in fem.hpp path 2020-07-13 17:12:37 -07:00
psocratis 7ff584c893 Added convergence hpp and cpp in /fem 2020-07-13 17:10:59 -07:00
psocratis dd2f0140f3 combined all examples into 1 : rates.cpp, ratesp.cpp 2020-07-12 19:04:18 -07:00
Dylan Copeland db191b082f Adding smem version of PAHcurlMassApply3D. 2020-07-11 12:15:04 -07:00
psocratis e2a1ac8be6 make style 2020-07-10 19:43:39 -07:00
psocratis e93a91d5f6 clean up 2020-07-10 19:43:06 -07:00
Dylan Copeland 8c942e2a9a Adding smem version of PACurlCurlApply3D. 2020-07-10 17:31:56 -07:00
Will Pazner 31825b99b1 make style 2020-07-10 16:11:12 -07:00
Will Pazner 20380cfe07 Add parallel DG convergence test 2020-07-10 16:10:32 -07:00
Will Pazner e01bcf074b Add parallel computation of DG face error 2020-07-10 16:10:24 -07:00
stefanhenneking 6cb82fa126 Merge branch 'master' of github.com:mfem/mfem into complex-operator-gpu 2020-07-10 11:35:55 -05:00
Ketan Mittal 315c9b80e1 make style 2020-07-09 13:24:06 -07:00
Ketan Mittal 39ba9e9c0e cleanup 2020-07-09 10:29:05 -07:00
Ketan Mittal de832c96e3 minor fix for L2 and added comments 2020-07-08 18:18:13 -07:00
Arturo Vargas 5594a194c9 clean up pass 2020-07-08 18:17:45 -07:00
Ketan Mittal f36e548b24 minor 2020-07-08 16:29:15 -07:00
Ketan Mittal 0944109ef3 minor changes to gslib 2020-07-08 15:21:12 -07:00
Ketan Mittal 0a972edbd8 update findpts serial example 2020-07-08 15:20:19 -07:00
psocratis 90ecd5fc1b Added DG example 2020-07-08 13:35:28 -07:00
stefanhenneking 8e90fcde40 Merging complex-operator-pa features into this complex-operator-gpu. 2020-07-08 14:48:54 -05:00
stefanhenneking ef41d0f3c1 Merge branch 'complex-operator-gpu' of github.com:mfem/mfem into complex-operator-gpu 2020-07-08 14:38:12 -05:00
stefanhenneking d32f760854 Merge branch 'master' of github.com:mfem/mfem into complex-operator-gpu
Merging master into feature branch.
2020-07-08 14:37:12 -05:00
psocratis 19fac7ee7c make style 2020-07-07 19:03:56 -07:00
psocratis 3625d1cdb8 Merge branch 'master' into convergence-dev 2020-07-07 19:02:57 -07:00
Adam Oler 297fbf1d49 1 node 1 gpu multiple mpis 2020-07-07 13:04:11 -07:00
Adam Oler 71318d86dc mini ex solves with n mpi ranks and 1 gpu 2020-07-06 17:19:23 -07:00
camierjs d9c9caa909 Merge branch 'master' into okina-mmu-mflags 2020-07-06 10:40:45 -07:00
Stefan Henneking a298f02b4c Enable block diagonal preconditioner for device computation. 2020-07-01 13:51:50 -07:00
Stefan Henneking ec8b00ea1e Merge branch 'blockop_cuda' of github.com:mfem/mfem into complex-operator-gpu
Merging support for BlockOperator on device from feature branch.
2020-07-01 13:24:56 -07:00
psocratis 8833320150 added relative error computation 2020-06-29 19:50:11 -07:00
psocratis 69e1c83478 Added Conv_rates to convergence and diffusion example. Removed ComputeEnergyError from gridFuncion class. Added energy error estimates to Convergence Class 2020-06-29 17:49:54 -07:00
stefanhenneking f9ed143f40 Removing typos. 2020-06-29 16:00:21 -05:00
Stefan Henneking e5570e9e4c Sync memory after recovering FEM solution on device. 2020-06-29 12:24:42 -07:00
camierjs a46473e463 Merge branch 'master' into okina-mmu-mflags 2020-06-29 10:29:06 -07:00
Stefan Henneking af900cf8d7 Merge branch 'master' of github.com:mfem/mfem into complex-operator-gpu
Merging master into feature branch.
2020-06-29 10:25:06 -07:00
Stefan Henneking a57a3eb070 Enabling device support for ComplexParLinearForm. 2020-06-29 10:23:07 -07:00
Stefan Henneking aea668a9f9 Adding MakeRef function to ParLinearForm. 2020-06-29 10:22:18 -07:00
Stefan Henneking a3ebecd8ac Minor change in function doc. 2020-06-29 09:49:17 -07:00
psocratis 6d23b31933 minor modification in makefile 2020-06-26 17:43:47 -07:00
psocratis 7d56d2ab30 Modified parallel projection test 2020-06-26 17:40:53 -07:00
psocratis 7d60795d20 Added serial projection example test 2020-06-26 17:40:10 -07:00
psocratis c614d384a3 Added relative L2 error 2020-06-26 17:39:38 -07:00
psocratis a8f9fcc65c Clean up in ComputeEnergyError 2020-06-26 17:38:48 -07:00
psocratis ee2e6d4f35 Small modification for 2D Hcurl LFCurlIntegrator 2020-06-26 17:37:59 -07:00
Dylan Copeland 65c4443b77 Implemented shared memory version of curl-curl diagonal assembly in 3D. 2020-06-26 17:10:40 -07:00
Adam Oler e51e373502 tracking down mpi probs 2020-06-26 16:42:07 -07:00
Stefan Henneking ac4aa43430 Enable device support for ParSesquilinearForm. 2020-06-26 15:16:41 -07:00
Stefan Henneking 47d3d7ead1 Enable device support for ParComplexGridFunction. 2020-06-26 14:35:07 -07:00
Stefan Henneking 03473d90fa Ensure vector is registered on device before using alias. 2020-06-26 14:33:26 -07:00
stefanhenneking e4529f82f7 Adding device option to ex22p. 2020-06-26 13:58:52 -05:00
stefanhenneking a883eb7287 Minor style change. 2020-06-26 11:53:34 -05:00
Stefan Henneking aaf321caab Fixing a few typos in documentation. 2020-06-26 09:49:53 -07:00
Stefan Henneking b9b7c7b046 Enabling device support for complex linear form. 2020-06-26 09:39:34 -07:00
psocratis 1f8c48ce73 Added ComputeEnergyError in ParGridFunction 2020-06-25 19:53:36 -07:00
Stefan Henneking 3a9bfe3c81 Enabling device support for ComplexGridFunction::Update(). 2020-06-25 15:39:12 -07:00
Stefan Henneking dce5bf5801 Enabling device support for example ex22. 2020-06-25 15:06:24 -07:00
Stefan Henneking 1fd05bf80d Enabling support for device computation for complex operator transpose mult. 2020-06-25 14:46:49 -07:00
Stefan Henneking 302886dda3 Enable device support for sesquilinear form and complex grid function. 2020-06-25 13:34:04 -07:00
Stefan Henneking c34f87aab7 Modifying complex operator mult for device support. 2020-06-25 13:11:58 -07:00
psocratis d79302db6b Added ComputeCurlError method for GridFunction (serial) 2020-06-24 19:41:47 -07:00
psocratis 4568e35898 Added ComputeDivError method in GridFunction (for serial) 2020-06-24 18:09:52 -07:00
Ketan Mittal 83f74fefca resolve conflict 2020-06-24 17:36:29 -07:00
Ketan Mittal 752d698ffb cleaning up 2020-06-24 17:31:00 -07:00
Arturo Vargas 44bec8b293 fix mpi error 2020-06-22 21:04:24 -07:00
Adam Oler a2c514b489 Rewriting ex1 with amg to run in serial 2020-06-22 17:34:14 -07:00
psocratis 006d78c2c0 minor fix 2020-06-22 15:30:41 -07:00
psocratis e5bb4991a7 Initial commit for con_rates class 2020-06-22 15:13:36 -07:00
Tzanio a89750a63a Merge branch 'tests-convergence-dev' into convergence-dev
Conflicts:
	tests/convergence/makefile
2020-06-18 19:19:43 -07:00
Tzanio 4b925ab9b0 Adding convergence test from #1218 renamed to tests/convergence/(p)complex.cpp 2020-06-18 19:10:37 -07:00
Tzanio fdd67e17fe Adding convergence test from #1254 2020-06-18 19:05:15 -07:00
Tzanio 96ab53d665 Adding convergence test from https://github.com/mfem/mfem/pull/1460, renamed
from tests/convergence/bae.cpp to tests/convergence/projection.cpp
2020-06-18 18:55:58 -07:00
Ketan Mittal 2ff4dc87ed minor 2020-06-18 13:03:49 -07:00
Arturo Vargas 9e6a94f96c clone with https 2020-06-18 12:05:42 -07:00
Arturo Vargas 60f1ec320a update script to use hypres github repo 2020-06-18 12:02:13 -07:00
Ketan Mittal 2c2947ebc1 merge with master and resolve conflict 2020-06-17 09:13:28 -07:00
Ketan Mittal b7661f38c2 field-interp working for hdiv and hcurl 2020-06-17 09:02:27 -07:00
Ketan Mittal 5e712c0329 debugging 2020-06-16 17:09:10 -07:00
Arturo Vargas cd3a670ba9 update build script 2020-06-15 12:10:01 -07:00
Ketan Mittal 477edc285e debugging grid to grid transfer for H(div) 2020-06-15 10:48:55 -07:00
Arturo Vargas ca914cc242 re-org examples to pass for travis 2020-06-08 08:34:34 -07:00
Arturo Vargas 3f13da240e update with master 2020-06-07 20:52:03 -07:00
Ketan Mittal f437641970 Merge branch 'field-interp' of https://github.com/mfem/mfem into findpts-crystalrouter 2020-06-05 14:37:30 -07:00
Ketan Mittal 12990ce20f Merge branch 'master' of https://github.com/mfem/mfem into findpts-crystalrouter 2020-06-05 14:36:59 -07:00
Ketan Mittal 6b871aecd9 minor changes to output at the end 2020-06-05 14:34:39 -07:00
Ketan Mittal 5f9dd70856 adding tests for more gridfunctions to pfindpts 2020-05-27 15:46:48 -07:00
Ketan Mittal 6cc67adfbb minor 2020-05-27 15:34:34 -07:00
Ketan Mittal 85d6d808ea Merge branch 'master' of https://github.com/mfem/mfem into findpts-crystalrouter 2020-05-15 14:16:51 -07:00
Ketan Mittal 330fd509a6 support for non H1 gridfunctions 2020-05-15 11:13:23 -07:00
Ketan Mittal d7d58fa285 Merge branch 'findpts-serialpatch' of https://github.com/mfem/mfem into findpts-crystalrouter 2020-05-04 13:48:40 -07:00
Arturo Vargas 623d1267a5 adjustments to solver - better convergence 2020-04-26 13:28:25 -07:00
Arturo Vargas 2b94239cc9 use pinned host buffer in amgx 2020-04-25 13:53:41 -07:00
Arturo Vargas 500dcffcb3 clean up pass to driver 2020-04-25 13:15:03 -07:00
Arturo Vargas 80ae04fd7b use pinned memory 2020-04-25 13:12:14 -07:00
Arturo Vargas dc15062b82 finally fixed make 2020-04-21 23:34:20 -07:00
Arturo Vargas b97031ee4d added missing AMGX define 2020-04-21 22:42:39 -07:00
Arturo Vargas 01ec115eb2 added missing MFEM_USE_AMGX 2020-04-21 17:52:50 -07:00
Arturo Vargas ad6c85ef27 added amg_pcg.json 2020-04-21 17:02:52 -07:00
Arturo Vargas ce7db4a375 clean up build system 2020-04-21 15:39:30 -07:00
Arturo Vargas 06c376a0cf clean up pass for cmake 2020-04-21 14:21:09 -07:00
camierjs 7acd97bf7f Merge branch 'master' into okina-mmu-mflags 2020-04-21 14:00:13 -07:00
Vargas a9bfe83d12 make style 2020-04-20 18:12:35 -07:00
Arturo Vargas 35852c008e removed print statements from amgx wrapper, init commit of perf driver 2020-04-20 18:09:38 -07:00
camierjs 859bc2c483 Merge branch 'master' into okina-mmu-mflags 2020-04-16 15:43:36 -07:00
Arturo Vargas 3e1622e640 initial sketch of multi-mpi/gpu support 2020-04-13 15:27:00 -07:00
Arturo Vargas 3bcf2021cf inital pass at wrapper for multiple gpus, TODO clean up 2020-04-13 15:05:03 -07:00
Andrew T. Barker 9b94ac9eb4 Encapsulate AMGX calls into an object. 2020-04-08 11:57:02 -07:00
Arturo Vargas c65002a263 amgx 1 gpu example 2020-03-30 12:03:04 -07:00
camierjs 475a876f56 Merge branch 'master' into okina-mmu-mflags 2020-03-30 10:05:15 -07:00
camierjs 05fb690baa Merge branch 'master' into okina-mmu-mflags 2020-03-20 14:37:47 -07:00
camierjs 41384afba5 Merge branch 'master' into okina-mmu-mflags 2020-03-18 17:23:49 -07:00
camierjs b37fcb9525 Merge branch 'master' into okina-mmu-mflags 2020-03-15 14:42:51 -07:00
Vladimir Tomov b737960971 Minor. 2020-03-06 16:10:22 -08:00
camierjs ffd086e263 Add initial memory flags h_rw and d_rw 2020-02-26 18:08:38 -08:00
Vladimir Tomov e39b468240 Solution transfer between grids. 2020-02-12 14:54:30 -08:00
Ben Southworth bb28ac7435 Added three ESDIRK schemes 2019-06-18 07:49:15 -07:00
Veselin Dobrev ac6275e096 A small fix in config/sample-runs.sh 2018-09-27 16:32:05 -07:00
Veselin Dobrev 7967070bde A small tweak in config/sample-runs.sh 2018-09-27 13:17:52 -07:00
Veselin Dobrev 1a560b9627 In the tests/ directory, add a test for the parallel mesh format.
Fixed an issue when loading VisItDataCollection with Load.
2018-09-18 14:31:17 -07:00
Veselin Dobrev 41c38fa6e5 Update config/sample-runs.sh:
Remove the "convergence" group from the "groups_serial" variable
because there are no serial tests in it.
2018-09-13 22:19:46 -07:00
Veselin Dobrev d2dae423e1 Create directory tests with one test: convergence/diffusion.cpp
Also, added the new test to the config/sample-runs.sh script.
2018-09-13 21:02:36 -07:00
382 changed files with 36937 additions and 18055 deletions
+61
View File
@@ -0,0 +1,61 @@
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 30
# Number of days of inactivity before an Issue or Pull Request with the stale
# label is closed. Set to false to disable. If disabled, issues still need to
# be closed manually, but will remain marked as stale.
daysUntilClose: 7
# Only issues or pull requests with all of these labels are check if stale.
# Defaults to `[]` (disabled)
onlyLabels: []
# Issues or Pull Requests with these labels will never be considered stale. Set
# to `[]` to disable
exemptLabels:
- bug
- WIP
- ready-for-review
- in-review
- in-next
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false
# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false
# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
:warning: This issue or PR has been automatically marked as stale because it has not
had any activity in the last month. *If no activity occurs in the next week, it will
be automatically closed.* Thank you for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30
# Limit to only `issues` or `pulls`
# only: issues
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
# pulls:
# daysUntilStale: 30
# markComment: >
# This pull request has been automatically marked as stale because it has not had
# recent activity. It will be closed if no further activity occurs. Thank you
# for your contributions.
# issues:
# exemptLabels:
# - confirmed
+74 -52
View File
@@ -102,28 +102,29 @@ examples/ex25.mesh
examples/ex25-*.gf
examples/ex25p-*.*
examples/sundials/ex9
examples/sundials/ex1[06]
examples/sundials/ex9p
examples/sundials/ex1[06]p
examples/amgx/ex1
examples/amgx/ex1p
examples/amgx/.logamgx
examples/amgx/refined.mesh
examples/amgx/sol.gf
examples/amgx/mesh.*
examples/amgx/sol.*
examples/sundials/ex9.mesh
examples/sundials/ex9-mesh.*
examples/sundials/ex9-init.*
examples/sundials/ex9-final.*
examples/sundials/Example9*
examples/sundials/deformed.*
examples/sundials/velocity.*
examples/sundials/elastic_energy.*
examples/sundials/ex16.mesh
examples/sundials/ex16-mesh.*
examples/sundials/ex16-init.*
examples/sundials/ex16-final.*
examples/sundials/Example16*
examples/gingko/ex1
examples/gingko/refined.mesh
examples/gingko/sol.gf
examples/gingko/mesh.*
examples/gingko/sol.*
examples/hiop/ex9
examples/hiop/ex9p
examples/hiop/ex9.mesh
examples/hiop/ex9-mesh.*
examples/hiop/ex9-init.*
examples/hiop/ex9-final.*
examples/petsc/ex[1-69]p
examples/petsc/ex1[0-1]p
examples/petsc/mesh.*
examples/petsc/sol.*
examples/petsc/sol_p.*
@@ -141,28 +142,51 @@ examples/petsc/mode_*
examples/pumi/ex1
examples/pumi/ex[126]p
examples/hiop/ex9.mesh
examples/hiop/ex9-mesh.*
examples/hiop/ex9-init.*
examples/hiop/ex9-final.*
examples/pumi/refined.mesh
examples/pumi/sol.gf
examples/pumi/mesh.*
examples/pumi/sol.*
examples/pumi/displaced.mesh
examples/sundials/ex9
examples/sundials/ex1[06]
examples/sundials/ex9p
examples/sundials/ex1[06]p
examples/sundials/ex9.mesh
examples/sundials/ex9-mesh.*
examples/sundials/ex9-init.*
examples/sundials/ex9-final.*
examples/sundials/Example9*
examples/sundials/deformed.*
examples/sundials/velocity.*
examples/sundials/elastic_energy.*
examples/sundials/ex16.mesh
examples/sundials/ex16-mesh.*
examples/sundials/ex16-init.*
examples/sundials/ex16-final.*
examples/sundials/Example16*
examples/superlu/ex1p
examples/superlu/mesh.*
examples/superlu/sol.*
miniapps/adjoint/cvsRoberts_ASAi_dns
miniapps/adjoint/adjoint_advection_diffusion
miniapps/electromagnetics/volta
miniapps/electromagnetics/tesla
miniapps/electromagnetics/maxwell
miniapps/electromagnetics/joule
miniapps/electromagnetics/Volta-AMR*
miniapps/electromagnetics/Tesla-AMR*
miniapps/electromagnetics/Maxwell-Parallel*
miniapps/electromagnetics/Joule_*
miniapps/gslib/field-diff
miniapps/gslib/field-interp
miniapps/gslib/findpts
miniapps/gslib/pfindpts
miniapps/meshing/mobius-strip
miniapps/meshing/klein-bottle
miniapps/meshing/toroid
@@ -175,7 +199,7 @@ miniapps/meshing/mesh-optimizer
miniapps/meshing/pmesh-optimizer
miniapps/meshing/minimal-surface
miniapps/meshing/pminimal-surface
miniapps/meshing/polar-nc
miniapps/meshing/mobius-strip.mesh
miniapps/meshing/klein-bottle.mesh
miniapps/meshing/toroid-*.mesh
@@ -187,10 +211,27 @@ miniapps/meshing/extruder.mesh
miniapps/meshing/trimmer.mesh
miniapps/meshing/optimized*
miniapps/meshing/perturbed*
miniapps/meshing/polar-nc.mesh
miniapps/navier/navier_mms
miniapps/navier/navier_kovasznay
miniapps/navier/navier_tgv
miniapps/navier/navier_shear
miniapps/navier/navier_3dfoc
miniapps/navier/tgv_out*.txt
miniapps/navier/*_output
miniapps/nurbs/nurbs_ex1
miniapps/nurbs/nurbs_ex1p
miniapps/nurbs/nurbs_ex11p
miniapps/nurbs/refined.mesh
miniapps/nurbs/mesh.*
miniapps/nurbs/sol.*
miniapps/nurbs/mode_*
miniapps/nurbs/Example1*
miniapps/performance/ex1
miniapps/performance/ex1p
miniapps/performance/refined.mesh
miniapps/performance/mesh.*
miniapps/performance/sol.*
@@ -208,7 +249,6 @@ miniapps/toys/rubik
miniapps/toys/snake
miniapps/toys/lissajous
miniapps/toys/mondrian
miniapps/toys/snake-init.mesh
miniapps/toys/snake-user.mesh
miniapps/toys/snake-joined.mesh
@@ -223,41 +263,23 @@ miniapps/toys/lissajous.mesh
miniapps/toys/lissajous.gf
miniapps/toys/mondrian.mesh
miniapps/nurbs/nurbs_ex1
miniapps/nurbs/nurbs_ex1p
miniapps/nurbs/nurbs_ex11p
miniapps/nurbs/refined.mesh
miniapps/nurbs/mesh.*
miniapps/nurbs/sol.*
miniapps/nurbs/mode_*
miniapps/nurbs/Example1*
miniapps/gslib/field-diff
miniapps/gslib/findpts
miniapps/gslib/pfindpts
miniapps/navier/navier_mms
miniapps/navier/navier_kovasznay
miniapps/navier/navier_tgv
miniapps/navier/navier_shear
miniapps/navier/navier_3dfoc
miniapps/navier/tgv_out*.txt
miniapps/navier/*_output
miniapps/adjoint/cvsRoberts_ASAi_dns
miniapps/adjoint/adjoint_advection_diffusion
# Unit test binary and outputs
tests/unit/output_meshes
tests/unit/unit_tests
tests/unit/punit_tests
tests/unit/sedov_tests_*
tests/unit/psedov_tests_*
tests/unit/ceed_tests
# Test script output
tests/scripts/*.err
tests/scripts/*.out
tests/scripts/*.msg
# Other tests
tests/convergence/rates
tests/convergence/prates
tests/par-mesh-format/ex1p
# VPATH builds
build-*/*
+19 -3
View File
@@ -71,15 +71,21 @@ stages:
- build
- test
- deallocate
- lassen_build
- lassen_test
- baseline_check
- baseline_publish
# The setup job in setup stage dont rely on MFEM git repo. It prepares a
# The setup job in setup stage don't rely on MFEM git repo. It prepares a
# pipeline-wide working directory downloading/updating external repos.
# TODO: updating tests and tpls is not necessary anymore since pipelines are
# now using unique directories so repo are never shared with another pipeline.
# This is not memory efficient (we keep a lot of data), hence this reminder.
.setup:
# Setup
setup:
tags:
- shell
- quartz
stage: setup
variables:
GIT_STRATEGY: none
@@ -100,6 +106,15 @@ stages:
before_script:
- module load gcc/6.1.0
# On lassen
.with_gcc_8_3_1:
variables:
TOOLCHAIN: gcc_8_3_1
CXX: g++
CC: gcc
before_script:
- module load gcc/8.3.1
.with_gcc_4_9_3:
variables:
TOOLCHAIN: gcc_4_9_3
@@ -211,7 +226,7 @@ stages:
echo "${BASELINE_TEST}: Differences found, replacement file generated"
cp ${_base_out} ${CI_PROJECT_DIR}/${ARTIFACTS_DIR}/${_base_out}.txt
fi
# _base_diff wont even exist if there is no difference.
# _base_diff won't even exist if there is no difference.
if [[ -f ${_base_diff} ]]
then
echo "${BASELINE_TEST}: Relevant differences (filtered diff) ..."
@@ -290,3 +305,4 @@ stages:
# The list on jobs is defined in machine-specific files.
include:
- local: .gitlab/quartz.yml
- local: .gitlab/lassen.yml
+57
View File
@@ -0,0 +1,57 @@
# Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
# at the Lawrence Livermore National Laboratory. All Rights reserved. See files
# LICENSE and NOTICE for details. LLNL-CODE-806117.
#
# This file is part of the MFEM library. For more information and source code
# availability visit https://mfem.org.
#
# MFEM is free software; you can redistribute it and/or modify it under the
# terms of the BSD-3 license. We welcome feedback and contributions, see file
# CONTRIBUTING.md for details.
# GitLab pipelines configurations for the Lassen machine at LLNL
.on_lassen:
tags:
- shell
- lassen
variables:
PLAT: lassen
# Build MFEM
build_mfem_ser_lassen:
extends: [.with_gcc_8_3_1, .on_lassen]
needs: [setup]
stage: lassen_build
script:
- mkdir -p ${BUILD_PATH}
- cp -r ${CI_PROJECT_DIR} ${BUILD_PATH}/${CI_PROJECT_NAME}_lassen_ser
- cd ${BUILD_PATH}/${CI_PROJECT_NAME}_lassen_ser
- lalloc 1 -W 5 -q pdebug make -j cuda CUDA_ARCH=sm_70
build_mfem_debug_ser_lassen:
extends: [.with_gcc_8_3_1, .on_lassen]
needs: [setup]
stage: lassen_build
script:
- mkdir -p ${BUILD_PATH}
- cp -r ${CI_PROJECT_DIR} ${BUILD_PATH}/${CI_PROJECT_NAME}_lassen_ser_debug
- cd ${BUILD_PATH}/${CI_PROJECT_NAME}_lassen_ser_debug
- lalloc 1 -W 5 -q pdebug make -j cuda MFEM_DEBUG="YES" CPPFLAGS=-O2 CUDA_ARCH=sm_70
# Sanity check
sanitycheck_mfem_ser_lassen:
extends: [.with_gcc_8_3_1, .on_lassen]
stage: lassen_test
needs: [build_mfem_ser_lassen]
script:
- cd ${BUILD_PATH}/${CI_PROJECT_NAME}_lassen_ser
- lalloc 1 -W 15 -q pdebug make -j test
sanitycheck_mfem_debug_ser_lassen:
extends: [.with_gcc_8_3_1, .on_lassen]
stage: lassen_test
needs: [build_mfem_debug_ser_lassen]
script:
- cd ${BUILD_PATH}/${CI_PROJECT_NAME}_lassen_ser_debug
- lalloc 1 -W 30 -q pdebug make -j test
-4
View File
@@ -22,10 +22,6 @@
MAKE_PAR: 6
BASELINE_PAR: 18
# Setup
setup_quartz:
extends: [.setup, .on_quartz]
# Allocate
allocate_quartz:
variables:
+219 -138
View File
@@ -5,12 +5,142 @@
| | | | | || _|| __/| | | | | |
|_| |_| |_||_| \___||_| |_| |_|
http://mfem.org
https://mfem.org
Version 4.1.1 (development)
Version 4.2.1 (development)
===========================
- Added interface to MUMPS direct solver. Its usage is demonstrated in ex25p.
See http://mumps.enseeiht.fr/ for more details. Supported versions >= 5.1.1.
- Added three ESDIRK time integrators: implicit trapezoid rule, L-stable
ESDIRK-32, and A-stable ESDIRK-33.
- Added a "scaled Jacobian" visualization option in the Mesh Explorer miniapp to
help identify elements with poor mesh quality.
- Upgraded the Catch unit test framework from version 2.13.0 to version 2.13.2.
- Implemented a filter method for the Navier miniapp to stabilize highly
turbulent flows in direct numerical simulation.
Version 4.2, released on October 30, 2020
=========================================
High-Performance Computing
--------------------------
- Added support for explicit vectorization in the high-performance templated
code, which can now take advantage of specific classes on the following
architectures:
* x86 (SSE/AVX/AVX2/AVX512),
* Power8 & Power9 (VSX),
* BG/Q (QPX).
These are disabled by default, but can be enabled with MFEM_USE_SIMD=YES.
See the new file linalg/simd.hpp and the new directory linalg/simd.
- Added an Element Assembly mode compatible with GPU device execution for H1 and
L2 spaces in the mass, convection, diffusion, transpose, and the face DG trace
integrators. See option '-ea' in Example 9. When enabled, this assembly level
stores independent dense matrices for the elements, and independent dense
matrices for the faces in the DG case.
- Added a Full Assembly mode compatible with GPU device execution. This assembly
level builds on top of the Element Assembly kernels to compute a global sparse
matrix. All integrators supported by element assembly are also supported by
full assembly. See the '-fa' option in Example 9.
- Optimized the AMD/HIP kernel support and enabled HIP support in the libCEED
integration. This is now available via the "ceed-hip" device backend.
- Improved the libCEED integration to support:
* AssemblyLevel::NONE for Mass, Diffusion, VectorMass, and VectorDiffusion
Integrators. This level computes the full operator evaluation "on the fly".
* VectorMassIntegrator and VectorDiffusionIntegrator.
* All types of (scalar) Coefficients.
- Added partial assembly / device support for:
* H(div) bilinear forms and VectorFEDivergenceIntegrator.
* BlockOperator, see the updated Example 5.
* Complex operators, see the updated Example 22.
* Chebyshev accelerated polynomial smoother.
* Convergent diagonal preconditioning on non-conforming adaptively refined
meshes, see Example 6/6p.
- Added CUDA support for:
* Sparse matrix-vector multiplication with cuSPARSE,
* SUNDIALS ODE integrators, see updated SUNDIALS modification of Example 9/9p.
Linear and nonlinear solvers
----------------------------
- Added a new solver class for simple integration with NVIDIA's multigrid
library, AmgX. The AmgX class is designed to work as a standalone solver or
preconditioner for existing MFEM solvers. It uses MFEM's sparse matrix format
for serial runs and the HypreParMatrix format for parallel runs. The new
solver may be configured to run with one GPU per MPI rank or with more MPI
ranks than GPUs. In the latter case, matrices and vectors are consolidated to
ranks communicating with the GPUs and the solution is then broadcasted.
Although CUDA is required to build, the AmgX support is compatible with the
MFEM CPU device configuration. The examples/amgx folder illustrates how to
integrate AmgX in existing MFEM applications. The AmgX solver class is
partially based on: "AmgXWrapper: An interface between PETSc and the NVIDIA
AmgX library", by Pi-Yueh Chuang and Lorena A. Barba, doi:10.21105/joss.00280.
- Added initial support for geometric h- and p-multigrid preconditioners for
matrix-based and matrix-free discretizations with basic GPU capability, see
Example 26/26p.
- Added support for the CVODES package in SUNDIALS which provides ODE solvers
with sensitivity analysis capabilities. See the CVODESSolver class and the new
adjoint miniapps in the miniapps/adjoint directory.
- Added an interface to the MKL CPardiso solver, an MPI-parallel sparse direct
solver developed by Intel. See Example 11p for an illustration of its usage.
- Added support for the SLEPc eigensolver package, https://slepc.upv.es.
- Upgraded SuperLU interface to use SuperLU_DIST 6.3.1. Added a simple SuperLU
example in the new directory examples/superlu.
- Extended the KINSOL (SUNDIALS) nonlinear solver interface to support the
Jacobian-free Newton-Krylov method. A usage example is shown in Example 10p.
- Block arrays of parallel matrices can now be merged into a single parallel
matrix with the function HypreParMatrixFromBlocks. This could be useful for
solving block systems with parallel direct solvers such as STRUMPACK.
- Added wrappers for hypre's flexible GMRES solver and the new parallel ILU
preconditioner. The latter requires hypre version 2.19.0 or later.
Discretization improvements
---------------------------
- Extended GSLIB-FindPoints integration to support simplices and interpolation
of functions from L2, H(div) and H(curl) spaces.
- Added support for computing asymptotic error estimates and convergence rates
for the whole de Rham sequence based on the new class ConvergenceStudy and new
member methods in GridFunction and ParGridFunction. See the rates.cpp file in
the tests/convergence directory for sample usage.
- Extended the GetValue and GetVectorValue methods of GridFunction to support
evaluation on boundary elements and, in the continuous field case, arbitrary
mesh edges and faces. This requires passing an ElementTransformation argument.
- Added support for matrix-free interpolation and restriction operators between
continuous H1 finite element spaces of different order on the same mesh or
with the same order on uniformly refined meshes.
- The Coefficient classes based on a C-function pointer (FunctionCoefficient,
VectorFunctionCoefficient and MatrixFunctionCoefficient) now use the more
general std::function class template. This allows the classes to be backward
compatible (i.e. they can still work with C-functions) and, in addition,
support any "callable", e.g. lambda functions.
- Non-conforming meshes are now supported with block nonlinear forms. See the
updated Example 19/19p.
Meshing improvements
--------------------
- The graph linear ordering library Gecko, previously an external dependency, is
@@ -18,124 +148,55 @@ Meshing improvements
always available. The interface has also been improved, see for example the
Mesh Explorer miniapp.
- Improved Gmsh reader (version 2.2), which now supports both high-order and
periodic meshes. Segments, triangles, quadrilaterals, and tetrahedra are
supported up to order 10. Wedges and hexahedra are supported up to order 9.
For sample periodic meshes, see the periodic*.msh files in the data directory.
- Added support for finite difference-based gradient and Hessian approximation
in the TMOP mesh optimization algorithms. This improves the accuracy of the
Hessian for r-adaptivity using discrete fields, and allows use of skewness
and orientation based metrics.
- Improved Gmsh reader (version 2.2), which now supports both high-order and
periodic meshes. Segments, triangles, quadrilaterals, and tetrahedra are
supported up to order 10. Wedges and hexahedra are supported up to order 9.
For sample periodic meshes, see the periodic*.msh files in the data directory.
- Added support for construction of (serial) non-conforming meshes. Hanging
nodes can be marked with Mesh::AddVertexParents when building the mesh with
the "init" constructor. The usage is demonstrated in a new meshing miniapp,
Polar NC, which generates meshes that are non-conforming from the start.
- Added support for r-adaptivity with more than one discrete field. This allows
the user to specify different discrete functions for controlling the
size, aspect-ratio, orientation, and skew of elements in the mesh.
the user to specify different discrete functions for controlling the size,
aspect-ratio, orientation, and skew of elements in the mesh.
- Added TMOP capability for approximate tangential mesh relaxation. Added
support and examples for using TMOP on mixed meshes.
- Added complete action of the TMOP Integrator to account for the spatial
derivatives of discrete and analytic targets.
Performance improvements
------------------------
- Added support for explicit vectorization in the high-performance templated
code, which can now take advantage of specific intrinsics classes on the
following architectures:
- x86 (SSE/AVX/AVX2/AVX512),
- Power8 & Power9 (VSX),
- BG/Q (QPX).
These are disabled by default, and can be enabled with MFEM_USE_SIMD=YES.
See the new file linalg/simd.hpp and the new directory linalg/simd.
Improved GPU capabilities
-------------------------
- Added support for Chebyshev accelerated polynomial smoother on GPU.
- Optimized AMD/HIP kernel support.
- Added a Full Assembly mode compatible with Device kernel execution. This
assembly level builds on top of the current Element Assembly kernels to
compute a global sparse matrix. All integrators supported by element assembly
are also supported by full assembly. See the '-fa' option in Example 9.
- Added CUDA support for sparse matrix-vector multiplication with cuSPARSE.
- Added support for BlockOperator on GPU. See the updated Example 5.
Discretization improvements
---------------------------
- Added support for matrix-free interpolation and restriction operators between
continuous H1 finite element spaces of different order on the same mesh or
with the same order on uniformly refined meshes.
- Added support for simplices in GSLIB-FindPoints.
- Added support for H1 and L2 element matrix assembly in the mass, convection,
diffusion, transpose, and the face DG trace integrators. This is compatible
with GPU device execution and is illustrated in Example 9/9p, see the option
'-ea'. When enabled, this level of assembly stores independent dense matrices
for the elements, and independent dense matrices for the faces in the DG case.
- Added new partial assembly kernels for H(div) bilinear forms, as well as
VectorFEDivergenceIntegrator.
- Improved the documentation of the GridFunction GetValue and GetVectorValue
methods. Expanded the GetValue and GetVectorValue methods which accept an
ElementTransformation argument to support evaluation on boundary elements
and, in the continuous field case, arbitrary mesh edges and faces.
- Added new coefficient and vector coefficient classes for QuadratureFunctions.
Additionally, new LinearForm integrators were also added which make use of
these new QuadratureFunction coefficient classes.
- Added support face integrals on the boundaries of NURBS meshes.
Linear and nonlinear solvers
----------------------------
- Added power method to iteratively estimate the largest eigenvalue and the
corresponding eigenvector of an operator.
- Added initial support for h- and p-multigrid solvers and preconditioners for
matrix-based and matrix-free discretizations with basic GPU capability.
- Added a new IterativeSolverMonitor class that allows to monitor the residual
and solution during the solving process of an IterativeSolver after every
iteration.
- Added support for the CVODES package in SUNDIALS which provides ODE
solvers with sensitivity analysis capabilities. See the CVODESSolver
class and the new adjoint miniapps below.
- Block arrays of parallel matrices can now be merged into a single parallel
matrix with the function HypreParMatrixFromBlocks. This could be useful for
solving block systems with parallel direct solvers such as STRUMPACK.
- In SLISolver, changed the residual inner product from (Br,r) to (Br,Br) so the
solver can work with non-SPD preconditioner B.
- Added support for the SLEPc eigensolver package.
- Additional TMOP improvements:
* Capability for approximate tangential mesh relaxation.
* Support and examples for using TMOP on mixed meshes.
* Complete integrator action accounting for spatial derivatives of discrete
and analytic targets.
New and updated examples and miniapps
-------------------------------------
- Added a new example, Example 25/25p, to demonstrate the use of a Perfectly
Matched Layer (PML) for the simulation of electromagnetic wave propagation.
The example defines and solves several indefinite Maxwell problems.
- Added a new Example 26/26p to demonstrate the construction of a matrix-free
geometric and p-multigrid preconditioner for the Laplace problem.
- Added a new example, Example 27/27p, to demonstrate the enforcement of various
boundary conditions with the Laplace operator. The example shows the procedure
for applying Dirichlet, Neumann (both homogeneous and inhomogeneous), Robin,
and periodic boundary conditions with either H1 or DG discretizations.
- Added a new miniapp, Navier, that solves the time-dependent Navier-Stokes
equations of incompressible fluid dynamics. See the miniapps/navier directory
for more details.
- Added a new miniapps/adjoint directory with two miniapps demonstrating how to
- Added 10 new example codes:
* Example 25/25p demonstrates the use of a Perfectly Matched Layer (PML) for
electromagnetic wave propagation (indefinite Maxwell).
* Example 26/26p shows how to construct matrix-free geometric and p-multigrid
preconditioner for the Laplace problem.
* Example 27/27p demonstrates the enforcement of Dirichlet, Neumann, Robin,
and periodic boundary conditions with either H1 or DG Laplace problems.
* Versions of Example 1/1p in examples/amgx demonstrating the use of AmgX,
to solve the Laplace problem with AMG preconditioning on GPUs.
* A version of Example 11p in examples/petsc demonstrating the use of SLEPc,
to solve the Laplace eigenproblem with shift-and-invert transformation.
* A version of Example 1 in examples/superlu demonstrating the use of SuperLU
to solve the Laplace problem.
- Added a new Field Interpolation miniapp in miniapps/gslib that demonstrates
transfer of grid functions between different meshes using GSLIB-FindPoints.
- Added 2 miniapps in the new miniapps/adjoint directory demonstrating how to
solve adjoint problems in MFEM using the CVODES package in SUNDIALS. Both of
these miniapps require the MFEM_USE_SUNDIALS configuration option.
* The cvsRoberts_ASAi_dns miniapp solves a backward adjoint problem for a
@@ -143,33 +204,31 @@ New and updated examples and miniapps
* The adjoint_advection_diffusion miniapp solves a backward adjoint problem
for an advection diffusion PDE, evaluating adjoint quadratures in parallel.
- Ported Example 11p to SLEPc, to demonstrate solving the Laplace eigenvalue
equation with the shift-and-invert spectral transformation method.
- Added 4 additional meshing miniapps:
* The Minimal Surface miniapp solves Plateau's problem: the Dirichlet problem
for the minimal surface equation.
* The Twist miniapp demonstrates how to stitch together opposite surfaces of a
mesh to create a topologically periodic mesh.
* The Trimmer miniapp trims away parts of a mesh based on element attributes.
* Polar NC shows the construction of polar non-conforming meshes.
- Added a simple meshing miniapp, Twist, which demonstrates MFEM's strategy of
stitching together opposite surfaces of a mesh to create a topologically
periodic mesh.
- Several examples and miniapps were updated to include:
* Full and element assembly support in Example 9/9p.
* Partial assembly with diagonal preconditioning in Examples 4/4p/5/5p/22/22p.
* Diagonal preconditioner in Example 6/6p for partial assembly with AMR.
* The option to plot a function in Mesh Explorer.
* A new test problem showing a mixed bilinear form for H1, H(curl), H(div) and
L2, with partial assembly support in Example 24/24p.
* Weak Dirichlet boundary conditions (Nitsche) to the NURBS miniapp.
- Added a new meshing miniapp, Minimal Surface, which solves Plateau's problem:
the Dirichlet problem for the minimal surface equation.
Data management and Visualization
---------------------------------
- Added support for ADIOS2 for parallel I/O with ParaView visualization. See
Examples 5, 9, 12, 16. The classes adios2stream and ADIOS2DataCollection
provide the interface to generate ADIOS2 Binary Pack (BP4) directory datasets.
- Added partial assembly support to Example 4/4p and Example 5/5p, with diagonal
preconditioning.
- Added full assembly support in Example 9/9p.
- Added a new test problem in Example 24/24p, demonstrating a mixed bilinear
form for H1, H(curl), H(div) and L_2, with partial assembly support.
- Added weak Dirichlet boundary conditions (Nitsche) to the NURBS miniapp.
- Added a simple mesh editing miniapp, Trimmer, which trims away portions of a
mesh based on element attributes. Any newly exposed boundary elements are
assigned attribute numbers related to the trimmed element attributes.
- Added device support in Example 5/5p.
- Added the option to plot a function in Mesh Explorer.
- Added VTU output of boundary elements and attributes and parallel VTU (PVTU)
output of parallel meshes for visualization using ParaView.
Improved testing
----------------
@@ -178,17 +237,39 @@ Improved testing
triggered only by LLNL developers, see .gitlab-ci.yml, the .gitlab directory
and the updated CONTRIBUTING.md file.
- Added additional testing for convergence, the parallel mesh I/O, and for the
libCEED integration in MFEM in the tests/ directory.
- Upgraded the Catch unit test framework from version 1.6.1 to version 2.13.0.
Miscellaneous
-------------
- Added support for ADIOS2 for parallel I/O with ParaView visualization. The
classes adios2stream and ADIOS2DataCollection are introduced in mfem as the
interfaces to generate ADIOS2 Binary Pack (BP4) directory datasets for the
entire spatial and temporal data. In addition, ADIOS2 allows for setting a
user-defined number of data substreams/subfiles. See examples 5, 9, 12, 16.
- Renamed "Backend::DEBUG" to "Backend::DEBUG_DEVICE" to avoid conflicts,
as DEBUG is sometimes used as a macro.
- Added a new IterativeSolverMonitor class that allows to monitor the residual
and solution with an IterativeSolver after every iteration.
- Added power method to iteratively estimate the largest eigenvalue and the
corresponding eigenvector of an operator.
- Added support for face integrals on the boundaries of NURBS meshes.
- In SLISolver, changed the residual inner product from (Br,r) to (Br,Br) so the
solver can work with non-SPD preconditioner B.
- Added new coefficient and vector coefficient classes for QuadratureFunctions,
with new LinearForm integrators which use them.
- The integration order used in the ComputeLpError and ComputeElementLpError
methods of class GridFunction has been increased.
- Change the IntegrationRule inside VectorDiffusionIntegrator to use the same
quadrature as DiffusionIntegrator.
- The README.html files previously included in several source directories have
been removed. Use the corresponding pages at mfem.org instead.
- Various other simplifications, extensions, and bugfixes in the code.
@@ -521,7 +602,7 @@ Other meshing improvements
follows precisely the paper:
D. Arnold, A. Mukherjee, and L. Pouly, "Locally Adapted Tetrahedral Meshes
Using Bisection", SIAM J. Sci. Comput. 22 (2000), 431448.
Using Bisection", SIAM J. Sci. Comput. 22 (2000), 431-448.
This guarantees that the shape regularity of the elements will be preserved
under refinement.
@@ -666,7 +747,7 @@ Discretization improvements
- New specialized time integrators: symplectic integrators of orders 1-4 for
systems of first order ODEs derived from a Hamiltonian and generalized-alpha
ODE solver for the filtered NavierStokes equations with stabilization. See
ODE solver for the filtered Navier-Stokes equations with stabilization. See
classes SIASolver and GeneralizedAlphaSolver in linalg/ode.hpp.
- Inherit finite element classes from the new base class TensorBasisElement,
@@ -1156,7 +1237,7 @@ New and improved linear solvers
it can only be enabled along with MFEM_USE_MPI. When MFEM is configured with
MFEM_USE_SUPERLU, one also needs to alter the version of METIS, since SuperLU
requires ParMETIS (which comes packaged with a serial version of METIS). See
http://http://crd-legacy.lbl.gov/~xiaoye/SuperLU for SuperLU_DIST details.
http://crd-legacy.lbl.gov/~xiaoye/SuperLU for SuperLU_DIST details.
- Added a wrapper for the KLU solver in SuiteSparse see
http://faculty.cse.tamu.edu/davis/suitesparse.html for details of KLU.
+31 -10
View File
@@ -14,7 +14,7 @@ set(USER_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/config/user.cmake" CACHE PATH
"Path to optional user configuration file.")
# Require C++11 and disable compiler-specific extensions
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
@@ -50,7 +50,7 @@ project(mfem NONE)
# Current version of MFEM, see also `makefile`.
# mfem_VERSION = (string)
# MFEM_VERSION = (int) [automatically derived from mfem_VERSION]
set(${PROJECT_NAME}_VERSION 4.1.1)
set(${PROJECT_NAME}_VERSION 4.2.1)
# Prohibit in-source build
if (${PROJECT_SOURCE_DIR} STREQUAL ${PROJECT_BINARY_DIR})
@@ -185,7 +185,7 @@ if (MFEM_USE_MPI)
endif()
endif()
else()
set(PKGS_NEED_MPI SUPERLU PETSC SLEPC STRUMPACK PUMI)
set(PKGS_NEED_MPI SUPERLU MUMPS PETSC SLEPC STRUMPACK PUMI)
foreach(PKG IN LISTS PKGS_NEED_MPI)
if (MFEM_USE_${PKG})
message(STATUS "Disabling package ${PKG} - requires MPI")
@@ -240,12 +240,14 @@ endif()
# SUNDIALS
if (MFEM_USE_SUNDIALS)
if (NOT MFEM_USE_MPI)
find_package(SUNDIALS REQUIRED NVector_Serial CVODES ARKODE KINSOL)
else()
find_package(SUNDIALS REQUIRED
NVector_Serial NVector_Parallel NVector_ParHyp CVODES ARKODE KINSOL)
set(SUNDIALS_COMPONENTS CVODES ARKODE KINSOL NVector_Serial)
if (MFEM_USE_MPI)
list(APPEND SUNDIALS_COMPONENTS NVector_Parallel NVector_MPIPlusX)
endif()
if (MFEM_USE_CUDA)
list(APPEND SUNDIALS_COMPONENTS NVector_Cuda)
endif()
find_package(SUNDIALS REQUIRED ${SUNDIALS_COMPONENTS})
endif()
# Mesquite
@@ -262,6 +264,15 @@ if (MFEM_USE_SUPERLU)
endif()
endif()
# MUMPS can only be enabled in parallel
if (MFEM_USE_MUMPS)
if (MFEM_USE_MPI)
find_package(MUMPS REQUIRED mumps_common pord)
else()
message(FATAL_ERROR " *** MUMPS requires that MPI be enabled.")
endif()
endif()
# STRUMPACK can only be enabled in parallel
if (MFEM_USE_STRUMPACK)
if (MFEM_USE_MPI)
@@ -295,6 +306,10 @@ if (MFEM_USE_CEED)
find_package(libCEED REQUIRED)
endif()
if (MFEM_USE_AMGX)
find_package(AMGX REQUIRED)
endif()
if (MFEM_USE_CONDUIT)
find_package(Conduit REQUIRED conduit relay blueprint )
endif()
@@ -346,6 +361,12 @@ if (MFEM_USE_ADIOS2)
find_package(ADIOS2 REQUIRED)
endif()
if (MFEM_USE_MKL_CPARDISO)
if (MFEM_USE_MPI)
find_package(MKL_CPARDISO REQUIRED MKL_SEQUENTIAL MKL_LP64 MKL_MPI_WRAPPER)
endif()
endif()
# MFEM_TIMER_TYPE
if (NOT DEFINED MFEM_TIMER_TYPE)
if (APPLE)
@@ -370,9 +391,9 @@ endif()
# integers, the METIS header (with 32-bit indices, as used by mfem) needs to
# be before SuiteSparse.
set(MFEM_TPLS MPI_CXX OPENMP BLAS LAPACK METIS HYPRE SuiteSparse SUNDIALS PETSC
SLEPC MESQUITE SuperLUDist STRUMPACK AXOM CONDUIT Ginkgo GNUTLS GSLIB NETCDF
SLEPC MESQUITE SuperLUDist MUMPS STRUMPACK AXOM CONDUIT Ginkgo GNUTLS GSLIB NETCDF
MPFR PUMI HIOP POSIXCLOCKS MFEMBacktrace ZLIB OCCA CEED RAJA UMPIRE ADIOS2
CUSPARSE)
CUSPARSE MKL_CPARDISO AMGX)
# Add all *_FOUND libraries in the variable TPL_LIBRARIES.
set(TPL_LIBRARIES "")
set(TPL_INCLUDE_DIRS "")
+46 -42
View File
@@ -1,12 +1,12 @@
<p align="center">
<a href="http://mfem.org/"><img alt="mfem" src="http://mfem.org/img/logo-300.png"></a>
<a href="https://mfem.org/"><img alt="mfem" src="https://mfem.org/img/logo-300.png"></a>
</p>
<p align="center">
<a href="https://github.com/mfem/mfem/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/badge/License-BSD-brightgreen.svg"></a>
<a href="https://travis-ci.org/mfem/mfem"><img alt="Build Status" src="https://travis-ci.org/mfem/mfem.svg?branch=master"></a>
<a href="https://ci.appveyor.com/project/mfem/mfem"><img alt="Build Status" src="https://ci.appveyor.com/api/projects/status/19non9sqm6msi2wy?svg=true"></a>
<a href="http://mfem.github.io/doxygen/html/index.html"><img alt="Doxygen" src="https://img.shields.io/badge/code-documented-brightgreen.svg"></a>
<a href="https://mfem.github.io/doxygen/html/index.html"><img alt="Doxygen" src="https://img.shields.io/badge/code-documented-brightgreen.svg"></a>
</p>
@@ -26,7 +26,7 @@ request (PR) toward the `mfem:master` branch to propose your contribution. If
you are planning significant code changes or have questions, you may want to
open an [issue](https://github.com/mfem/mfem/issues) before issuing a PR. In
addition to technical contributions, we are also interested in your results and
[simulation images](http://mfem.org/gallery/), which you can share via a pull
[simulation images](https://mfem.org/gallery/), which you can share via a pull
request in the [mfem/web](https://github.com/mfem/web) repo.
See the [Quick Summary](#quick-summary) section for the main highlights of our
@@ -51,7 +51,7 @@ back to them before issuing pull requests:
Contributing to MFEM requires knowledge of Git and, likely, finite elements. If
you are new to Git, see the [GitHub learning
resources](https://help.github.com/articles/git-and-github-learning-resources/).
To learn more about the finite element method, see our [FEM page](http://mfem.org/fem).
To learn more about the finite element method, see our [FEM page](https://mfem.org/fem).
*By submitting a pull request, you are affirming the [Developer's Certificate of
Origin](#developers-certificate-of-origin-11) at the end of this file.*
@@ -92,21 +92,22 @@ The MFEM source code has the following structure:
.
├── config
│ └── cmake
│ └── modules
│ └── ...
├── data
├── doc
│ └── web
│ └── examples
├── examples
│ ├── amgx
│ ├── ginkgo
│ ├── hiop
│ ├── petsc
│ ├── pumi
── sundials
── sundials
| └── superlu
├── fem
│ └── libceed
├── general
├── linalg
│ └── simd
├── mesh
├── miniapps
│ ├── adjoint
@@ -114,15 +115,17 @@ The MFEM source code has the following structure:
│ ├── electromagnetics
│ ├── gslib
│ ├── meshing
│ ├── navier
│ ├── nurbs
│ ├── performance
│ ├── tools
│ └── toys
└── tests
├── convergence
├── par-mesh-format
├── scripts
── unit
── ...
└── ...
── unit
── ...
```
#### Main directories and classes
@@ -132,24 +135,24 @@ classes implementing the finite element, mesh and linear algebra concepts
respectively.
- The main mesh classes are:
+ [`Mesh`](http://mfem.github.io/doxygen/html/classmfem_1_1Mesh.html)
+ [`NCMesh`](http://mfem.github.io/doxygen/html/classmfem_1_1NCMesh.html)
+ [`Element`](http://mfem.github.io/doxygen/html/classmfem_1_1Element.html)
+ [`ElementTransformation`](http://mfem.github.io/doxygen/html/classmfem_1_1ElementTransformation.html)
+ [`Mesh`](https://mfem.github.io/doxygen/html/classmfem_1_1Mesh.html)
+ [`NCMesh`](https://mfem.github.io/doxygen/html/classmfem_1_1NCMesh.html)
+ [`Element`](https://mfem.github.io/doxygen/html/classmfem_1_1Element.html)
+ [`ElementTransformation`](https://mfem.github.io/doxygen/html/classmfem_1_1ElementTransformation.html)
- The main finite element classes are:
+ [`FiniteElement`](http://mfem.github.io/doxygen/html/classmfem_1_1FiniteElement.html)
+ [`FiniteElementCollection`](http://mfem.github.io/doxygen/html/classmfem_1_1FiniteElement.html)
+ [`FiniteElementSpace`](http://mfem.github.io/doxygen/html/classmfem_1_1FiniteElementSpace.html)
+ [`GridFunction`](http://mfem.github.io/doxygen/html/classmfem_1_1GridFunction.html)
+ [`BilinearFormIntegrator`](http://mfem.github.io/doxygen/html/classmfem_1_1BilinearFormIntegrator.html) and [`LinearFormIntegrator`](http://mfem.github.io/doxygen/html/classmfem_1_1LinearFormIntegrator.html)
+ [`LinearForm`](http://mfem.github.io/doxygen/html/classmfem_1_1LinearFormIntegrator.html), [`BilinearForm`](http://mfem.github.io/doxygen/html/classmfem_1_1BilinearForm.html) and [`MixedBilinearForm`](http://mfem.github.io/doxygen/html/classmfem_1_1MixedBilinearForm.html)
+ [`FiniteElement`](https://mfem.github.io/doxygen/html/classmfem_1_1FiniteElement.html)
+ [`FiniteElementCollection`](https://mfem.github.io/doxygen/html/classmfem_1_1FiniteElement.html)
+ [`FiniteElementSpace`](https://mfem.github.io/doxygen/html/classmfem_1_1FiniteElementSpace.html)
+ [`GridFunction`](https://mfem.github.io/doxygen/html/classmfem_1_1GridFunction.html)
+ [`BilinearFormIntegrator`](https://mfem.github.io/doxygen/html/classmfem_1_1BilinearFormIntegrator.html) and [`LinearFormIntegrator`](https://mfem.github.io/doxygen/html/classmfem_1_1LinearFormIntegrator.html)
+ [`LinearForm`](https://mfem.github.io/doxygen/html/classmfem_1_1LinearFormIntegrator.html), [`BilinearForm`](https://mfem.github.io/doxygen/html/classmfem_1_1BilinearForm.html) and [`MixedBilinearForm`](https://mfem.github.io/doxygen/html/classmfem_1_1MixedBilinearForm.html)
- The main linear algebra classes and sources are
+ [`Operator`](http://mfem.github.io/doxygen/html/classmfem_1_1Operator.html) and [`BilinearForm`](http://mfem.github.io/doxygen/html/classmfem_1_1BilinearForm.html)
+ [`Vector`](http://mfem.github.io/doxygen/html/classmfem_1_1BilinearForm.html) and [`LinearForm`](http://mfem.github.io/doxygen/html/classmfem_1_1LinearForm.html)
+ [`DenseMatrix`](http://mfem.github.io/doxygen/html/classmfem_1_1DenseMatrix.html) and [`SparseMatrix`](http://mfem.github.io/doxygen/html/classmfem_1_1SparseMatrix.html)
+ Sparse [smoothers](http://mfem.github.io/doxygen/html/sparsesmoothers_8hpp.html) and linear [solvers](http://mfem.github.io/doxygen/html/solvers_8hpp.html)
+ [`Operator`](https://mfem.github.io/doxygen/html/classmfem_1_1Operator.html) and [`BilinearForm`](https://mfem.github.io/doxygen/html/classmfem_1_1BilinearForm.html)
+ [`Vector`](https://mfem.github.io/doxygen/html/classmfem_1_1BilinearForm.html) and [`LinearForm`](https://mfem.github.io/doxygen/html/classmfem_1_1LinearForm.html)
+ [`DenseMatrix`](https://mfem.github.io/doxygen/html/classmfem_1_1DenseMatrix.html) and [`SparseMatrix`](https://mfem.github.io/doxygen/html/classmfem_1_1SparseMatrix.html)
+ Sparse [smoothers](https://mfem.github.io/doxygen/html/sparsesmoothers_8hpp.html) and linear [solvers](https://mfem.github.io/doxygen/html/solvers_8hpp.html)
#### Parallel implementation
@@ -159,13 +162,13 @@ shared geometric entities between different tasks. The parallel source files
have a `p` prefix, e.g. `pmesh.cpp` vs. the serial `mesh.cpp`.
- The main parallel classes are
+ [`ParMesh`](http://mfem.github.io/doxygen/html/solvers_8hpp.html)
+ [`ParNCMesh`](http://mfem.github.io/doxygen/html/classmfem_1_1ParMesh.html)
+ [`ParFiniteElementSpace`](http://mfem.github.io/doxygen/html/classmfem_1_1ParFiniteElementSpace.html)
+ [`ParGridFunction`](http://mfem.github.io/doxygen/html/classmfem_1_1ParGridFunction.html)
+ [`ParBilinearForm`](http://mfem.github.io/doxygen/html/classmfem_1_1ParBilinearForm.html) and [`ParLinearForm`](http://mfem.github.io/doxygen/html/classmfem_1_1ParLinearForm.html)
+ [`HypreParMatrix`](http://mfem.github.io/doxygen/html/classmfem_1_1HypreParMatrix.html) and [`HypreParVector`](http://mfem.github.io/doxygen/html/classmfem_1_1HypreParVector.html)
+ [`HypreSolver`](http://mfem.github.io/doxygen/html/classmfem_1_1HypreSolver.html) and other [hypre classes](http://mfem.github.io/doxygen/html/hypre_8hpp.html)
+ [`ParMesh`](https://mfem.github.io/doxygen/html/solvers_8hpp.html)
+ [`ParNCMesh`](https://mfem.github.io/doxygen/html/classmfem_1_1ParMesh.html)
+ [`ParFiniteElementSpace`](https://mfem.github.io/doxygen/html/classmfem_1_1ParFiniteElementSpace.html)
+ [`ParGridFunction`](https://mfem.github.io/doxygen/html/classmfem_1_1ParGridFunction.html)
+ [`ParBilinearForm`](https://mfem.github.io/doxygen/html/classmfem_1_1ParBilinearForm.html) and [`ParLinearForm`](https://mfem.github.io/doxygen/html/classmfem_1_1ParLinearForm.html)
+ [`HypreParMatrix`](https://mfem.github.io/doxygen/html/classmfem_1_1HypreParMatrix.html) and [`HypreParVector`](https://mfem.github.io/doxygen/html/classmfem_1_1HypreParVector.html)
+ [`HypreSolver`](https://mfem.github.io/doxygen/html/classmfem_1_1HypreSolver.html) and other [hypre classes](https://mfem.github.io/doxygen/html/hypre_8hpp.html)
#### GPU and general device support
@@ -174,10 +177,10 @@ backends (CUDA, OCCA, RAJA, OpenMP, etc.) and an internal lightweight
device/host memory manager.
- The main device-relevant classes and sources are:
+ [`Device`](http://mfem.github.io/doxygen/html/device_8hpp.html)
+ [`MemoryManager`](http://mfem.github.io/doxygen/html/mem_manager_8hpp.html)
+ the [`MFEM_FORALL`](http://mfem.github.io/doxygen/html/forall_8hpp.html) macro
+ the [`cuda.hpp`](http://mfem.github.io/doxygen/html/cuda_8hpp.html) and [`occa.hpp`](http://mfem.github.io/doxygen/html/occa_8hpp.html) files
+ [`Device`](https://mfem.github.io/doxygen/html/device_8hpp.html)
+ [`MemoryManager`](https://mfem.github.io/doxygen/html/mem_manager_8hpp.html)
+ the [`MFEM_FORALL`](https://mfem.github.io/doxygen/html/forall_8hpp.html) macro
+ the [`cuda.hpp`](https://mfem.github.io/doxygen/html/cuda_8hpp.html) and [`occa.hpp`](https://mfem.github.io/doxygen/html/occa_8hpp.html) files
#### Utilities, building and documentation
- The `general/` directory contains C++ classes that serve as utilities for
@@ -186,7 +189,7 @@ device/host memory manager.
Makefile and the CMake build options.
- The `doc/` directory contains configuration for the Doxygen code documentation
that can either be built locally or browsed online at
http://mfem.github.io/doxygen/html/index.html.
https://mfem.github.io/doxygen/html/index.html.
#### Examples and tests
- `examples` and `miniapps` respectively gather simple and more fully-featured
@@ -195,7 +198,7 @@ device/host memory manager.
- The `tests/` directory contains a unit test suite and will later contain more
tests that run example codes.
See also the [code overview](http://mfem.org/code-overview/) section on the MFEM
See also the [code overview](https://mfem.org/code-overview/) section on the MFEM
website.
## GitHub Workflow
@@ -435,7 +438,6 @@ Before a PR can be merged, it should satisfy the following:
- [ ] Run `make unittest` to make sure all unit tests pass.
- [ ] Run the tests in `tests/scripts`.
- [ ] (LLNL only) After merging:
- [ ] Regenerate `README.html` files from companion documentation pull requests.
- [ ] Update internal tests to include the new features.
### Master/Next Workflow
@@ -508,7 +510,10 @@ MFEM uses a `master`/`next`-branch workflow as described below:
- [ ] Check that continuous integration server configurations reflect the dependency version requirements of the new release
- [ ] `.travis.yml`
- [ ] `.appveyor.yml`
- [ ] (LLNL only) Make sure all `README.html` files in the source repo are up to date.
- [ ] Update the `CHANGELOG` to organize all release contributions
- [ ] Review the whole source code once over
- [ ] Ask MFEM-based applications to test the pre-release branch
- [ ] Test on additional platforms and compilers
- [ ] Tag the repository:
```
@@ -519,14 +524,13 @@ MFEM uses a `master`/`next`-branch workflow as described below:
- [ ] Recreate the `next` branch as described in previous section.
- [ ] Update and push documentation to `mfem/doxygen`.
- [ ] Update URL shortlinks:
- [ ] Create a shortlink at [http://bit.ly/](http://bit.ly/) for the release tarball, e.g. http://mfem.github.io/releases/mfem-3.1.tgz.
- [ ] Create a shortlink at [http://bit.ly/](http://bit.ly/) for the release tarball, e.g. https://mfem.github.io/releases/mfem-3.1.tgz.
- [ ] (LLNL only) Add and commit the new shortlink in the `links` and `links-mfem` files of the internal `mfem/downloads` repo.
- [ ] Add the new shortlinks to the MFEM packages in `spack`, `homebrew/science`, `VisIt`, etc.
- [ ] Update website in `mfem/web` repo:
- Update version and shortlinks in `src/index.md` and `src/download.md`.
- Use [cloc-1.62.pl](http://cloc.sourceforge.net/) and `ls -lh` to estimate the SLOC and the tarball size in `src/download.md`.
## LLNL Workflow
### Mirroring on Bitbucket
+58 -11
View File
@@ -5,7 +5,7 @@
| | | | | || _|| __/| | | | | |
|_| |_| |_||_| \___||_| |_| |_|
http://mfem.org
https://mfem.org
The MFEM library has a serial and an MPI-based parallel version, which largely
share the same code base. The only prerequisite for building the serial version
@@ -19,10 +19,10 @@ requires an MPI C++ compiler, as well as the following external libraries:
http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
The hypre dependency can be downloaded as a tarball from GitHub or from the
project webpage https://www.llnl.gov/casc/hypre. For example, the 2.16.0 release
project webpage https://www.llnl.gov/casc/hypre. For example, the 2.20.0 release
of hypre is available at
https://github.com/hypre-space/hypre/archive/v2.16.0.tar.gz
https://github.com/hypre-space/hypre/archive/v2.20.0.tar.gz
The METIS dependency can be disabled but that is not generally recommended, see
the option MFEM_USE_METIS.
@@ -62,7 +62,7 @@ following package managers:
We also recommend downloading and building the MFEM-based GLVis visualization
tool which can be used to visualize the meshes and solution in MFEM's examples
and miniapps. See http://glvis.org and http://mfem.org/building.
and miniapps. See https://glvis.org and https://mfem.org/building.
Quick start with GNU make
=========================
@@ -344,6 +344,16 @@ MFEM_USE_SUPERLU = YES/NO
SuperLURowLocMatrix a distributed CSR matrix class needed by SuperLU. When
enabled, this option uses the SUPERLU_* library options, see below.
MFEM_USE_SUPERLU5 = YES/NO
If SuperLU functionality is enabled, use the older 5.1.0 version rather than
the more recent 6+ versions.
MFEM_USE_MUMPS = YES/NO
Enable MFEM functionality based on the MUMPS library. Currently, this
option adds the class MUMPSSolver (a parallel sparse direct solver).
When enabled, this option uses the MUMPS_* library options, see
below.
MFEM_USE_STRUMPACK = YES/NO
Enable MFEM functionality based on the STRUMPACK sparse direct solver and
preconditioner through the STRUMPACKSolver and STRUMPACKRowLocMatrix
@@ -356,6 +366,11 @@ MFEM_USE_GINKGO = YES/NO
https://github.com/ginkgo-project/ginkgo. When enabled, the user can use
Ginkgo's solvers and preconditioners as shown in examples/ginkgo/.
MFEM_USE_AMGX = YES/NO
Enable MFEM functionality based on the AmgX multigrid library from NVIDIA.
Allows the user to use SparseMatrices and HypreParMatrices to solve linear
systems with the routines from the AmgX library.
MFEM_USE_GNUTLS = YES/NO
Enable secure socket support in class socketstream, using the auxiliary
GnuTLS_* classes, based on the GnuTLS library. This option may be useful in
@@ -486,6 +501,13 @@ MFEM_USE_CEED = YES/NO
library for performant high-order operator evaluation developed by the Center
for Efficient Exascale Discretizations in the Exascale Computing Project.
MFEM_USE_MKL_CPARDISO = YES/NO
Enables the interface to MKL CPardiso: the Intel MKL Parallel Direct Sparse
Solver for Clusters. Make sure to set the correct values for MKL_MPI_WRAPPER
and MKL_LIBRARY_SUBDIR as shown in defaults.mk. If you configure MFEM with
MFEM_USE_LAPACK=YES, verify that the MKL LAPACK libraries are used. The
OpenMP capabilities are disabled at link time.
MFEM_BUILD_TAG = (any value)
An optional tag to characterize the build. Exported to config/config.mk.
Can be used to identify the MFEM build from other makefiles.
@@ -535,15 +557,19 @@ The specific libraries and their options are:
Beginning with MFEM v3.3, SUNDIALS v2.7.0 is supported.
Beginning with MFEM v3.3.2, SUNDIALS v3.0.0 is also supported.
Beginning with MFEM v4.1, only SUNDIALS v5.0.0+ is supported.
When MFEM_USE_CUDA is enabled, only SUNDIALS v5.4.0+ is supported.
If MFEM_USE_MPI is enabled, we expect that SUNDIALS is built with support for
both MPI and hypre.
If MFEM_USE_CUDA is enabled, we expect that SUNDIALS is built with support
for CUDA.
URL: http://computation.llnl.gov/projects/sundials/sundials-software
Options: SUNDIALS_OPT, SUNDIALS_LIB.
Versions: SUNDIALS >= 5.0.0.
Versions: SUNDIALS >= 5.0.0, SUNDIALS >= 5.4.0 for CUDA support.
- Mesquite (optional), used when MFEM_USE_MESQUITE = YES.
URL: http://trilinos.org/oldsite/packages/mesquite
Options: MESQUITE_OPT, MESQUITE_LIB.
The Mesquite support is deprecated and will be removed in the future.
- SuiteSparse (optional), used when MFEM_USE_SUITESPARSE = YES.
URL: http://faculty.cse.tamu.edu/davis/suitesparse.html
@@ -553,11 +579,17 @@ The specific libraries and their options are:
- SuperLU_DIST (optional), used when MFEM_USE_SUPERLU = YES. Note that
SuperLU_DIST requires ParMETIS, which includes METIS 5 in its distribution.
Both ParMETIS and the included METIS 5 should be built and installed in the
same location.
same location. If using SuperLU_Dist v5, set MFEM_USE_SUPERLU5=YES.
URL: http://crd-legacy.lbl.gov/~xiaoye/SuperLU
Options: SUPERLU_OPT, SUPERLU_LIB.
Versions: SuperLU_DIST >= 5.1.0.
- MUMPS (optional), used when MFEM_USE_MUMPS = YES. Note that MUMPS
requires LAPACK, SCALAPACK and a reordering package such as PORD or METIS.
URL: http://mumps.enseeiht.fr
Options: MUMPS_OPT, MUMPS_LIB.
Versions: MUMPS >= 5.1.1
- STRUMPACK (optional), used when MFEM_USE_STRUMPACK = YES. Note that STRUMPACK
requires the PT-Scotch and Scalapack libraries as well as ParMETIS, which
includes METIS 5 in its distribution. Starting with STRUMPACK v2.2.0, ParMETIS
@@ -566,7 +598,7 @@ The specific libraries and their options are:
2.0.0 or later.
URL: http://portal.nersc.gov/project/sparse/strumpack
Options: STRUMPACK_OPT, STRUMPACK_LIB.
Versions: STRUMPACK >= 3.0.0, requires HYPRE < 2.16.0.
Versions: STRUMPACK >= 3.0.0.
- Ginkgo (optional), used when MFEM_USE_GINKGO = YES. Note that Ginkgo needs a
C++ compiler that supports the C++-11 standard. For additional requirements
@@ -574,6 +606,11 @@ The specific libraries and their options are:
URL: https://ginkgo-project.github.io
Options: GINKGO_OPT (Not used), GINKGO_LIB.
- AmgX (optional), used when MFEM_USE_AMGX = YES.
URL: https://github.com/NVIDIA/AMGX
Options: AMGX_OPT, AMGX_LIB.
Versions: AmgX >= 2.1, older versions may work too.
- GnuTLS (optional), used when MFEM_USE_GNUTLS = YES. On most Linux systems,
GnuTLS is available as a development package, e.g. gnutls-devel. On Mac OS X,
one can get the library through the Homebrew package manager (http://brew.sh).
@@ -624,16 +661,18 @@ The specific libraries and their options are:
- ADIOS2 (optional) used when MFEM_USE_ADIOS2 = YES.
URL: https://adios2.readthedocs.io/
Versions: ADIOS >= 2.5.0.
- PUMI (optional), used when MFEM_USE_PUMI = YES.
URL: https://scorec.rpi.edu/pumi
https://github.com/SCOREC/core
Options: PUMI_OPT, PUMI_LIB.
Versions: PUMI >= 2.2.3.
Versions: PUMI == 2.2.3.
- HiOp (optional), used when MFEM_USE_HIOP = YES.
URL: https://github.com/LLNL/hiop
Options: HIOP_OPT, HIOP_LIB.
Versions: HIOP >= 0.1.
- GSLIB (optional), used when MFEM_USE_GSLIB = YES. The gslib library must be
built prior to the MFEM build, as follows: download gslib-1.0.5, untar it at
@@ -645,6 +684,11 @@ The specific libraries and their options are:
Options: GSLIB_OPT, GSLIB_LIB.
Versions: GSLIB >= 1.0.5.
- MKL CPardiso (optional), used when MFEM_USE_MKL_CPARDISO = YES.
URL: https://software.intel.com/content/www/us/en/develop/tools/math-kernel-library.html
Options: MKL_CPARDISO_OPT, MKL_CPARDISO_LIB.
Versions: Intel MKL >= 2020.
- CUDA (optional), used when MFEM_USE_CUDA = YES.
URL: https://developer.nvidia.com/cuda-toolkit
Options: CUDA_CXX, CUDA_ARCH, CUDA_OPT, CUDA_LIB.
@@ -657,13 +701,13 @@ The specific libraries and their options are:
- OCCA (optional), used when MFEM_USE_OCCA = YES.
URL: https://libocca.org
Options: OCCA_DIR, OCCA_OPT, OCCA_LIB.
Versions: OCCA >= 1.0.9.
Versions: OCCA >= 1.1.0.
- libCEED (optional), used when MFEM_USE_CEED = YES.
URL: https://github.com/CEED/libCEED
https://ceed.exascaleproject.org/libceed
Options: CEED_DIR, CEED_OPT, CEED_LIB.
Versions: libCEED > 0.6, git-hash fe5822c.
Versions: libCEED >= 0.7.
- RAJA (optional), used when MFEM_USE_RAJA = YES.
Beginning with MFEM v4.1, only RAJA v0.10.0+ is supported.
@@ -805,8 +849,10 @@ MFEM_TIMER_TYPE - Set automatically, can be overwritten.
MFEM_USE_MESQUITE
MFEM_USE_SUITESPARSE
MFEM_USE_SUPERLU
MFEM_USE_MUMPS
MFEM_USE_STRUMPACK
MFEM_USE_GINKGO
MFEM_USE_AMGX
MFEM_USE_GNUTLS
MFEM_USE_NETCDF
MFEM_USE_MPFR
@@ -855,11 +901,12 @@ The CMake build system adds auto-detection for the following packages/libraries:
- HYPRE
- METIS - The option MFEM_USE_METIS_5 is auto-detected.
- ParMETIS
- MESQUITE
- SuiteSparse
- SuperLUDist, STRUMPACK
- ParMETIS
- Ginkgo
- AMGX
- GNUTLS - Extends the built-in CMake support, to search GNUTLS_DIR as well.
- NETCDF
- MPFR
+2 -1
View File
@@ -25,7 +25,8 @@ This project distributes the sources of several external software products with
their own respective licenses which can be found in their code and attached
license files. These software products and their licenses are as follows:
* AmgXWrapper (linalg/amgxsolver.{hpp,cpp}) -- MIT license
* Catch++ (tests/unit/catch.hpp) -- Boost 1.0 license
* Gecko (general/gecko.{cpp,hpp}) -- BSD 3-clause license
* Picojson (fem/picojson.h) -- Custom 2-clause license
* Catch++ (tests/unit/catch.hpp) -- Boost 1.0 license
* Zstr (general/zstr.hpp) -- MIT license
+12 -12
View File
@@ -5,7 +5,7 @@
| | | | | || _|| __/| | | | | |
|_| |_| |_||_| \___||_| |_| |_|
http://mfem.org
https://mfem.org
MFEM is a modular parallel C++ library for finite element methods. Its goal is
to enable high-performance scalable finite element discretization research and
@@ -16,8 +16,8 @@ supercomputers.
* Copyright and licensing information can be found in files LICENSE and NOTICE.
* The best starting point for new users interested in MFEM's features is the
interactive documentation in examples/README.html.
* The best starting point for new users interested in MFEM's features is to
review the examples and miniapps at https://mfem.org/examples.
* Developers interested in contributing to the library, should read the
instructions and documentation in the CONTRIBUTING.md file.
@@ -49,17 +49,17 @@ library. Nonlinear solvers (the Newton method), eigensolvers (LOBPCG), and
several explicit and implicit Runge-Kutta time integrators are also available.
MFEM supports MPI-based parallelism throughout the library, and can readily be
used as a scalable unstructured finite element problem generator. As of version
4.0, MFEM offers initial support for GPU acceleration, and programming models,
such as CUDA, OCCA, RAJA and OpenMP. MFEM-based applications require minimal
changes to switch from a serial to a high-performing MPI-parallel version of the
code, where they can take advantage of the integrated linear solvers from the
hypre library. Comprehensive support for other external packages, e.g. PETSc
and SUNDIALS is also included, giving access to many additional linear and
nonlinear solvers, preconditioners, time integrators, etc.
used as a scalable unstructured finite element problem generator. Starting with
version 4.0, MFEM offers support for GPU acceleration, and programming models,
such as CUDA, HIP, OCCA, RAJA and OpenMP. MFEM-based applications require
minimal changes to switch from a serial to a highly-performant MPI-parallel
version of the code, where they can take advantage of the integrated linear
solvers from the hypre library. Comprehensive support for other external
packages, e.g. PETSc, SUNDIALS and libCEED is also included, giving access to
additional linear and nonlinear solvers, preconditioners, time integrators, etc.
For examples of using MFEM, see the examples/ and miniapps/ directories, as well
as the OpenGL visualization tool GLVis which is available at http://glvis.org.
as the OpenGL visualization tool GLVis which is available at https://glvis.org.
MFEM is distributed under the terms of the BSD-3 license. All new contributions
must be made under this license. See LICENSE and NOTICE for details.
+3
View File
@@ -32,8 +32,11 @@ set(MFEM_USE_SUNDIALS @MFEM_USE_SUNDIALS@)
set(MFEM_USE_MESQUITE @MFEM_USE_MESQUITE@)
set(MFEM_USE_SUITESPARSE @MFEM_USE_SUITESPARSE@)
set(MFEM_USE_SUPERLU @MFEM_USE_SUPERLU@)
set(MFEM_USE_MUMPS @MFEM_USE_MUMPS@)
set(MFEM_USE_STRUMPACK @MFEM_USE_STRUMPACK@)
set(MFEM_USE_GINKGO @MFEM_USE_GINKGO@)
set(MFEM_USE_AMGX @MFEM_USE_AMGX@)
set(MFEM_USE_HIOP @MFEM_USE_HIOP@)
set(MFEM_USE_GNUTLS @MFEM_USE_GNUTLS@)
set(MFEM_USE_GSLIB @MFEM_USE_GSLIB@)
set(MFEM_USE_NETCDF @MFEM_USE_NETCDF@)
+12 -3
View File
@@ -74,6 +74,9 @@
// [Deprecated] Enable experimental OpenMP support. Requires MFEM_THREAD_SAFE.
#cmakedefine MFEM_USE_LEGACY_OPENMP
// Internal MFEM option: enable group/batch allocation for some small objects.
#cmakedefine MFEM_USE_MEMALLOC
// Enable MFEM functionality based on the Mesquite library.
#cmakedefine MFEM_USE_MESQUITE
@@ -83,15 +86,18 @@
// Enable MFEM functionality based on the SuperLU_DIST library.
#cmakedefine MFEM_USE_SUPERLU
// Enable MFEM functionality based on the MUMPS library.
#cmakedefine MFEM_USE_MUMPS
// Enable MFEM functionality based on the STRUMPACK library.
#cmakedefine MFEM_USE_STRUMPACK
// Internal MFEM option: enable group/batch allocation for some small objects.
#cmakedefine MFEM_USE_MEMALLOC
// Enable functionality based on the Ginkgo library
#cmakedefine MFEM_USE_GINKGO
// Enable MFEM functionality based on the AmgX library
#cmakedefine MFEM_USE_AMGX
// Enable MFEM functionality based on the GnuTLS library
#cmakedefine MFEM_USE_GNUTLS
@@ -156,4 +162,7 @@
// library.
#cmakedefine MFEM_USE_SIMMETRIX
// Enable interface to the MKL CPardiso library.
#cmakedefine MFEM_USE_MKL_CPARDISO
#endif // MFEM_CONFIG_HEADER
+13 -1
View File
@@ -38,7 +38,19 @@ if(NOT ADIOS2_FOUND)
endif()
find_path(ADIOS2_INCLUDE_DIR adios2.h ${ADIOS2_INCLUDE_OPTS})
find_library(ADIOS2_LIBRARY NAMES adios2 ${ADIOS2_LIBRARY_OPTS})
# adios2 version 2.5.0
find_library(ADIOS2_LIBRARY NAMES adios2 ${ADIOS2_LIBRARY_OPTS})
# adios2 version 2.6.0 and onwards
if(NOT ADIOS2_LIBRARY)
find_library(ADIOS2_CXX11_MPI_LIBRARY NAMES adios2_cxx11_mpi ${ADIOS2_LIBRARY_OPTS})
find_library(ADIOS2_CXX11_LIBRARY NAMES adios2_cxx11 ${ADIOS2_LIBRARY_OPTS})
set(ADIOS2_LIBRARY ${ADIOS2_CXX11_MPI_LIBRARY} ${ADIOS2_CXX11_LIBRARY})
if(MFEM_USE_MPI)
add_definitions(-DADIOS2_USE_MPI)
endif()
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ADIOS2
+20
View File
@@ -0,0 +1,20 @@
# Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
# at the Lawrence Livermore National Laboratory. All Rights reserved. See files
# LICENSE and NOTICE for details. LLNL-CODE-806117.
#
# This file is part of the MFEM library. For more information and source code
# availability visit https://mfem.org.
#
# MFEM is free software; you can redistribute it and/or modify it under the
# terms of the BSD-3 license. We welcome feedback and contributions, see file
# CONTRIBUTING.md for details.
# Defines the following variables:
# - AMGX_FOUND
# - AMGX_LIBRARIES
# - AMGX_INCLUDE_DIRS
include(MfemCmakeUtilities)
set(AMGX_REQUIRED_LIBRARIES cusparse cusolver cublas nvToolsExt)
mfem_find_package(AMGX AMGX AMGX_DIR "include" "amgx_c.h" "lib" "amgx"
"Paths to headers required by AMGX." "Libraries required by AMGX.")
@@ -0,0 +1,32 @@
# Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
# at the Lawrence Livermore National Laboratory. All Rights reserved. See files
# LICENSE and NOTICE for details. LLNL-CODE-806117.
#
# This file is part of the MFEM library. For more information and source code
# availability visit https://mfem.org.
#
# MFEM is free software; you can redistribute it and/or modify it under the
# terms of the BSD-3 license. We welcome feedback and contributions, see file
# CONTRIBUTING.md for details.
# Defines the following variables:
# - MKL_CPARDISO_FOUND
# - MKL_CPARDISO_LIBRARIES
# - MKL_CPARDISO_INCLUDE_DIRS
if(NOT MKL_MPI_WRAPPER_LIB)
message(FATAL_ERROR "MKL CPardiso enabled but no MKL MPI Wrapper lib specified")
endif()
if(NOT MKL_LIBRARY_DIR)
message(WARNING "Using default MKL library path. Double check the variable MKL_LIBRARY_DIR")
set(MKL_LIBRARY_DIR "lib")
endif()
include(MfemCmakeUtilities)
mfem_find_package(MKL_CPARDISO MKL_CPARDISO
MKL_CPARDISO_DIR "include" mkl_cluster_sparse_solver.h ${MKL_LIBRARY_DIR} mkl_core
"Paths to headers required by MKL CPardiso." "Libraries required by MKL CPARDISO."
ADD_COMPONENT MKL_LP64 "include" "" ${MKL_LIBRARY_DIR} mkl_intel_lp64
ADD_COMPONENT MKL_SEQUENTIAL "include" "" ${MKL_LIBRARY_DIR} mkl_sequential
ADD_COMPONENT MKL_MPI_WRAPPER "include" "" ${MKL_LIBRARY_DIR} ${MKL_MPI_WRAPPER_LIB})
+23
View File
@@ -0,0 +1,23 @@
# Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
# at the Lawrence Livermore National Laboratory. All Rights reserved. See files
# LICENSE and NOTICE for details. LLNL-CODE-806117.
#
# This file is part of the MFEM library. For more information and source code
# availability visit https://mfem.org.
#
# MFEM is free software; you can redistribute it and/or modify it under the
# terms of the BSD-3 license. We welcome feedback and contributions, see file
# CONTRIBUTING.md for details.
# Sets the following variables:
# - MUMPS_FOUND
# - MUMPS_INCLUDE_DIRS
# - MUMPS_LIBRARIES
include(MfemCmakeUtilities)
mfem_find_package(MUMPS MUMPS MUMPS_DIR
"include" dmumps_c.h "lib" dmumps
"Paths to headers required by MUMPS."
"Libraries required by MUMPS."
ADD_COMPONENT mumps_common "include" dmumps_c.h "lib" mumps_common
ADD_COMPONENT pord "include" dmumps_c.h "lib" pord)
+6 -2
View File
@@ -20,10 +20,14 @@ mfem_find_package(SUNDIALS SUNDIALS SUNDIALS_DIR
"Paths to headers required by SUNDIALS." "Libraries required by SUNDIALS."
ADD_COMPONENT NVector_Serial
"include" nvector/nvector_serial.h "lib" sundials_nvecserial
ADD_COMPONENT NVector_Parallel
"include" nvector/nvector_parallel.h "lib" sundials_nvecparallel
ADD_COMPONENT NVector_Cuda
"include" nvector/nvector_cuda.h "lib" sundials_nveccuda
ADD_COMPONENT NVector_ParHyp
"include" nvector/nvector_parhyp.h "lib" sundials_nvecparhyp
ADD_COMPONENT NVector_Parallel
"include" nvector/nvector_parallel.h "lib" sundials_nvecparallel
ADD_COMPONENT NVector_MPIPlusX
"include" nvector/nvector_mpiplusx.h "lib" sundials_nvecmpiplusx
ADD_COMPONENT CVODE "include" cvode/cvode.h "lib" sundials_cvode
ADD_COMPONENT CVODES "include" cvodes/cvodes.h "lib" sundials_cvodes
ADD_COMPONENT ARKODE "include" arkode/arkode.h "lib" sundials_arkode
@@ -235,7 +235,7 @@ endfunction(mfem_find_component)
# code snippets. Additionally, a list of required/optional/alternative
# packages (given by ${Name}_REQUIRED_PACKAGES) are searched for and added to
# the ${Prefix}_INCLUDE_DIRS and ${Prefix}_LIBRARIES lists. The variable
# ${Name}_REQUIRED_LIBRARIES can be set to spcecify any additional libraries
# ${Name}_REQUIRED_LIBRARIES can be set to specify any additional libraries
# that are needed. This function defines the following CACHE variables:
#
# ${Prefix}_FOUND
@@ -733,15 +733,16 @@ function(mfem_export_mk_files)
set(shared_link_flag "-Wl,-rpath,")
endif()
# Convert Boolean vars to YES/NO without writting the values to cache
# Convert Boolean vars to YES/NO without writing the values to cache
set(CONFIG_MK_BOOL_VARS MFEM_USE_MPI MFEM_USE_METIS MFEM_USE_METIS_5
MFEM_DEBUG MFEM_USE_EXCEPTIONS MFEM_USE_ZLIB MFEM_USE_LIBUNWIND
MFEM_USE_LAPACK MFEM_THREAD_SAFE MFEM_USE_OPENMP MFEM_USE_LEGACY_OPENMP
MFEM_USE_MEMALLOC MFEM_USE_SUNDIALS MFEM_USE_MESQUITE MFEM_USE_SUITESPARSE
MFEM_USE_SUPERLU MFEM_USE_STRUMPACK MFEM_USE_GNUTLS
MFEM_USE_GSLIB MFEM_USE_NETCDF MFEM_USE_PETSC MFEM_USE_SLEPC MFEM_USE_MPFR MFEM_USE_SIDRE
MFEM_USE_CONDUIT MFEM_USE_PUMI MFEM_USE_CUDA MFEM_USE_OCCA MFEM_USE_RAJA
MFEM_USE_UMPIRE MFEM_USE_SIMD MFEM_USE_ADIOS2)
MFEM_USE_SUPERLU MFEM_USE_STRUMPACK MFEM_USE_GINKGO MFEM_USE_AMGX
MFEM_USE_GNUTLS MFEM_USE_GSLIB MFEM_USE_NETCDF MFEM_USE_PETSC
MFEM_USE_SLEPC MFEM_USE_MPFR MFEM_USE_SIDRE MFEM_USE_CONDUIT MFEM_USE_PUMI
MFEM_USE_CUDA MFEM_USE_OCCA MFEM_USE_RAJA MFEM_USE_UMPIRE MFEM_USE_SIMD
MFEM_USE_ADIOS2)
foreach(var ${CONFIG_MK_BOOL_VARS})
if (${var})
set(${var} YES)
@@ -819,7 +820,7 @@ function(mfem_export_mk_files)
string(REGEX REPLACE "^SCOREC::" "" libname ${pumilib})
string(FIND "${pumilib}" ".a" staticlib)
string(FIND "${pumilib}" ".so" sharedlib)
find_library(lib ${libname} PATHS ${PUMI_DIR}/lib NO_DEFUALT_PATH)
find_library(lib ${libname} PATHS ${PUMI_DIR}/lib NO_DEFAULT_PATH)
if (NOT "${sharedlib}" MATCHES "-1" OR
NOT "${staticlib}" MATCHES "-1" )
set(MFEM_EXT_LIBS "${pumilib} ${MFEM_EXT_LIBS}")
+6
View File
@@ -42,9 +42,15 @@
#ifdef MFEM_USE_SUPERLU
#error Building with SuperLU_DIST (MFEM_USE_SUPERLU=YES) requires MPI (MFEM_USE_MPI=YES)
#endif
#ifdef MFEM_USE_MUMPS
#error Building with MUMPS (MFEM_USE_MUMPS=YES) requires MPI (MFEM_USE_MPI=YES)
#endif
#ifdef MFEM_USE_STRUMPACK
#error Building with STRUMPACK (MFEM_USE_STRUMPACK=YES) requires MPI (MFEM_USE_MPI=YES)
#endif
#ifdef MFEM_USE_MKL_CPARDISO
#error Building with MKL CPARDISO (MFEM_USE_MKL_CPARDISO=YES) requires MPI (MFEM_USE_MPI=YES)
#endif
#ifdef MFEM_USE_PETSC
#error Building with PETSc (MFEM_USE_PETSC=YES) requires MPI (MFEM_USE_MPI=YES)
#endif
+11
View File
@@ -93,6 +93,11 @@
// Enable MFEM functionality based on the SuperLU library.
// #define MFEM_USE_SUPERLU
// #define MFEM_USE_SUPERLU5
// Enable MFEM functionality based on the MUMPS library.
// #define MFEM_USE_MUMPS
// #define MFEM_MUMPS_VERSION @MFEM_MUMPS_VERSION@
// Enable MFEM functionality based on the STRUMPACK library.
// #define MFEM_USE_STRUMPACK
@@ -100,6 +105,9 @@
// Enable MFEM features based on the Ginkgo library
// #define MFEM_USE_GINKGO
// Enable MFEM functionality based on the AmgX library.
// #define MFEM_USE_AMGX
// Enable secure socket streams based on the GNUTLS library
// #define MFEM_USE_GNUTLS
@@ -163,4 +171,7 @@
// library.
// #define MFEM_USE_SIMMETRIX
// Enable interface to the MKL CPardiso library.
// #define MFEM_USE_MKL_CPARDISO
#endif // MFEM_CONFIG_HEADER
+4
View File
@@ -32,8 +32,11 @@ MFEM_USE_SUNDIALS = @MFEM_USE_SUNDIALS@
MFEM_USE_MESQUITE = @MFEM_USE_MESQUITE@
MFEM_USE_SUITESPARSE = @MFEM_USE_SUITESPARSE@
MFEM_USE_SUPERLU = @MFEM_USE_SUPERLU@
MFEM_USE_SUPERLU5 = @MFEM_USE_SUPERLU5@
MFEM_USE_MUMPS = @MFEM_USE_MUMPS@
MFEM_USE_STRUMPACK = @MFEM_USE_STRUMPACK@
MFEM_USE_GINKGO = @MFEM_USE_GINKGO@
MFEM_USE_AMGX = @MFEM_USE_AMGX@
MFEM_USE_GNUTLS = @MFEM_USE_GNUTLS@
MFEM_USE_NETCDF = @MFEM_USE_NETCDF@
MFEM_USE_PETSC = @MFEM_USE_PETSC@
@@ -52,6 +55,7 @@ MFEM_USE_CEED = @MFEM_USE_CEED@
MFEM_USE_UMPIRE = @MFEM_USE_UMPIRE@
MFEM_USE_SIMD = @MFEM_USE_SIMD@
MFEM_USE_ADIOS2 = @MFEM_USE_ADIOS2@
MFEM_USE_MKL_CPARDISO = @MFEM_USE_MKL_CPARDISO@
# Compiler, compile options, and link options
MFEM_CXX = @MFEM_CXX@
+21 -2
View File
@@ -33,8 +33,11 @@ option(MFEM_USE_SUNDIALS "Enable SUNDIALS usage" OFF)
option(MFEM_USE_MESQUITE "Enable MESQUITE usage" OFF)
option(MFEM_USE_SUITESPARSE "Enable SuiteSparse usage" OFF)
option(MFEM_USE_SUPERLU "Enable SuperLU_DIST usage" OFF)
option(MFEM_USE_SUPERLU5 "Use the old SuperLU_DIST 5.1 version" OFF)
option(MFEM_USE_MUMPS "Enable MUMPS usage" OFF)
option(MFEM_USE_STRUMPACK "Enable STRUMPACK usage" OFF)
option(MFEM_USE_GINKGO "Enable Ginkgo usage" OFF)
option(MFEM_USE_AMGX "Enable AmgX usage" OFF)
option(MFEM_USE_GNUTLS "Enable GNUTLS usage" OFF)
option(MFEM_USE_GSLIB "Enable GSLIB usage" OFF)
option(MFEM_USE_NETCDF "Enable NETCDF usage" OFF)
@@ -52,6 +55,7 @@ option(MFEM_USE_CEED "Enable CEED" OFF)
option(MFEM_USE_UMPIRE "Enable Umpire" OFF)
option(MFEM_USE_SIMD "Enable use of SIMD intrinsics" OFF)
option(MFEM_USE_ADIOS2 "Enable ADIOS2" OFF)
option(MFEM_USE_MKL_CPARDISO "Enable MKL CPardiso" OFF)
set(MFEM_MPI_NP 4 CACHE STRING "Number of processes used for MPI tests")
@@ -88,7 +92,7 @@ set(METIS_DIR "${MFEM_DIR}/../metis-4.0" CACHE PATH "Path to the METIS library."
set(LIBUNWIND_DIR "" CACHE PATH "Path to Libunwind.")
# For sundials_nvecparhyp and nvecparallel remember to build with MPI_ENABLED=ON
# For sundials_nvecmpiplusx and nvecparallel remember to build with MPI_ENABLE=ON
# and modify cmake variables for hypre for sundials
set(SUNDIALS_DIR "${MFEM_DIR}/../sundials-5.0.0/instdir" CACHE PATH
"Path to the SUNDIALS library.")
@@ -109,12 +113,21 @@ set(ParMETIS_DIR "${MFEM_DIR}/../parmetis-4.0.3" CACHE PATH
set(ParMETIS_REQUIRED_PACKAGES "METIS" CACHE STRING
"Additional packages required by ParMETIS.")
set(SuperLUDist_DIR "${MFEM_DIR}/../SuperLU_DIST_5.1.0" CACHE PATH
set(SuperLUDist_DIR "${MFEM_DIR}/../SuperLU_DIST_6.3.1" CACHE PATH
"Path to the SuperLU_DIST library.")
# SuperLU_DIST may also depend on "OpenMP", depending on how it was compiled.
set(SuperLUDist_REQUIRED_PACKAGES "MPI" "BLAS" "ParMETIS" CACHE STRING
"Additional packages required by SuperLU_DIST.")
set(MUMPS_DIR "${MFEM_DIR}/../MUMPS_5.2.0" CACHE PATH
"Path to the MUMPS library.")
# Packages required by MUMPS, depending on how it was compiled.
set(MUMPS_REQUIRED_PACKAGES "MPI" "BLAS" "METIS" "ScaLAPACK" CACHE STRING
"Additional packages required by MUMPS.")
# If the MPI package does not find all required Fortran libraries:
# set(MUMPS_REQUIRED_LIBRARIES "gfortran" "mpi_mpifh" CACHE STRING
# "Additional libraries required by MUMPS.")
set(STRUMPACK_DIR "${MFEM_DIR}/../STRUMPACK-build" CACHE PATH
"Path to the STRUMPACK library.")
# STRUMPACK may also depend on "OpenMP", depending on how it was compiled.
@@ -145,6 +158,8 @@ set(ScaLAPACK_TARGET_NAMES scalapack)
set(Ginkgo_DIR "${MFEM_DIR}/../ginkgo" CACHE PATH "Path to the Ginkgo library.")
set(AMGX_DIR "${MFEM_DIR}/../amgx" CACHE PATH "Path to AmgX")
set(GNUTLS_DIR "" CACHE PATH "Path to the GnuTLS library.")
set(GSLIB_DIR "" CACHE PATH "Path to the GSLIB library.")
@@ -180,6 +195,10 @@ set(HIOP_DIR "${MFEM_DIR}/../hiop/install" CACHE STRING
set(HIOP_REQUIRED_PACKAGES "BLAS" "LAPACK" CACHE STRING
"Packages that HiOp depends on.")
set(MKL_CPARDISO_DIR "" CACHE STRING "MKL installation path.")
set(MKL_MPI_WRAPPER_LIB "mkl_blacs_mpich_lp64" CACHE STRING "MKL MPI wrapper library")
set(MKL_LIBRARY_DIR "" CACHE STRING "Custom library subdirectory")
set(OCCA_DIR "${MFEM_DIR}/../occa" CACHE PATH "Path to OCCA")
set(RAJA_DIR "${MFEM_DIR}/../raja" CACHE PATH "Path to RAJA")
set(CEED_DIR "${MFEM_DIR}/../libCEED" CACHE PATH "Path to libCEED")
+59 -12
View File
@@ -53,6 +53,8 @@ HIP_CXX = hipcc
# gfx900, gfx1010, etc.
HIP_ARCH = gfx900
HIP_FLAGS = --amdgpu-target=$(HIP_ARCH)
HIP_XCOMPILER =
HIP_XLINKER = -Wl,
ifneq ($(NOTMAC),)
AR = ar
@@ -120,8 +122,11 @@ MFEM_USE_SUNDIALS = NO
MFEM_USE_MESQUITE = NO
MFEM_USE_SUITESPARSE = NO
MFEM_USE_SUPERLU = NO
MFEM_USE_SUPERLU5 = NO
MFEM_USE_MUMPS = NO
MFEM_USE_STRUMPACK = NO
MFEM_USE_GINKGO = NO
MFEM_USE_AMGX = NO
MFEM_USE_GNUTLS = NO
MFEM_USE_NETCDF = NO
MFEM_USE_PETSC = NO
@@ -140,6 +145,17 @@ MFEM_USE_CEED = NO
MFEM_USE_UMPIRE = NO
MFEM_USE_SIMD = NO
MFEM_USE_ADIOS2 = NO
MFEM_USE_MKL_CPARDISO = NO
# MPI library compile and link flags
# These settings are used only when building MFEM with MPI + HIP
ifeq ($(MFEM_USE_MPI)$(MFEM_USE_HIP),YESYES)
# We determine MPI_DIR assuming $(MPICXX) is in $(MPI_DIR)/bin
MPI_DIR := $(patsubst %/,%,$(dir $(shell which $(MPICXX))))
MPI_DIR := $(patsubst %/,%,$(dir $(MPI_DIR)))
MPI_OPT = -I$(MPI_DIR)/include
MPI_LIB = -L$(MPI_DIR)/lib $(XLINKER)-rpath,$(MPI_DIR)/lib -lmpi
endif
# Compile and link options for zlib.
ZLIB_DIR =
@@ -156,7 +172,7 @@ HYPRE_OPT = -I$(HYPRE_DIR)/include
HYPRE_LIB = -L$(HYPRE_DIR)/lib -lHYPRE
# METIS library configuration
ifeq ($(MFEM_USE_SUPERLU)$(MFEM_USE_STRUMPACK),NONO)
ifeq ($(MFEM_USE_SUPERLU)$(MFEM_USE_STRUMPACK)$(MFEM_USE_MUMPS),NONONO)
ifeq ($(MFEM_USE_METIS_5),NO)
METIS_DIR = @MFEM_DIR@/../metis-4.0
METIS_OPT =
@@ -189,15 +205,19 @@ OPENMP_LIB =
POSIX_CLOCKS_LIB = -lrt
# SUNDIALS library configuration
# For sundials_nvecparhyp and nvecparallel remember to build with MPI_ENABLED=ON
# For sundials_nvecmpiplusx and nvecparallel remember to build with MPI_ENABLE=ON
# and modify cmake variables for hypre for sundials
SUNDIALS_DIR = @MFEM_DIR@/../sundials-5.0.0/instdir
SUNDIALS_OPT = -I$(SUNDIALS_DIR)/include
SUNDIALS_LIB = -Wl,-rpath,$(SUNDIALS_DIR)/lib64 -L$(SUNDIALS_DIR)/lib64\
SUNDIALS_DIR = @MFEM_DIR@/../sundials-5.0.0/instdir
SUNDIALS_OPT = -I$(SUNDIALS_DIR)/include
SUNDIALS_LIBDIR = $(wildcard $(SUNDIALS_DIR)/lib*)
SUNDIALS_LIB = $(XLINKER)-rpath,$(SUNDIALS_LIBDIR) -L$(SUNDIALS_LIBDIR)\
-lsundials_arkode -lsundials_cvodes -lsundials_nvecserial -lsundials_kinsol
ifeq ($(MFEM_USE_MPI),YES)
SUNDIALS_LIB += -lsundials_nvecparhyp -lsundials_nvecparallel
SUNDIALS_LIB += -lsundials_nvecparallel -lsundials_nvecmpiplusx
endif
ifeq ($(MFEM_USE_CUDA),YES)
SUNDIALS_LIB += -lsundials_nveccuda
endif
# If SUNDIALS was built with KLU:
# MFEM_USE_SUITESPARSE = YES
@@ -216,9 +236,15 @@ SUITESPARSE_LIB = -Wl,-rpath,$(SUITESPARSE_DIR)/lib -L$(SUITESPARSE_DIR)/lib\
-lsuitesparseconfig $(LIB_RT) $(METIS_LIB) $(LAPACK_LIB)
# SuperLU library configuration
SUPERLU_DIR = @MFEM_DIR@/../SuperLU_DIST_5.1.0
SUPERLU_OPT = -I$(SUPERLU_DIR)/SRC
SUPERLU_LIB = -Wl,-rpath,$(SUPERLU_DIR)/lib -L$(SUPERLU_DIR)/lib -lsuperlu_dist_5.1.0
ifeq ($(MFEM_USE_SUPERLU5),YES)
SUPERLU_DIR = @MFEM_DIR@/../SuperLU_DIST_5.1.0
SUPERLU_OPT = -I$(SUPERLU_DIR)/include
SUPERLU_LIB = -Wl,-rpath,$(SUPERLU_DIR)/lib -L$(SUPERLU_DIR)/lib -lsuperlu_dist_5.1.0
else
SUPERLU_DIR = @MFEM_DIR@/../SuperLU_DIST_6.3.1
SUPERLU_OPT = -I$(SUPERLU_DIR)/include
SUPERLU_LIB = -Wl,-rpath,$(SUPERLU_DIR)/lib64 -L$(SUPERLU_DIR)/lib64 -lsuperlu_dist -lblas
endif
# SCOTCH library configuration (required by STRUMPACK <= v2.1.0, optional in
# STRUMPACK >= v2.2.0)
@@ -227,12 +253,12 @@ SCOTCH_OPT = -I$(SCOTCH_DIR)/include
SCOTCH_LIB = -L$(SCOTCH_DIR)/lib -lptscotch -lptscotcherr -lscotch -lscotcherr\
-lpthread
# SCALAPACK library configuration (required by STRUMPACK)
# SCALAPACK library configuration (required by STRUMPACK and MUMPS)
SCALAPACK_DIR = @MFEM_DIR@/../scalapack-2.0.2
SCALAPACK_OPT = -I$(SCALAPACK_DIR)/SRC
SCALAPACK_LIB = -L$(SCALAPACK_DIR)/lib -lscalapack $(LAPACK_LIB)
# MPI Fortran library, needed e.g. by STRUMPACK
# MPI Fortran library, needed e.g. by STRUMPACK or MUMPS
# MPICH:
MPI_FORTRAN_LIB = -lmpifort
# OpenMPI:
@@ -240,6 +266,12 @@ MPI_FORTRAN_LIB = -lmpifort
# Additional Fortan library:
# MPI_FORTRAN_LIB += -lgfortran
# MUMPS library configuration
MUMPS_DIR = @MFEM_DIR@/../MUMPS_5.2.0
MUMPS_OPT = -I$(MUMPS_DIR)/include
MUMPS_LIB = -Wl,-rpath,$(MUMPS_DIR)/lib -L$(MUMPS_DIR)/lib -ldmumps\
-lmumps_common -lpord $(SCALAPACK_LIB) $(LAPACK_LIB) $(MPI_FORTRAN_LIB)
# STRUMPACK library configuration
STRUMPACK_DIR = @MFEM_DIR@/../STRUMPACK-build
STRUMPACK_OPT = -I$(STRUMPACK_DIR)/include $(SCOTCH_OPT)
@@ -251,7 +283,13 @@ STRUMPACK_LIB = -L$(STRUMPACK_DIR)/lib -lstrumpack $(MPI_FORTRAN_LIB)\
# Ginkgo library configuration (currently not needed)
GINKGO_DIR = @MFEM_DIR@/../ginkgo/install
GINKGO_OPT = -isystem $(GINKGO_DIR)/include
GINKGO_LIB = $(XLINKER)-rpath,$(GINKGO_DIR)/lib -L$(GINKGO_DIR)/lib -lginkgo -lginkgo_omp -lginkgo_cuda -lginkgo_reference
GINKGO_LIB = $(XLINKER)-rpath,$(GINKGO_DIR)/lib -L$(GINKGO_DIR)/lib -lginkgo\
-lginkgo_omp -lginkgo_cuda -lginkgo_reference
# AmgX library configuration
AMGX_DIR = @MFEM_DIR@/../amgx
AMGX_OPT = -I$(AMGX_DIR)/include
AMGX_LIB = -lcusparse -lcusolver -lcublas -lnvToolsExt -L$(AMGX_DIR)/lib -lamgx
# GnuTLS library configuration
GNUTLS_OPT =
@@ -372,6 +410,15 @@ UMPIRE_DIR = @MFEM_DIR@/../umpire
UMPIRE_OPT = -I$(UMPIRE_DIR)/include
UMPIRE_LIB = -L$(UMPIRE_DIR)/lib -lumpire
# MKL CPardiso library configuration
MKL_CPARDISO_DIR ?=
MKL_MPI_WRAPPER ?= mkl_blacs_mpich_lp64
MKL_LIBRARY_SUBDIR ?= lib
MKL_CPARDISO_OPT = -I$(MKL_CPARDISO_DIR)/include
MKL_CPARDISO_LIB = -Wl,-rpath,$(MKL_CPARDISO_DIR)/$(MKL_LIBRARY_SUBDIR)\
-L$(MKL_CPARDISO_DIR)/$(MKL_LIBRARY_SUBDIR) -l$(MKL_MPI_WRAPPER)\
-lmkl_intel_lp64 -lmkl_sequential -lmkl_core
# If YES, enable some informational messages
VERBOSE = NO
+33
View File
@@ -0,0 +1,33 @@
// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit https://mfem.org.
//
// MFEM is free software; you can redistribute it and/or modify it under the
// terms of the BSD-3 license. We welcome feedback and contributions, see file
// CONTRIBUTING.md for details.
#include "dmumps_c.h"
#include <string>
#include <iostream>
#include <algorithm>
// Macros to expand a macro as a string
#define STR_EXPAND(s) #s
#define STR(s) STR_EXPAND(s)
int main()
{
#ifdef MUMPS_VERSION
const char *ptr = STR(MUMPS_VERSION);
std::string s(ptr);
s.erase(std::remove(s.begin(), s.end(), '"'), s.end());
s.erase(std::remove(s.begin(), s.end(), '.'), s.end());
std::cout << s << "\n";
return 0;
#else
return -1;
#endif
}
+21 -2
View File
@@ -42,6 +42,10 @@ GHV_FLAGS = $(subst @MFEM_DIR@,$(if $(MFEM_DIR),$(MFEM_DIR),..),$(HYPRE_OPT))
SMX = $(if $(MFEM_USE_PUMI:NO=),MFEM_USE_SIMMETRIX)
SMX_PATH = $(PUMI_DIR)/include/gmi_sim.h
SMX_FILE = $(subst @MFEM_DIR@,$(if $(MFEM_DIR),$(MFEM_DIR),..),$(SMX_PATH))
MUMPS = $(MFEM_USE_MUMPS:NO=)
GMV_CXX ?= $(MFEM_CXX)
GMV = get_mumps_version
GMV_FLAGS = $(subst @MFEM_DIR@,$(if $(MFEM_DIR),$(MFEM_DIR),..),$(MUMPS_OPT))
$(GHV): $(SRC)$(GHV).cpp
$(call mfem-info, Determining HYPRE version ...)
@@ -50,6 +54,13 @@ $(GHV).out: $(GHV)
./$(GHV) > $(GHV).out
.INTERMEDIATE: $(GHV) $(GHV).out
$(GMV): $(SRC)$(GMV).cpp
$(call mfem-info, Determining MUMPS version ...)
$(GMV_CXX) ${GMV_FLAGS} $(SRC)$(GMV).cpp -o $(GMV)
$(GMV).out: $(GMV)
./$(GMV) > $(GMV).out
.INTERMEDIATE: $(GMV) $(GMV).out
get-hypre-version: $(GHV).out
$(eval MFEM_HYPRE_VERSION:=$(shell cat $(GHV).out))
$(if $(MFEM_HYPRE_VERSION),$(eval export MFEM_HYPRE_VERSION)\
@@ -62,10 +73,18 @@ check-smx:
$(call mfem-info, MFEM_USE_SIMMETRIX = $(MFEM_USE_SIMMETRIX))
$(eval export MFEM_USE_SIMMETRIX)
header: $(if $(MPI),get-hypre-version,) $(if $(SMX),check-smx)
get-mumps-version: $(GMV).out
$(eval MFEM_MUMPS_VERSION:=$(shell cat $(GMV).out))
$(if $(MFEM_MUMPS_VERSION),$(eval export MFEM_MUMPS_VERSION)\
$(info MUMPS version: $(MFEM_MUMPS_VERSION)),\
$(error Unable to determine MUMPS version))
header: $(if $(MPI),get-hypre-version,) $(if $(SMX),check-smx,) \
$(if $(MUMPS),get-mumps-version,)
$(call mfem-info, Writing $(CONFIG_HPP) ...)
@set -- && \
for def in $${MFEM_DEFINES} $(if $(MPI),MFEM_HYPRE_VERSION) $(SMX); do \
for def in $${MFEM_DEFINES} $(if $(MPI),MFEM_HYPRE_VERSION) $(SMX) \
$(if $(MUMPS),MFEM_MUMPS_VERSION); do \
eval var=\$$$$def && \
if [ "NO" != "$${var}" ]; then \
set -- "$$@" -e "s|// \(#define $${def} \)|\1|" && \
+54 -7
View File
@@ -48,6 +48,10 @@ groups_serial=(
"miniapps/meshing"
"mobius-strip.cpp klein-bottle.cpp extruder.cpp toroid.cpp
mesh-optimizer.cpp minimal-surface.cpp"'
'"convergence"
"Convergence tests:"
"tests/convergence"
"rates.cpp"'
)
# Parallel groups
groups_parallel=(
@@ -78,6 +82,14 @@ groups_parallel=(
"miniapps/electromagnetics"
"joule.cpp"'
# "{volta,tesla,joule}.cpp"' # todo: multiline sample runs
'"convergence"
"Convergence tests:"
"tests/convergence"
"prates.cpp"'
'"par-mesh-format"
"Parallel mesh tests:"
"tests/par-mesh-format"
"ex1p.cpp"'
)
# All groups serial + parallel runs mixed in the same group:
groups_all=(
@@ -107,6 +119,14 @@ groups_all=(
"miniapps/electromagnetics"
"joule.cpp"'
# "{volta,tesla,joule}.cpp"' # todo: multiline sample runs
'"convergence"
"Convergence tests:"
"tests/convergence"
"{,p}rates.cpp"'
'"par-mesh-format"
"Parallel mesh tests:"
"tests/par-mesh-format"
"ex1p.cpp"'
)
make_all="all"
base_timeformat=$'real: %3Rs user: %3Us sys: %3Ss %%cpu: %P'
@@ -380,10 +400,15 @@ function timed_run()
# This function is used to execute the sample runs
function go()
{
local cmd=("$@")
# Strip leading and trailing spaces from $1 and store the result in cmd_line
shopt -s extglob
local cmd_line="${1##+( )}"
cmd_line="${cmd_line%%+( )}"
shopt -u extglob
eval local cmd=(${cmd_line})
local res=""
echo $sep
echo "<${group}>" "${cmd[@]}"
echo "<${group}>" "${cmd_line}"
echo $sep
if [ "${timing}" == "yes" ]; then
timed_run "${cmd[@]}"
@@ -395,15 +420,15 @@ function go()
else
res="${red}FAILED${none}"
fi
printf "[${res}] <${group}> ${cmd[*]}\n"
printf "[${res}] <${group}> ${cmd_line}\n"
if [ "${timing}" == "yes" ]; then
printf "Run time: %s\n" "${timer}"
timer=(${timer})
timer="${timer[1]}"
printf -v line "[$res](%8s) ${cmd[*]}" "$timer"
printf -v line "[$res](%8s) ${cmd_line}" "$timer"
summary=("${summary[@]}" "$line")
else
summary=("${summary[@]}" "[${res}] ${cmd[*]}")
summary=("${summary[@]}" "[${res}] ${cmd_line}")
fi
echo $sep
}
@@ -438,7 +463,7 @@ function go_group()
fi
for run in "${runs[@]}"; do
if [ "${run}" == "" ]; then continue; fi
eval go \${run_prefix} \${run} \${run_suffix} $output
eval go \"\${run_prefix} \${run} \${run_suffix}\" $output
done
done
${make} clean-exec
@@ -504,7 +529,7 @@ function echo_run()
{
echo " $@"
{ echo " $@"; echo "$sep";
"$@"
eval "$@"
echo "$sep"; } >> "$echo_log" 2>&1
}
@@ -524,6 +549,28 @@ function build_all()
echo_run ${make} config ${mfem_config} || exit 1
echo_run ${make} ${make_j} || exit 1
echo_run ${make} ${make_all} ${make_j} || exit 1
# Build groups in directories other than the directories built by 'make all':
for group_params in "${groups[@]}"; do
eval params=(${group_params})
group_dir="${params[2]}"
case "$group_dir" in
(examples*|miniapps*)
# Built by 'make all'
;;
(*)
if [ "${mfem_dir}" != "${mfem_build_dir}" ]; then
echo_run mkdir -p "${group_dir}" || exit 1
echo_run cd "${group_dir}" || exit 1
echo_run cp -af "${mfem_dir}/${group_dir}/makefile" . || exit 1
else
echo_run cd "${group_dir}" || exit 1
fi
echo_run ${make} clean || exit 1
echo_run ${make} MFEM_DIR="${mfem_dir}" ${make_j} || exit 1
echo_run cd "${mfem_build_dir}" || exit 1
;;
esac
done
}
# Function that runs all sample runs, given by the array variable "groups".
-2
View File
@@ -16,7 +16,6 @@ if (DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CodeDocumentation.conf.in
${CMAKE_CURRENT_BINARY_DIR}/CodeDocumentation.conf @ONLY)
add_custom_target(doc
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/CodeDocumentation.conf
COMMAND echo "<meta http-equiv=\"REFRESH\" content=\"0;URL=CodeDocumentation/html/index.html\">" > ${CMAKE_CURRENT_BINARY_DIR}/CodeDocumentation.html
@@ -32,5 +31,4 @@ if (DOXYGEN_FOUND)
COMMENT "Removing API documentation"
VERBATIM)
endif (DOXYGEN_FOUND)
+8 -5
View File
@@ -38,7 +38,7 @@ PROJECT_NAME = "MFEM"
# could be handy for archiving the generated documentation or if some version
# control system is used.
PROJECT_NUMBER = v4.1.1
PROJECT_NUMBER = v4.2.1
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
@@ -51,7 +51,7 @@ PROJECT_BRIEF = "Finite element discretization library"
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
# the logo to the output directory.
PROJECT_LOGO = web/logo-small.png
PROJECT_LOGO = logo-small.png
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
# into which the generated documentation will be written. If a relative path is
@@ -766,11 +766,14 @@ INPUT = @MFEM_SOURCE_DIR@/doc/CodeDocumentation.dox \
@MFEM_SOURCE_DIR@/mesh \
@MFEM_SOURCE_DIR@/fem \
@MFEM_SOURCE_DIR@/examples \
@MFEM_SOURCE_DIR@/examples/amgx \
@MFEM_SOURCE_DIR@/examples/ginkgo \
@MFEM_SOURCE_DIR@/examples/hiop \
@MFEM_SOURCE_DIR@/examples/petsc \
@MFEM_SOURCE_DIR@/examples/pumi \
@MFEM_SOURCE_DIR@/examples/hiop \
@MFEM_SOURCE_DIR@/examples/sundials \
@MFEM_SOURCE_DIR@/miniapps/adjoint \
@MFEM_SOURCE_DIR@/examples/superlu \
@MFEM_SOURCE_DIR@/miniapps/adjoint \
@MFEM_SOURCE_DIR@/miniapps/common \
@MFEM_SOURCE_DIR@/miniapps/electromagnetics \
@MFEM_SOURCE_DIR@/miniapps/gslib \
@@ -2334,7 +2337,7 @@ PLANTUML_INCLUDE_PATH =
# Minimum value: 0, maximum value: 10000, default value: 50.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_GRAPH_MAX_NODES = 10
DOT_GRAPH_MAX_NODES = 50
# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
# generated by dot. A depth value of 3 means that only nodes reachable from the
+40 -25
View File
@@ -62,7 +62,7 @@ namespace mfem {
* - <a class="el" href="ex9p_8cpp_source.html">Example 9p</a>: parallel Discontinuous Galerkin (DG) time-dependent advection
* - <a class="el" href="ex10_8cpp_source.html">Example 10</a>: time-dependent implicit nonlinear elasticity
* - <a class="el" href="ex10p_8cpp_source.html">Example 10p</a>: parallel time-dependent implicit nonlinear elasticity
* - <a class="el" href="examples_2ex11p_8cpp_source.html">Example 11p</a>: parallel Laplace eigensolver
* - <a class="el" href="ex11p_8cpp_source.html">Example 11p</a>: parallel Laplace eigensolver
* - <a class="el" href="ex12p_8cpp_source.html">Example 12p</a>: parallel linear elasticity eigensolver
* - <a class="el" href="ex13p_8cpp_source.html">Example 13p</a>: parallel Maxwell eigensolver
* - <a class="el" href="ex14_8cpp_source.html">Example 14</a>: Discontinuous Galerkin (DG) for the Laplace problem
@@ -90,20 +90,25 @@ namespace mfem {
* - <a class="el" href="ex25p_8cpp_source.html">Example 25p</a>: parallel simulation of electromagnetic wave propagation using a Perfectly Matched Layer (PML)
* - <a class="el" href="ex26_8cpp_source.html">Example 26</a>: multigrid preconditioner for the Laplace problem using nodal H1 FEM
* - <a class="el" href="ex26p_8cpp_source.html">Example 26p</a>: parallel multigrid preconditioner for the Laplace problem using nodal H1 FEM
* - <a class="el" href="ex27_8cpp_source.html">Example 27</a>: boundary conditions for the Laplace problem
* - <a class="el" href="ex27p_8cpp_source.html">Example 27p</a>: parallel boundary conditions for the Laplace problem
*
* <H4>SUNDIALS Examples</H4>
* <H4>AmgX Examples</H4>
* - Variants of Examples
* <a class="el" href="sundials_2ex9_8cpp_source.html">9</a>,
* <a class="el" href="sundials_2ex9p_8cpp_source.html">9p</a>,
* <a class="el" href="sundials_2ex10_8cpp_source.html">10</a>,
* <a class="el" href="sundials_2ex10p_8cpp_source.html">10p</a>,
* <a class="el" href="sundials_2ex16_8cpp_source.html">16</a>,
* and
* <a class="el" href="sundials_2ex16p_8cpp_source.html">16p</a>
* demonstrating the use of MFEM's \link sundials.hpp SUNDIALS classes\endlink
* - CVODES adjoint examples:
* <a class="el" href="cvsRoberts__ASAi__dns_8cpp_source.html">serial ODE system</a>,
* <a class="el" href="adjoint__advection__diffusion_8cpp_source.html">parallel advection-diffusion</a>
* <a class="el" href="examples_2amgx_2ex1_8cpp_source.html">1</a> and
* <a class="el" href="examples_2amgx_2ex1p_8cpp_source.html">1p</a>,
* demonstrating the use of MFEM's \link amgxsolver.hpp AmgX integration\endlink.
*
* <H4>Ginkgo Examples</H4>
* - Variants of Example
* <a class="el" href="examples_2ginkgo_2ex1_8cpp_source.html">1</a>,
* demonstrating the use of MFEM's \link ginkgo.hpp Ginkgo integration\endlink.
*
* <H4>HiOp Examples</H4>
* - Variants of Examples
* <a class="el" href="hiop_2ex9_8cpp_source.html">9</a> and
* <a class="el" href="hiop_2ex9p_8cpp_source.html">9p</a>,
* demonstrating the use of MFEM's \link hiop.hpp HiOp integration\endlink.
*
* <H4>PETSc Examples</H4>
* - Variants of Examples
@@ -115,8 +120,8 @@ namespace mfem {
* <a class="el" href="petsc_2ex6p_8cpp_source.html">6p</a>,
* <a class="el" href="petsc_2ex9p_8cpp_source.html">9p</a>,
* and
* <a class="el" href="petsc_2ex10p_8cpp_source.html">10p</a>
* demonstrating the use of MFEM's \link petsc.hpp PETSc classes\endlink
* <a class="el" href="petsc_2ex10p_8cpp_source.html">10p</a>,
* demonstrating the use of MFEM's \link petsc.hpp PETSc integration\endlink.
*
* <H4>PUMI Examples</H4>
* - Variants of Examples
@@ -124,19 +129,27 @@ namespace mfem {
* <a class="el" href="examples_2pumi_2ex1p_8cpp_source.html">1p</a>,
* <a class="el" href="pumi_2ex2_8cpp_source.html">2</a>,
* and
* <a class="el" href="pumi_2ex6p_8cpp_source.html">6p</a>
* demonstrating the use of MFEM's \link pumi.hpp PUMI classes\endlink
* <a class="el" href="pumi_2ex6p_8cpp_source.html">6p</a>,
* demonstrating the use of MFEM's \link pumi.hpp PUMI integration\endlink.
*
* <H4>HiOp Examples</H4>
* <H4>SUNDIALS Examples</H4>
* - Variants of Examples
* <a class="el" href="hiop_2ex9_8cpp_source.html">9</a> and
* <a class="el" href="hiop_2ex9p_8cpp_source.html">9p</a>,
* demonstrating the use of MFEM's \link hiop.hpp HiOp classes\endlink
* <a class="el" href="sundials_2ex9_8cpp_source.html">9</a>,
* <a class="el" href="sundials_2ex9p_8cpp_source.html">9p</a>,
* <a class="el" href="sundials_2ex10_8cpp_source.html">10</a>,
* <a class="el" href="sundials_2ex10p_8cpp_source.html">10p</a>,
* <a class="el" href="sundials_2ex16_8cpp_source.html">16</a>,
* and
* <a class="el" href="sundials_2ex16p_8cpp_source.html">16p</a>,
* demonstrating the use of MFEM's \link sundials.hpp SUNDIALS integration\endlink.
* - CVODES adjoint miniapps:
* <a class="el" href="cvsRoberts__ASAi__dns_8cpp_source.html">serial ODE system</a>,
* <a class="el" href="adjoint__advection__diffusion_8cpp_source.html">parallel advection-diffusion</a>.
*
* <H4>Ginkgo Examples</H4>
* <H4>SuperLU Examples</H4>
* - Variants of Example
* <a class="el" href="ginkgo_2ex1_8cpp_source.html">1</a>
* demonstrating the use of MFEM's \link ginkgo.hpp Ginkgo classes\endlink
* <a class="el" href="examples_2superlu_2ex1p_8cpp_source.html">1p</a>,
* demonstrating the use of MFEM's \link superlu.hpp SuperLU integration\endlink.
*
* <H3>Miniapps</H3>
* - <a class="el" href="volta_8cpp_source.html">Volta</a>: simple electrostatics simulation code
@@ -149,6 +162,7 @@ namespace mfem {
* - <a class="el" href="toroid_8cpp_source.html">Toroid</a>: generate simple toroidal meshes
* - <a class="el" href="twist_8cpp_source.html">Twist</a>: generate simple periodic meshes
* - <a class="el" href="minimal-surface_8cpp_source.html">Minimal Surface</a>: compute minimal surfaces, <a class="el" href="minimal-surface_8cpp_source.html">serial</a> and <a class="el" href="pminimal-surface_8cpp_source.html">parallel</a> versions
* - <a class="el" href="polar-nc_8cpp_source.html">Polar NC</a>: generate polar non-conforming meshes
* - <a class="el" href="shaper_8cpp_source.html">Shaper</a>: resolve material interfaces by mesh refinement
* - <a class="el" href="extruder_8cpp_source.html">Extruder</a>: extrude a low-dimensional mesh into a higher dimension
* - <a class="el" href="mesh-explorer_8cpp_source.html">Mesh Explorer</a>: visualize and manipulate meshes
@@ -161,10 +175,11 @@ namespace mfem {
* - <a class="el" href="lor-transfer_8cpp_source.html">LOR Transfer</a>: map functions between high-order and low-order refined spaces
* - <a class="el" href="findpts_8cpp_source.html">Find Points</a>: evaluate grid function in physical space, <a class="el" href="findpts_8cpp_source.html">serial</a> and <a class="el" href="pfindpts_8cpp_source.html">parallel</a> versions
* - <a class="el" href="field-diff_8cpp_source.html">Field Diff</a>: compare grid functions on different meshes
* - <a class="el" href="field-interp_8cpp_source.html">Field Interp</a>: transfer a grid functions between meshes
* - <a class="el" href="miniapps_2performance_2ex1_8cpp_source.html">HPC Example 1</a>: high-performance nodal H1 FEM for the Laplace problem
* - <a class="el" href="miniapps_2performance_2ex1p_8cpp_source.html">HPC Example 1p</a>: high-performance parallel nodal H1 FEM for the Laplace problem
*
* See also the <a class="el" href="../../../examples/README.html">README</a> in the <code>examples/</code> directory
* See also the <a class="el" href="https://mfem.org/examples/">examples documentation</a> online.
*/
}
+2 -2
View File
@@ -5,7 +5,7 @@
| | | | | || _|| __/| | | | | |
|_| |_| |_||_| \___||_| |_| |_|
http://mfem.org
https://mfem.org
This directory contains Doxygen configuration files for building HTML
documentation of the MFEM sources (including the example codes and miniapps).
@@ -21,7 +21,7 @@ create the file CodeDocumentation.html, which can be viewed in any web browser.
Alternatively, the (pre-build) documentation can be browsed directly online at
http://mfem.github.io/doxygen/html/index.html
https://mfem.github.io/doxygen/html/index.html
Some building considerations:

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

-1
View File
@@ -13,7 +13,6 @@ SHELL = /bin/bash
MFEM_DIR ?= ..
DOXYGEN_CONF = CodeDocumentation.conf
# doxygen uses: graphviz, latex
html: $(DOXYGEN_CONF)
@# Generate the html documentation
Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

-208
View File
@@ -1,208 +0,0 @@
body {
padding-top: 70px;
}
/* hack to increase height of headers to make #anchors work with the top nav-bar,
(note: we only want this on pages with TOC, otherwise there are other problems) */
div.col-md-9 h1[id]::before,
div.col-md-9 h2[id]::before,
div.col-md-9 h3[id]::before,
div.col-md-9 h4[id]::before,
div.col-md-9 h5[id]::before,
div.col-md-9 h6[id]::before {
content: "";
display: block;
margin-top: -75px;
height: 75px;
}
img {
max-width: 100%;
height: auto;
}
pre {
overflow-x: auto;
}
pre code {
overflow-wrap: normal;
white-space: pre;
font-size: 13.5px;
}
label {
font-weight: normal;
}
ul.nav li.main {
font-weight: bold;
}
div.col-md-3 {
padding-right: 0;
}
div.col-md-9, div.col-md-12 {
padding-bottom: 100px;
}
div.source-links {
float: right;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 25px;
margin-bottom: 25px;
}
img.floatright {
display: block;
float: right;
margin-top: 0;
margin-left: 25px;
margin-bottom: 25px;
}
img.teamphoto {
box-shadow: 4px 4px 4px #999;
}
p.centered {
margin-left: auto;
margin-right: auto;
text-align: center;
}
/*label {
display: inline-block;
margin-bottom: 5px;
font-weight: normal;
}*/
/*
* Side navigation
*
* Scrollspy and affixed enhanced navigation to highlight sections and secondary
* sections of docs content.
*/
/* By default it's not affixed in mobile views, so undo that */
.bs-sidebar.affix {
position: static;
}
.bs-sidebar.well {
padding: 0;
}
/* First level of nav */
.bs-sidenav {
/*margin-top: 10px;
margin-bottom: 10px;*/
padding-top: 10px;
padding-bottom: 10px;
border-radius: 5px;
}
/* All levels of nav */
.bs-sidebar .nav > li > a {
display: block;
padding: 5px 20px;
z-index: 1;
}
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
text-decoration: none;
border-right: 1px solid;
}
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
font-weight: bold;
background-color: transparent;
border-right: 1px solid;
}
/* Nav: second level (shown on .active) */
.bs-sidebar .nav .nav {
display: none; /* Hide by default, but at >768px, show it */
margin-bottom: 8px;
}
.bs-sidebar .nav .nav > li > a {
padding-top: 3px;
padding-bottom: 3px;
padding-left: 30px;
font-size: 90%;
}
/* Show and affix the side nav when space allows it */
@media (min-width: 992px) {
.bs-sidebar .nav > .active > ul {
display: block;
}
/* Widen the fixed sidebar */
.bs-sidebar.affix,
.bs-sidebar.affix-bottom {
width: 213px;
}
.bs-sidebar.affix {
position: fixed; /* Undo the static from mobile first approach */
top: 80px;
}
.bs-sidebar.affix-bottom {
position: absolute; /* Undo the static from mobile first approach */
}
.bs-sidebar.affix-bottom .bs-sidenav,
.bs-sidebar.affix .bs-sidenav {
margin-top: 0;
margin-bottom: 0;
}
}
@media (min-width: 1200px) {
/* Widen the fixed sidebar again */
.bs-sidebar.affix-bottom,
.bs-sidebar.affix {
width: 263px;
}
}
/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 50px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 50px;
background-color: #eeeeee;
overflow: hidden;
}
/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */
.container .text-muted {
margin-top: 17px;
margin-bottom: 0;
}
.container .alignleft {
float: left;
}
.container .alignright {
float: right;
}
File diff suppressed because one or more lines are too long
-11
View File
File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 767 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 337 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 373 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

-6
View File
File diff suppressed because one or more lines are too long
+16 -6
View File
@@ -117,16 +117,21 @@ if (MFEM_USE_SUPERLU)
${MPIEXEC_POSTFLAGS})
endif()
# Include the examples/sundials directory if SUNDIALS is enabled.
if (MFEM_USE_SUNDIALS)
add_subdirectory(sundials)
# Include the examples/amgx directory if AmgX is enabled
if (MFEM_USE_AMGX)
add_subdirectory(amgx)
endif()
# Include the examples/sundials directory if SUNDIALS is enabled.
# Include the examples/ginkgo directory if GINKGO is enabled.
if (MFEM_USE_GINKGO)
add_subdirectory(ginkgo)
endif()
# Include the examples/hiop directory if HiOp is enabled
if (MFEM_USE_HIOP)
add_subdirectory(hiop)
endif()
# Include the examples/petsc directory if PETSc is enabled.
if (MFEM_USE_PETSC)
add_subdirectory(petsc)
@@ -137,7 +142,12 @@ if (MFEM_USE_PUMI)
add_subdirectory(pumi)
endif()
if (MFEM_USE_HIOP)
add_subdirectory(hiop)
# Include the examples/sundials directory if SUNDIALS is enabled.
if (MFEM_USE_SUNDIALS)
add_subdirectory(sundials)
endif()
# Include the examples/superlu directory if SUPERLU is enabled.
if (MFEM_USE_SUPERLU)
add_subdirectory(superlu)
endif()
-1512
View File
File diff suppressed because one or more lines are too long
+79
View File
@@ -0,0 +1,79 @@
# Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
# at the Lawrence Livermore National Laboratory. All Rights reserved. See files
# LICENSE and NOTICE for details. LLNL-CODE-806117.
#
# This file is part of the MFEM library. For more information and source code
# availability visit https://mfem.org.
#
# MFEM is free software; you can redistribute it and/or modify it under the
# terms of the BSD-3 license. We welcome feedback and contributions, see file
# CONTRIBUTING.md for details.
set(AMGX_EXAMPLES_SRCS)
list(APPEND AMGX_EXAMPLES_SRCS
ex1.cpp
)
if (MFEM_USE_MPI)
list(APPEND AMGX_EXAMPLES_SRCS
ex1p.cpp
)
endif()
set(AMGX_JSON_FILES amg_pcg.json multi_gs.json precon.json)
# Include the source directory where mfem.hpp and mfem-performance.hpp are.
include_directories(BEFORE ${PROJECT_BINARY_DIR})
# Add targets to copy *.json files from the source directory
foreach(JSON_FILE ${AMGX_JSON_FILES})
add_custom_command(OUTPUT ${JSON_FILE}
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_SOURCE_DIR}/${JSON_FILE} ${JSON_FILE}
COMMENT "copy ${JSON_FILE}")
endforeach()
add_custom_target(copy_amgx_json_files DEPENDS ${AMGX_JSON_FILES}
COMMENT "Copying AMGX example json files ...")
# Add "test_amgx" target, see below.
add_custom_target(test_amgx
${CMAKE_CTEST_COMMAND} -R amgx USES_TERMINAL)
# Add one executable per cpp file, adding "amgx_" as prefix. Sets
# "copy_amgx_json_files" as a prerequisite for the given examples. Also, sets
# "test_amgx" as a target that depends on the given examples.
set(PFX amgx_)
add_mfem_examples(AMGX_EXAMPLES_SRCS ${PFX} copy_amgx_json_files test_amgx)
# Testing.
# The AMGX tests can be run separately using the target "test_amgx"
# which builds the examples and runs:
# ctest -R amgx
# Command line options for the tests.
# Example 1/1p:
set(EX1_TEST_OPTS)
set(EX1P_TEST_OPTS)
# Add the tests: one test per source file.
foreach(SRC_FILE ${AMGX_EXAMPLES_SRCS})
get_filename_component(SRC_FILENAME ${SRC_FILE} NAME)
string(REPLACE ".cpp" "" TEST_NAME ${SRC_FILENAME})
string(TOUPPER ${TEST_NAME} UP_TEST_NAME)
set(TEST_NAME ${PFX}${TEST_NAME})
set(THIS_TEST_OPTIONS "-no-vis")
list(APPEND THIS_TEST_OPTIONS ${${UP_TEST_NAME}_TEST_OPTS})
# message(STATUS "Test ${TEST_NAME} options: ${THIS_TEST_OPTIONS}")
if (NOT (${TEST_NAME} MATCHES ".*p$"))
add_test(NAME ${TEST_NAME}_ser
COMMAND ${TEST_NAME} ${THIS_TEST_OPTIONS})
else()
add_test(NAME ${TEST_NAME}_np=${MFEM_MPI_NP}
COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${MFEM_MPI_NP}
${MPIEXEC_PREFLAGS}
$<TARGET_FILE:${TEST_NAME}> ${THIS_TEST_OPTIONS}
${MPIEXEC_POSTFLAGS})
endif()
endforeach()
+18
View File
@@ -0,0 +1,18 @@
Finite Element Discretization Library
__
_ __ ___ / _| ___ _ __ ___
| '_ ` _ \ | |_ / _ \| '_ ` _ \
| | | | | || _|| __/| | | | | |
|_| |_| |_||_| \___||_| |_| |_|
https://mfem.org
This directory contains modifications of the example codes that illustrate the
use of MFEM features based on NVIDIA's multigrid library AmgX.
To build these examples, make sure that MFEM is configured with the option
"MFEM_USE_AMGX = YES", see the top-level INSTALL file for details (version
2.1 of AmgX is recommended, though older versions may work too.
We recommend comparing the original example codes with the corresponding files
in the current directory.
+38
View File
@@ -0,0 +1,38 @@
{
"config_version": 2,
"solver": {
"preconditioner": {
"print_grid_stats": 1,
"print_vis_data": 0,
"solver": "AMG",
"smoother": {
"scope": "jacobi",
"solver": "BLOCK_JACOBI",
"relaxation_factor": 0.7,
"monitor_residual": 0,
"print_solve_stats": 0
},
"print_solve_stats": 0,
"presweeps": 1,
"interpolator": "D2",
"max_row_sum" : 0.9,
"strength_threshold" : 0.25,
"max_iters": 2,
"monitor_residual": 0,
"store_res_history": 0,
"scope": "amg",
"max_levels": 100,
"cycle": "V",
"postsweeps": 1
},
"solver": "PCG",
"print_solve_stats": 1,
"obtain_timings": 1,
"max_iters": 100,
"monitor_residual": 1,
"convergence": "RELATIVE_MAX",
"scope": "main",
"tolerance": 1e-12,
"norm": "L2"
}
}

Some files were not shown because too many files have changed in this diff Show More