Commit Graph
177 Commits
Author SHA1 Message Date
60cc94e5a1 Update to use PetscCtxRt from (3,25,0), and cleanup duplicate code
Co-authored-by: Nuno Nobre <nuno.nobre@stfc.ac.uk>
Co-authored-by: Satish Balay <balay@mcs.anl.gov>
2026-02-26 11:57:27 -06:00
Satish Balay 9122ac1839 update KSPMonitorFn usage for < (3,24,0) 2026-02-26 11:57:22 -06:00
Satish Balay 864186117d update PetscCtxDestroyFn usage for < (3,23,0) 2026-02-26 11:56:15 -06:00
Satish Balay 213ccd7a4e rework PetscContainerSetCtxDestroy() usage for < (3,23,0) 2026-02-18 15:51:42 -06:00
adam-sim-dev bd4f07f6cb Use MPI_C_BOOL for PETSc>=3.24.0 2025-12-16 13:51:43 +08:00
Barry Smith 4126d32772 Update to change in PETSc API for MatShellSetOperation() 2025-09-22 11:24:29 -04:00
Tzanio Kolev e4c2152419 Update Copyright to 2010-2025 2025-02-03 12:17:26 -08:00
Alex Lindsay 49450e3db7 Switch to PETSC_VERSION_LT 2024-12-23 16:56:35 -07:00
Alex Lindsay dc1b1ce0ec PetscContainerSetUserDestroy -> PetscContainerSetCtxDestroy 2024-11-08 11:39:20 -08:00
Stefano Zampini f57aa5a808 PETSc: fix Operator type conversion for device matrices
Add MATGENERIC to the supported operators for some operations
2024-09-08 09:56:58 +03:00
Stefano Zampini a79c2b81cd PETSc: update to real_t 2024-03-26 23:07:55 +03:00
Stefano Zampini d26ea85877 Merge remote-tracking branch 'origin/master' into stefanozampini/petsc-3.21 2024-03-26 22:20:57 +03:00
Stefano Zampini e34c323edf Petsc: Support 3.21
add missing 3D Hcurl test (fixed in PETSc main) see https://github.com/mfem/mfem/issues/4050
PetscH2Solver::H2SolverConstructor fix ignored error codes
2024-03-19 17:33:03 +03:00
Tzanio Kolev 87290fbf56 Update Copyright to 2010-2024 2024-01-27 13:06:49 -08:00
Stefano Zampini 28aa4ebe26 PETSc: work with strict-petscerror configuration 2023-07-19 17:23:30 +02:00
Stefano Zampini d5a143ce0a Set device flag from x when not copying it 2023-07-19 17:00:45 +02:00
Stefano Zampini 1d9865c681 PETSc: fix for HAVE_DEVICE true and no MFEM DEVICE 2023-07-19 16:59:49 +02:00
stefanozampini 2e987d7744 PetscMatrix: bind to cpu if device is now allowed 2023-07-19 16:59:48 +02:00
stefanozampini 1cb8697ad1 PETSc: add support for HIP 2023-07-19 16:59:48 +02:00
stefanozampini bae1d521ec PetscPCGSolver: wrap must be true! 2023-07-19 16:59:48 +02:00
Tzanio Kolev 96e00dc815 Updated COPYRIGHT to 2010-2023 2023-03-11 16:58:18 -08:00
Tzanio Kolev 55ccded864 Merge pull request #3307 from mfem/petsc-warning-fix
Fix PETSc 3.18.0 deprecation warning about MATTRANSPOSEMAT
2022-11-08 10:21:32 -08:00
Stefano Zampini c5c9a002c0 PetscLinearSolver: respect command line option for nonzero initial guess 2022-11-07 10:40:39 +03:00
Veselin Dobrev 319d383af9 Fix PETSc 3.18.0 deprecation warning about MATTRANSPOSEMAT 2022-11-05 19:49:20 -07:00
Stefano Zampini 589eefedfb Add block size support 2022-08-31 10:48:57 +03:00
Tzanio 6d2530775b Extended copyright to 2022 2022-02-25 10:24:50 -08:00
Stefano Zampini c31ded06c2 BDDC: attach RBMs to the global matrix 2022-02-14 12:46:02 +03:00
Tzanio 0cc104331c Merge branch 'master' into yohann/mem/min-default-constr 2021-11-10 12:52:15 -08:00
blaz 4fe8308527 Small fix for petsc vectors 2021-09-22 15:01:54 -07:00
Yohann Dudouit 3d399d8eb3 Remove unnecessary Reset. 2021-06-25 11:16:09 -07:00
Stefano Zampini 30da55f38f Pass dummy matrix to SNES at creation time 2021-06-12 11:58:45 +03: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
Aaron Fisher e758c37691 Removed nearly all leading underscores for variable names. Every once in a while one of these will confilct with standard libraries in an oddball compiler and it's best to just avoid this problem alltogether. 2021-05-10 16:06:51 -07:00
Tzanio 048b57dd9e Merge branch 'master' into hypre-mixedint
Conflicts:
	linalg/petsc.cpp
2021-04-21 11:25:44 -07:00
Stefano Zampini b8afc860b2 Checked backward compatibility up to 3.8.4 2021-04-17 13:37:56 +03:00
Stefano Zampini b041768098 Fix backward compatibility with 3.8 2021-04-11 14:23:22 +03:00
Julian Andrej a9ea9cba15 Merge branch 'master' into hypre-mixedint 2021-04-09 12:00:35 -07:00
Stefano Zampini 41a96be0e5 MatAIJSetGenerateTranspose has been removed in 3.15 in favor of MatSetOption
minimum PETSc version for CUDA support is now v3.15
2021-04-01 14:45:31 +03:00
Stefano Zampini 37c80fdb9b make style 2021-03-18 16:42:45 +03:00
Stefano Zampini f28280bfee Forgot to add the fixes from office workstation 2021-03-18 16:42:38 +03:00
Stefano Zampini 488e3f02a3 Support upcoming 3.15 release 2021-03-17 16:59:16 +03:00
camierjs be0d8f69bc make style 2021-03-17 16:59:16 +03:00
Veselin Dobrev 063e31521a Add a method mfem::Device::GetId().
this way we can tell PETSc to use the same device.
2021-03-17 16:59:16 +03:00
camierjs fcf145b699 Revert MatAIJCUSPARSESetGenerateTranspose in sync with PETSc/master 2021-03-17 16:59:16 +03:00
camierjs 444b1b2444 Move CUDA headers of linalg/sparsemat and use backends.hpp instead
MatAIJCUSPARSESetGenerateTranspose ⇒ MatSeqAIJCUSPARSESetGenerateTranspose
2021-03-17 16:59:16 +03:00
Tzanio 0bfd5dbaea make style 2021-03-17 16:59:16 +03:00
Stefano Zampini 74147c743b Fix warning 2021-03-17 16:59:16 +03:00
Stefano Zampini 7b0aa28753 make style 2021-03-17 16:59:16 +03:00
Stefano Zampini d8f4fe81bc Fix PetscODESolver callbacks in the matrix free case 2021-03-17 16:59:16 +03:00
Tzanio 0a392ec336 make style 2021-03-17 16:59:16 +03:00