Commit Graph
103 Commits
Author SHA1 Message Date
Sohail Reddy f768ba1c75 Changed ImplicitVariable to ImplicitVariableType 2025-11-20 11:04:10 -08:00
Sohail Reddy a5835794e5 fixed examples to use new variable names 2025-10-24 14:31:21 -07:00
Sohail Reddy db8c62eaf5 Added documentation on switching between solving for stage state and slope, updated examples and variable names. 2025-10-24 14:22:12 -07:00
Sohail Reddy 5fd5b76e47 Updated examples ex9 and ex16 to demonstrate use of implicit stage-state vs stage-slope solve. 2025-10-19 16:51:07 -07:00
Will Pazner 2ac825abe8 Merge remote-tracking branch 'origin/master' into pa-empty-partitions
# Conflicts:
#	fem/bilininteg.cpp
#	fem/quadinterpolator.cpp
2024-11-22 11:05:49 -08:00
Veselin Dobrev 17955e1140 Merge pull request #3480 from mfem/ab-am-refactor
New ode solver selection mechanism[ab-am-refactor]
2024-10-28 14:08:56 -07:00
Will Pazner d8a9621dd5 Fix sample runs with new ODE type integers
Also add type 6 for RK6
2024-10-16 21:59:22 -07:00
Will Pazner b023416c47 Use override specifier in more places
Identified using clang-tidy check 'modernize-use-override'
2024-08-05 09:45:46 -07:00
dylan-copeland 337ab968e1 Override for more header files, miniapps, and examples. 2024-07-19 16:38:03 -07:00
Will Pazner ef9043a122 Replace many instances of GetFE(0) with GetTypicalFE()
Also replace many instances of GetElementTransformation(0) with
GetTypicalElementTransformation() and instances of GetElementGeometry(0) with
GetTypicalElementGeometry().

