Commit Graph
538 Commits
Author SHA1 Message Date
izaid 5cd3ec521b applied astyle 2026-01-08 23:19:16 +00:00
izaid 90353c437e Fixed bug in GetSurfaceFittingErrors 2026-01-01 23:09:09 +01:00
John CamiercamierjsVladimir Z TomovMittal, Ketan <mittal3@llnl.gov>
50368046bc [TMOP] Simplify kernels (#3658)
* Simplify TMOP kernels, fix unit tests to run --all tests with adjusted tolerance

* make style

* Split TMOP h3s file with metrics

* TMOP kernel MFEM_HOST_DEVICE fix

* Cleanup TMOP CUDA kernels from base class

* Added TMOP PA metrics directory

* meld toward master

* [tmop] struct to class friends

* Simplify tmop file names

* make style

* Cleanup

* Style and vscode gitignore

* WIP resolve conflicts

* 2024 headers

* Tmop pass

* All tmop tests

* make style

* Add astyle to clang format

* make style

* Fix class visibility

* Include cleanup

* real_t pass

* style

* MFEM_REGISTER_KERNELS for TMOPAssembleGradPA_001

* make style

* add config files

* Update config

* metric_t

* wip with T

* wip

* wip T Specialization

* c++20, fmt make_format_args

* print types and values

* wip Kernel<decltype(M)>

* wip

* Working with metric_t, int, int

* C++20 ok

* C++17 cleaned

* Rename tmop files

* Sync TMOP kernels with dispatch

* make style

* Cleanup metrics

* Use TMOPKernel

* 3D metrics standalone

* Chdir assemble

* tmop 2d/3d directories

* TMOP assemble using specializations

* All TMOP kernel specializations

* MFEM_REPORT_KERNELS

* make style

* Sync with master

* Sync with master

* make style

* make style

* Removed 2d/3d TMOP sub-directories

* CMake TMOP file list update

* makefile directories order

* With style

* Re-enable vscode gitignore

* Fix merge conflicts

* make style

* Sync

* Meld toward master

* Changes toward master

* make style

* Meld back fem tmop files

* Fix TMOP_Integrator friends

* PA tests fix & history bump

* Cleanup test tmop and fix energy2 metric data

* Update copyright 2010-2025

* 2D energy metrics

* 3D energy metrics

* make style

* Simplify metric registration

* TMOP fem kernels with double buffering

* grad3, grad3_coef

* grad3_coef, grad3, mult3_coefs, mult3

* TMOP sm kernels tools

* Rename kernels smem and use regs

* Grad3 w/ vector reg grad

* Kernel register cleanup

* Add MAX_TMOP_1D and HIP tmop ctests

* Add kernels_foreach

* Add kernels foreach

* Prefix foreach_thread

* Kernels regs w/ foreach threads

* Swap Y and X in forward only

* Backward kernels_regs

* Use simplified grad3d

* Wip D1D Q1D

* Runtime D1D Q1D

* Remove T1D

* Cleanup

* AddKernelSpecializations

* Sync with SetMaxOf

* Rename to LoadDofs and use deduced templated parameters

* Grad2d & factorization

* Eval3d for grad3 coef

* Eval2d for grad2 coef

* Cleanup TMOP_SetupGradPA_C0_2D

* Use Bld and B

* Use other accessors

* TMOPAddMultPA3D

* TMOP_AddMultPA_C0_2D

* TMOP_AddMultGradPA_3D

* TMOP_AddMultGradPA_2D

* TMOP_AddMultGradPA_C0_3D

* AddMultGradPA_C0_2D

* TMOP_AssembleDiagonalPA_2D

* Wip TMOP_AssembleDiagonalPA_C0_3D

* TMOP_AssembleDiagonalPA_3D

* TMOP_MinDetJpr_3D

* TMOP_EnergyPA_C0_2D

* TMOPEnergyPA3D

* TMOP_TcIdealShapeGivenSize_3D

* TMOP_DatcSize_3D

* Remove MAX_TMOP_1D

* Remove smem kernels

* TMOP cleanup

* TMOP - solve for displacements #4694 changes

* Cleanup and move verifications

* Rename TMOP Assemble kernels

* Move kernel regs to TMOP pa

* make style

* Meld back toward master

* Meld back to master

* Use static constexpr

* Temporary branch-history

* Help msvc with namespaces

* MSVC inner static constexpr

* Move regs to mfem namespace

* MSVC all static constexpr

* TMOP_AssembleDiagPA_C0_3D w/o regs

* Avoid set but unused variable

* MSVC TMOP_AssembleDiagPA_C0_3D ternary test try

* MSVC MFEM_TMOP_REGISTER_MDQ_KERNEL

* Switch to MFEM_TMOP_MDQ_REGISTER

* MSVC help with static constexpr

* MSVC conversions try

* MSVC as_regs2d_ref

* MSVC Explicitly bind as reference

* MSCV with reinterpret_cast

* MSVC avoiding required l-values

* MSVC avoid explicit ref bindings

* MSVC avoid explicit ref bindings 2D

* Cleanup

* Enable MFEM_TMOP_PA_DEVICE with makefile

* TMOP tests w/o Kernel Specializations

* TMOP re-enable kernels specializations

* TMOP PA tests tolerances

* TMOP tests adjustments

* Fix transposed eval regs access

* MSVC remove not allowed dllimport definitions

* MSVC linalg vector warning fix

* MSVC avoiding definition of dllimport function not allowed

* Re-enable DetKernels specializations

* Sync latest TMOP changes

* TMOP PA tests normalization wip

* Sync TMOP tests

* Remove debug file

* Meld back toward master

* Add missing tmop make source dir

* tmop shadowing, CMake & make mpi tests

* TMOP periodic tests, shadowing fix

* TMOP pa mpi tests, fix shadowing

* TMOP tighten Square01 + Combo tests

* TMOP MSVC include ordering

* Revert TMOP MPI debug device tests

* Add TMOP_DatcSize_2D

* Use mfem::future for tensor

* Move TMOP PA specific kernels to sync'ed fem kernels

* makefile source dirs fix

* use explicit namespace to avoid clash (swap)

* Revert to MFEM_FOREACH_THREAD
Use scalar/vector regs types

* Sync kernels

* Sync kernels

* Avoid applying non-zero offset to null pointer runtime error

* Remove debug include

* TMOP rename coef to limit

* Comments.

* minor

* changelog

* Replace TMOP's MFEM_FOREACH_THREAD with MFEM_FOREACH_THREAD_DIRECT

* add some missing metric IDs

* Revert branch-history

* Add missing MFEM_SYNC_THREAD in kernels
Verify TMOP isfinite energy

* UseDevice for local vectors

* make style

* No grids in TMOP_DatcSize kernels

* Remove isfinite assertions
Cleanup unused header files
Add 3D energy finite verifications

* Filter out TMOP PA tests

---------

Co-authored-by: camierjs <camierjs@Io>
Co-authored-by: Vladimir Z Tomov <tomov2@llnl.gov>
Co-authored-by: Mittal, Ketan <mittal3@llnl.gov>
2025-11-13 08:47:32 -08:00
Mittal, Ketan 3c0a73479a fix mu55 2025-09-16 09:36:08 -07:00
Mittal, Ketan e0cb9ebe3b add mu55 2025-08-13 14:29:11 -07:00
Vladimir Z Tomov eb3bd655df Update future::dual. 2025-08-11 14:56:52 -07:00
Vladimir Z Tomov 6a862ca233 Merge branch 'master' into tmop-ad-wcuo 2025-08-11 14:45:24 -07:00
Mittal, Ketan 9d72af995f remove unneeded code 2025-06-27 12:50:27 -07:00
Mittal, Ketan b099252dcf fix 2025-06-27 11:50:06 -07:00
ce5fd63d0a dfem phase 1 changes
Co-authored-by: camierjs <camierjs@gmail.com>
Co-authored-by: Veselin Dobrev <dobrev@llnl.gov>
2025-05-29 13:02:23 -07:00
Mittal, Ketan 2b962e18a6 Merge branch 'master' of https://github.com/mfem/mfem into tmop-ad-wcuo 2025-05-29 11:50:52 -07:00
Mittal, Ketan 6e5c7fd286 Merge branch 'tmop-ad-wcuo' of https://github.com/mfem/mfem into tmop-ad-wcuo 2025-05-29 11:50:47 -07:00
Mittal, Ketan 6303361f5a minor fix to abort msg 2025-05-29 11:50:35 -07:00
Ketan MittalandCopilot 076ad6907f Update fem/tmop.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-30 12:25:37 -07:00
Mittal, Ketan 9faa6f8968 fix compiler error 2025-04-29 10:56:52 -07:00
camierjs a3ca3a7b58 Simplify ComputeNormalizationEnergies comment 2025-04-29 10:48:58 -07:00
Mittal, Ketan cf6c98654a add mu14 and mu66 2025-04-29 10:12:39 -07:00
Mittal, Ketan e818d6645b minor 2025-04-28 17:08:28 -07:00
Mittal, Ketan 73313bb44d remove some duplication 2025-04-28 17:07:03 -07:00
Mittal, Ketan 838398e4e7 AD for WCUO 2025-04-26 17:48:00 -07:00
camierjs 5750f09a1d Fix ComputeNormalizationEnergies with non-linear iterations 2025-04-24 16:49:27 -07:00
camierjs f0826d5f8e TMOP wip diffs 2025-04-24 12:05:57 -07:00
camierjs db2a272a38 Combo with balance tests 2025-04-24 11:05:24 -07:00
camierjs 527f1b9631 Merge branch 'tmop-energy-kernels' into tmop-weights 2025-04-24 09:21:19 -07:00
Vladimir Z Tomov 9bb600a87c Kernels for ComputeBalancedWeights in combo metrics. 2025-04-23 17:51:27 -07:00
camierjs d723d05b8f Debug traces & ComputeAllElementTargets 2025-04-23 17:49:48 -07:00
camierjs f34f4600b7 TMOP tests update & sync 2025-04-23 16:29:13 -07:00
Vladimir Z Tomov 9dbf656433 PA kernels for EnableNormalization. 2025-04-23 15:08:04 -07:00
Vladimir Z Tomov 12bf4a450d Merge branch 'master' into tmop-combo-ir 2025-04-19 23:10:19 -07:00
Vladimir Z Tomov 74ed3102d2 minor 2025-04-19 23:03:49 -07:00
Vladimir Z Tomov 7b083081dc Option IntRule to ComputeBalancedWeights(). 2025-04-19 23:01:54 -07:00
Tzanio Kolev b8fcc35cbc Merge branch 'master' into mfem-4.8-dev 2025-04-01 16:44:23 -07:00
Tzanio Kolev b3e19a2e7a Typos and styling 2025-03-31 18:48:43 -07:00
Vladimir Z Tomov beb78bfddd Review comments. 2025-03-23 23:02:13 -07:00
Vladimir Z Tomov 26f4d3927c Changes in mesh-optimizer.cpp.
Fixed a bug in serial + PA + CG advector.
2025-03-14 17:28:03 -07:00
Vladimir Z Tomov f71553f6db minor 2025-03-12 18:28:27 -07:00
Vladimir Z Tomov ee0aa9bca7 renamed variables 2025-03-12 18:12:09 -07:00
Vladimir Z Tomov edf2614651 minor 2025-03-12 17:33:57 -07:00
Vladimir Z Tomov 36a687fcb1 style 2025-03-12 16:59:15 -07:00
Vladimir Z Tomov 6210ea712d changed some L2-H1p transitions. 2025-03-12 16:35:00 -07:00
Vladimir Z Tomov 98ae71ab6d Updated PA.XO in AssemblePA 2025-03-12 11:40:31 -07:00
Vladimir Z Tomov 52e5d573bf Merge branch 'tmop-delta' into tmop-periodic 2025-03-12 10:06:36 -07:00
Vladimir Z Tomov 60eb10c5d7 reviewer comments. 2025-03-12 09:45:50 -07:00
Vladimir Z Tomov e46c3929d1 periodic sample runs and 3D mesh. 2025-03-11 16:01:53 -07:00
Vladimir Z Tomov 859f15088c aborted periodic fitting, fixed the adaptive limiting. 2025-03-11 10:45:10 -07:00
Ketan Mittal d7f3fde747 Merge branch 'master' into tmop-delta 2025-03-05 09:43:30 -06:00
Vladimir Z Tomov 88be18f03c Periodic advective adaptivity. 2025-02-27 13:22:41 -08:00
Vladimir Z Tomov 92fa66c5d4 restored HR-adapt and FD for non-periodic. 2025-02-26 16:02:34 -08:00
Vladimir Z Tomov f671f7c453 restored surface fitting for non-periodic meshes 2025-02-26 13:56:09 -08:00
Vladimir Z Tomov 012036d007 Periodic limiting. 2025-02-21 17:35:58 -08:00