Remove some "early returns" in PA code with empty partitions. The reasoning is
that the early returns create divergent code paths among different MPI ranks,
which can cause deadlocks if e.g. collectives are used in code paths on not all
ranks.
2024-04-23 14:45:30 -07:00
IdoAkkerman 43533b51d5 Merge branch 'master' into ab-am-refactor 2024-04-02 16:58:57 +02:00
Tzanio Kolev d983b34924 Renamed ftype -> real_t 2023-12-13 12:51:43 -08:00
Dylan Copeland a8c34e351e Reverted to fmin and fmax for GPU kernels. Fixed some examples for pcuda build. 2023-11-10 21:30:07 -08:00
Dylan Copeland 47e62a55f9 Merge branch 'master' of github.com:mfem/mfem into float 2023-11-09 21:38:06 -08:00
Ido Akkerman 282e5b1a3d Merge branch 'master' into ab-am-refactor 2023-11-06 09:36:14 +01:00
IdoAkkerman 1d194da30d Merge branch 'master' into ab-am-refactor 2023-11-02 16:16:28 +01:00
Dylan Copeland 9017b9700d Finished generalizing type in fem directory. 2023-11-01 15:54:41 -07:00
stefanhenneking b9b7df82a1 minor fix 2023-10-05 13:33:27 -05:00
stefanhenneking 336d51bb0a Changing operator height to be semantically consistent with true DOF definitions. 2023-10-05 13:00:57 -05:00
Veselin Dobrev 4204030251 Copy updates from examples/ex9p to the SUNDIALS version.
Small formatting changes.
2023-06-26 17:58:49 -07:00
Ido Akkerman 1f564b2674 Split implicit and explicit solvers in selection routine 2023-03-27 10:52:14 +02:00
Will Pazner 4ace41773d Remove Mpi::Session, access directly using static member functions 2022-03-11 15:41:07 -08:00
Will Pazner 8d812ec8c3 Rename MPI class to Mpi to avoid conflict with (deprecated) C++ MPI namespace 2022-03-11 13:43:14 -08:00
Tzanio f2cad1e55b MPI_Session -> MPI singleton in examples, miniapps and tests 2022-03-08 19:29:45 -08:00
Tzanio 8f7cb0b3db Switch to a singleton for the hypre session object: 'HYPRE_Session hypre;' -> 'Hypre::Init();' 2022-03-08 18:06:43 -08:00
Tzanio 447f00d80b Added a HYPRE_Session class to hypre.?pp and examples/miniapps 2022-03-07 14:22:22 -08:00
Yohann Dudouit f4a2077c8b Same for ex9p. 2022-02-10 16:09:50 -08:00
Yohann Dudouit a34fcc4beb Merge branch 'master' into yohann/pa-dg-ncmesh 2021-08-30 13:12:11 -07:00
Tzanio Kolev dd94dc9d14 Merge pull request #2240 from mfem/fix-gmsh-periodic
Fix gmsh periodic meshes [fix-gmsh-periodic]
2021-05-18 17:07:35 -07:00
Will Pazner 3914176e37 Remove -no-vis and -paraview from ex9 and ex9p sample runs
In sample runs tests -no-vis was specified twice, causing an error.
2021-05-17 18:50:16 -07:00
Aaron Fisher 212ce737bb Removed preceding underscore variables in the examples and miniapps, and caught a couple I missed before. 2021-05-14 14:12:37 -07:00
Will Pazner 1183c12b41 Add sample runs to ex9 using straight-sided periodic gmsh meshes 2021-05-12 10:13:43 -07:00
Yohann Dudouit 6a8a33467f More tweaks on sample runs. 2021-05-05 12:34:18 -07:00
Yohann Dudouit a4d9f61114 Tweak sample runs 2021-05-05 12:32:52 -07:00
Yohann Dudouit d1486d8026 Add device sample runs on NCMesh. 2021-05-05 12:16:42 -07:00
Julian Andrej a9ea9cba15 Merge branch 'master' into hypre-mixedint 2021-04-09 12:00:35 -07:00
Yohann Dudouit 30f0264449 Rename LEGACYFULL to LEGACY. 2021-02-05 15:03:42 -08:00
0d9146d364 [SQUASH-MERGE] AIR solver in Hypre (#1053)
* AIR solver

* AIR: block-diag scaling, set AIR options

* new example

* SetAIROptions

* fix bugs

* more bug fix

* initialize solution vector in ode

* added blocksize

* Added command0line flags for AIR parameters.

* implemented ParCSRMatrix add in hypre and added MFEM interface.
no assumptions on "the same col_map_offd" as in the old "Add".
Should replace Add (no longer needed) with the new one

* Added absolute tolerance to HypreGMRES.

* Updated advection driver, added options to use BoomerAMG w/o gmres.

* Missing &

* AIR options: type of dropping entries for filtering A

* boomeramg print options.

* add a different \theta for R

* minor change

* for hypre 2.14

* test

* give hypre dof's coordinates

* nodal coarsening support

* changes according to the new changes in hypre/AIR [Sabs, BdiagInv]

* Added function to get CSR for on-processor rows of hyper matrix.

* Merged Ruipeng's edits with get processor function.

* Added hypre preconditioner for on-processor diret solves of triangular matrices.

* Added function to set max levels of BoomerAMG

* Added function to set max levels of BoomerAMG

* Merging with master

* Added extra functions to set specific BoomerAMG options such as interpolation, coarsening, etc.

* Added cycle option to boomeramg.

* Added funtionality to hypre boomeramg class

* Updated to support d1.5 AIR

* Added nAIR vs. lAIR options:

* Updated advection example

* Accidentally added build folder

* Small fixes to hypre files

* Add MFEM_adv steady-state-non-periodic test cases.

Add visualization.

Change config/defaults.mk to point to hypre dir.

* Corrected typo in MFEM_adv.cpp.

* Add multiple SN directions (azimuthal) as ImplicitSolve unknowns.

* Add higher azimuthal resolution test.

* Reduced number of AMG_solvers to one (not SN).

Clean up.

* First step towards the electron transport.

Hypre-mass-matrices-sparsity works.

* Code clean and tested.

Plasma profiles and all coeficients defined by functions.

* Transport example extended to run on ALE meshes (within the hydro code).

* Add include in exTRguts example.

* Source of particles inside Mult/ImplicitSolve.

* Scalar flux evolved within the TimeIntegrator.

* Integration over velocity range + a nice fig.

* AWBS/v3 model on, decelaretion integration on.

dfMdv source needs to be checked to give ne.

* AWBS working. Number of particles test ok.

* Both explicit and implicit integrators num of particles test ok.

* Add timer.

* Add AIR parameters parsing for AWBS runs.

* Add ne_ref and test nonlocal/local runs.

* Improved timer

Better matrix in memory treatment.

* Add velocity range input params.

* Add E field v-limiting

Lorentz Efield calculation.

* Add working scattering.

Low density -> positivity problems.

* A working setting (dv = - dt).

mpirun -n 4 exTRguts -m '../data/inline-quad.mesh' -rs 2 -vis -s 24 -ne 1e21 -sna 8 -vini 1.0 -vfin 0.0 -Ngr 100 -scit 1

Scattering is off.

* Scattering converges, yet unchecked.

mpirun -n 4 exTRguts -m '../data/inline-quad.mesh' -rs 1 -vis -s 24 -ne 1e21 -sna 4 -vini 1.0 -vfin 0.075 -Ngr 100 -scit 30

* Scaled -> nicer plot.

* Add exETRp example.

* Scattering is on.

* rm temp files, add user cmake to gitignore

* Added some more hypre options

* Updated example 9 to support implicit time stepping and AIR

* Added ex23 DG adv-diff with AIR for implicit solves

* example updates

* Fixing merge issue

* added two air options

* Updated AIR flags to be consistent with hypre master branch

* Removed include folder from repo

* removed build dir accidentally added..

* Removed TRT deve examples

* Removed TRT dev file

* Removed 23, MFEM_adv, updated ex9p to have AIR support

* Fixing travis stuff

* More travis

* Update hypre version in yml file for Travis

* Update hypre version in appveyor yml

* Update .appveyor.yml

* \ for windows?

* Added general DG blocksize, added extrat submatrix routine from hypre

* Fixed pointer

* Merge w/ master, fix one space in style

* Missed hypre dirs in appveyor and travis

* Reset appveyor/travis, added flag for hypre >= 21800.

* missed some hypre version #s

* Ex9 was modified in master, auto merge didn't work

* Ex9 running on quartz

* Affressing most of Dylan's comments

* Cleaning up hypre/AIR interface, addressing comments

* Some more comments

* Simplify AIR with ex9p

* Minor changes to hypre/AIR interface

* Use MPI_Session in ex9p

* Use Array instead of pointer

* Use HYPRE_Int or HYPRE_BigInt instead of int

* make style

* Minor

* Fix signed/unsigned int warning

* Removed boomeramg mult, added doxygen for wraphypreparvector

* Use MFEM's hypre memory wrappers

* Remove HypreBoomerAMG::Mult from header

* Added AIR comments, #if for hypre version

* Make input parameter const

* Use 3 procs for sample run

* Re-add comment

* Address review comments

* Address issues in WrapHypreParCSRMatrix

* Fix unintended change

* Fix memory leak in HypreParMatrix::MergeDiagAndOffd

* Small doxygen updates.

* Always call HypreParMatrix::Destroy when wrapping new vector

* Update CHANGELOG

Co-authored-by: Ruipeng Li <li50@llnl.gov>
Co-authored-by: Ruipeng Li <li50@quartz2498.llnl.gov>
Co-authored-by: holec1 <holec1@llnl.gov>
Co-authored-by: milan_holec <homijan@gmail.com>
Co-authored-by: Tzanio <tzanio@llnl.gov>
Co-authored-by: Will Pazner <will.e.p@gmail.com>
Co-authored-by: Veselin Dobrev <dobrev@llnl.gov>
2021-01-19 12:46:34 -08:00
Will Pazner 57975eb915 Use default beta value in ex9 and ex9p. 2021-01-05 17:26:52 -08:00
Will Pazner 7dd8e562d5 Add constants for alpha and beta in ex9 and ex9p 2021-01-04 11:48:25 -08:00
Will Pazner d738070ee2 Unify coefficients for DGTraceIntegrator and NonconservativeDGTraceIntegrator 2020-12-22 17:37:29 -08:00
Will Pazner 08de600931 Modify ex9 and ex9p to use NonconservativeDGTraceIntegrator 2020-12-02 08:33:45 -08:00
Veselin Dobrev 785486f12f Update examples, miniapps, tests to use HYPRE_BigInt instead
of HYPRE_Int where appropriate.
2020-07-25 20:47:06 -07:00
Tzanio Kolev c4d8bd4744 Merge branch 'master' into yohann/fa 2020-07-14 15:27:10 -07:00
Yohann Dudouit 2de28abb19 Revert changes in ex9 and ex9p. 2020-07-02 15:51:05 -07:00
Veselin Dobrev dd23ccddb3 In ex4p, added a sample run that tests hybridization in 2D when
there are ghost shared faces using amr-quad.mesh on 3 processors.

In ex9p, added a sample run on amr-hex.mesh on 3 processors so
have a test case with ghost shared faces in 3D.
2020-06-17 22:39:16 -07:00
Yohann Dudouit 3ec12f0866 Add device sample runs to ex9 and ex9p. 2020-06-10 12:45:10 -07:00
Yohann Dudouit 00a431e5b3 Remove white space. 2020-05-26 13:19:59 -07:00
Yohann Dudouit cc9dd4e34e Modify parallel exemples for testing purpose. 2020-05-26 13:03:49 -07:00
Yohann Dudouit 43fe97f5f9 Revert "Use a string option to select the Assembly Level."
This reverts commit bd3f1bc431.
2020-04-27 16:56:31 -07:00