Compare commits

...

183 Commits

Author SHA1 Message Date
baa5eb7ef6
Rebuilt for Fedora/RISCV (riscv64); adding .rvreX to Release:
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-08-13 10:24:09 +03:00
f279da55b8
Sync with upstream branch
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-08-13 10:24:03 +03:00
David Bold
f863cc10a0 Fix configure script for python3.13 2024-08-06 11:55:12 +02:00
Fedora Release Engineering
740b34cbf7 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 06:37:22 +00:00
Python Maint
cf461a4ce3 Rebuilt for Python 3.13 2024-06-08 08:10:28 +02:00
Orion Poplawski
baab895889 Rebuild for openmpi 5.0.3 2024-04-25 20:24:42 -06:00
Antonio Trande
cb2328d174 Rebuild for MPICH-4.2.1 2024-04-21 14:03:32 +02:00
Antonio Trande
3faf7c5011 Release number bump 2024-04-10 12:48:32 +02:00
Antonio Trande
56c284279c Reload Cython3 files for EPEL9 builds 2024-04-01 20:43:35 +02:00
Antonio Trande
351a2e8b62 Fix Scotch MPI include directories in RHEL 2024-04-01 18:11:30 +02:00
Antonio Trande
4cb045c378 Release 3.20.6 (rhbz#2272217) 2024-03-31 11:22:48 +02:00
52d7cd2464 Properly check for valgrind support
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-04 10:27:55 +00:00
Antonio Trande
e1156ca567 Release 3.20.5 (rhbz#2266220) |Drop incorporated patch 2024-03-02 20:11:47 +01:00
Antonio Trande
1eaab204eb Release 3.20.5 (rhbz#2266220) 2024-03-02 19:54:20 +01:00
Antonio Trande
01bee9cb0e Move up patch #8 2024-02-08 18:23:19 +01:00
Antonio Trande
516bf1f343 Fix upstream bug #1542 2024-02-08 15:46:51 +01:00
Antonio Trande
0a53ef007c Patched for using metis64 2024-02-06 21:24:47 +01:00
Antonio Trande
c7d7c3cdef Release 3.20.4 2024-02-06 20:06:07 +01:00
Fedora Release Engineering
b8fdd7a92b Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 22:20:15 +00:00
Fedora Release Engineering
91ff691352 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 20:35:09 +00:00
5a443a87bb Merge remote-tracking branch 'up/main' into main-riscv64 2024-01-09 11:11:07 +02:00
Antonio Trande
49a8eacd8c Rebuild for MUMPS-5.6.2 2024-01-06 12:18:13 +01:00
Antonio Trande
692439c8ba Rebuild for openmpi-5.0.1 2023-12-24 17:15:19 +01:00
3b4aca63c6
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-12-21 11:36:17 +02:00
Antonio Trande
8c5aed1035 Rebuild for superlu_dist-8.2.0 2023-12-16 19:53:47 +01:00
Antonio Trande
68b28a016c Fix License tag 2023-12-03 16:33:42 +01:00
Antonio Trande
c3f64b1ef1 Release 3.20.2 2023-12-03 16:32:21 +01:00
570c35d332
Properly check for valgrind support
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-12-01 17:46:56 +02:00
Antonio Trande
d5b5ccd611 Disable Python test for missing epydoc module 2023-11-05 18:20:21 +01:00
Antonio Trande
05d358e615 Release 3.20.1 2023-11-01 19:18:06 +01:00
Orion Poplawski
6da167f9d4 Properly conditionalize the python mpi sub-packages 2023-10-29 16:58:54 -06:00
Orion Poplawski
862b561b07 Rework conditional 2023-10-29 12:46:26 -06:00
Orion Poplawski
ae33a35f06 Rebuild for openmpi 5.0.0, drops support for i686 2023-10-29 12:13:51 -06:00
Antonio Trande
0ef5b08f85 Release 3.20.0 2023-10-15 16:34:49 +02:00
Antonio Trande
ff91bf73f7 Release 3.19.6| Fix ELN builds 2023-09-29 12:03:51 +02:00
Antonio Trande
234975dfea Disable petsc4py's tests 2023-08-18 10:13:39 +02:00
Antonio Trande
51bfda7f71 Rebuild for Scotch-7.0.4| Enable tests 2023-08-17 19:48:36 +02:00
Antonio Trande
74155d8d3e Rebuild for Scotch-7.0.4 2023-08-17 19:31:04 +02:00
Antonio Trande
d408b4ba6d Remove superfluous source archive 2023-08-13 13:32:43 +02:00
Antonio Trande
2c22262810 Release 3.19.4 | Fix BR packages 2023-08-11 17:17:14 +02:00
Antonio Trande
7337cdc948 Release 3.19.4 | Fix Cython requirement 2 2023-08-11 16:03:52 +02:00
Antonio Trande
9712cb8e3a Release 3.19.4 | Fix Cython requirement 2023-08-11 12:52:39 +02:00
Antonio Trande
ac5eaf392b Release 3.19.4 | Exclude removing pre-generated Cython files 2023-08-11 12:14:41 +02:00
Antonio Trande
7ca294be74 Release 3.19.4 2023-08-10 21:45:18 +02:00
Antonio Trande
d935acc476 Fix macros 2023-07-29 12:36:54 +02:00
Antonio Trande
4cab809d91 Add python-wheel BR 2023-07-26 21:57:33 +02:00
Fedora Release Engineering
65aba07fcd Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 03:55:52 +00:00
Zbigniew Jędrzejewski-Szmek
c39dc29e3d Rebuild for mpich-4.1.2 2023-07-18 17:16:55 +02:00
Antonio Trande
b62bbed565 Rebuild for SuperLU-6.0.0| Re-enable tests 2023-07-15 18:58:17 +02:00
Antonio Trande
c28dcd4066 Disable tests 2023-07-06 22:06:40 +02:00
Antonio Trande
3c37bea5fb Update patch for Python-3.12| Enable python tests on Power64 builds 2023-06-22 20:19:31 +02:00
Antonio Trande
2eb306a14c Patched for Python-3.12 2023-06-21 21:25:32 +02:00
Python Maint
c7de077e00 Rebuilt for Python 3.12 2023-06-16 08:50:27 +02:00
Antonio Trande
db64e30e8a Enable tests 2023-06-15 18:29:21 +02:00
Python Maint
71eb6ea381 Rebuilt for Python 3.12 2023-06-14 06:15:39 +02:00
Antonio Trande
2e4fef3c5c Disable tests 2023-05-24 20:12:25 +02:00
Antonio Trande
68b05457ea Convert to %autorelease and %autochangelog
[skip changelog]
2023-05-22 20:25:20 +02:00
Antonio Trande
fa370ef10b Rebuild for MPICH-4.1.1 (rhbz#2208994) 2023-05-22 20:20:18 +02:00
Antonio Trande
e01023bb81 Enable tests 2023-04-18 18:30:00 +02:00
Antonio Trande
5b88d84b24 Patched for make-4.4.1 2023-04-17 21:46:04 +02:00
Antonio Trande
df7dae1230 Release 3.18.5 2023-04-13 23:32:21 +02:00
Orion Poplawski
91e55b95c4 Rebuild for mpich 4.0.3 2023-03-02 17:38:16 -07:00
Antonio Trande
f93b456955 Enable testing 2023-02-27 20:09:22 +01:00
Antonio Trande
4efd8e5f1d Rebuild for openmpi-4.1.5 2023-02-27 20:07:05 +01:00
Antonio Trande
680bb229b8 Drop latest changes 2023-02-24 20:08:07 +01:00
Antonio Trande
cb66a31e64 Use SuperLU/superlu_dist in 32-bit architectures only 2023-02-23 22:53:35 +01:00
Antonio Trande
88be517847 Update patch for metis64 2023-02-23 22:37:47 +01:00
Antonio Trande
d35a5311f3 Use SuperLU in 32-bit architectures only 2023-02-23 22:20:52 +01:00
Antonio Trande
ada2d00b4a Use always metis64 in 64-bit architectures 2023-02-23 22:09:51 +01:00
Antonio Trande
51b7647b72 Enable PETSC_INDEX_SIZE_64 with metis64 only 2023-02-23 21:40:13 +01:00
Antonio Trande
33d889aafd Enable PETSC_INDEX_SIZE_64 in 64-bit architectures 2023-02-23 21:23:09 +01:00
Antonio Trande
93af49f852 Disable LTO flags 2023-02-23 19:47:21 +01:00
Antonio Trande
a5dd511024 Undefine _ld_as_needed 2023-02-22 22:14:19 +01:00
Antonio Trande
0b5a075df0 Fix rhbz#2171312 /2 2023-02-22 19:03:57 +01:00
Antonio Trande
4a1a74eac1 Fix rhbz#2171312 2023-02-21 22:26:53 +01:00
Fedora Release Engineering
5e8bed24a7 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 08:09:42 +00:00
Antonio Trande
0720cfda9f Fix pkgconfig files bugs /2 (rhbz#2060414) 2023-01-15 18:40:24 +01:00
Antonio Trande
bbef05e95c Fix pkgconfig files bugs (rhbz#2060414) 2023-01-14 21:01:53 +01:00
Antonio Trande
2606434654 Build in EPEL9 2023-01-03 17:57:10 +01:00
Lumir Balhar
2afedcedb0 Change location of pathfix.py
For more info see https://fedoraproject.org/wiki/Changes/Python3.12#pathfix.py_tool_will_be_removed
2022-11-01 07:15:04 +01:00
Antonio Trande
81868e9dfd Use pcre2 (rhbz#2128348) 2022-09-20 21:31:34 +02:00
Antonio Trande
cbab4bcf23 Disabling package-notes 2022-08-23 18:10:24 +02:00
Antonio Trande
1145c3c9d3 Release 3.17.4 2022-08-06 14:39:57 +02:00
Fedora Release Engineering
dad5248825 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 13:02:57 +00:00
Antonio Trande
4ab3839177 Rebuild for MUMPS-5.5.0 2022-07-17 15:47:14 +02:00
Antonio Trande
29c0a1939b Release 3.17.3 2022-07-07 20:44:26 +02:00
Antonio Trande
bdd650f1a9 Rebuild for superlu_dist-8.0.0 2022-07-03 17:38:13 +02:00
Antonio Trande
1666d847c4 Fix rhbz#2039365|Use another command 2022-06-20 22:00:54 +02:00
Antonio Trande
74b11a4842 Fix rhbz#2039365|Do not use patch #8 2022-06-20 21:54:08 +02:00
Antonio Trande
c8de0336b2 Fix rhbz#2039365 2022-06-20 21:46:20 +02:00
Python Maint
2eaea8c8d9 Rebuilt for Python 3.11 2022-06-13 18:57:04 +02:00
Antonio Trande
17957a39d6 Release 3.17.2 2022-06-04 12:14:16 +02:00
Antonio Trande
6e0e0c0206 Rebuild for openmpi-4.1.4 2022-06-02 17:39:19 +02:00
Antonio Trande
a83a7cb5ca Release 3.17.1| Remove old patch's file 2022-05-02 20:20:57 +02:00
Antonio Trande
be3dfea2df Release 3.17.1| Drop old patch 2022-05-02 20:19:05 +02:00
Antonio Trande
f51f56825c Release 3.17.1 2022-05-02 19:42:44 +02:00
Antonio Trande
2f74bb099e Enable tests 2022-04-24 19:04:28 +02:00
Antonio Trande
b9c4a645ba Release 3.17.0 2022-04-23 16:51:40 +02:00
Antonio Trande
17da42dc05 Fix Changelog 2022-04-19 18:51:12 +02:00
Antonio Trande
a12b19ae7b Release for openmpi-4.1.3 2022-04-19 18:43:46 +02:00
Zbigniew Jędrzejewski-Szmek
cb2e16db96 Rebuild for mpich-4.0.3 2022-04-11 19:25:58 +02:00
Sandro Mani
d21ee3d013 Rebuild for cgnslib-4.3.0 2022-03-22 10:30:10 +01:00
Antonio Trande
1ea20352dc Release 3.16.5 2022-03-05 18:18:38 +01:00
Antonio Trande
741bedec23 Release 3.16.4 2022-02-05 17:35:06 +01:00
Fedora Release Engineering
e164894ff2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 07:08:44 +00:00
Antonio Trande
c3687f5e2c Release 3.16.3| Fix rhbz#2039365 2022-01-13 15:00:04 +01:00
Orion Poplawski
e253d58202 Rebuild for hdf5 1.12.1 2021-11-20 21:43:18 -07:00
Antonio Trande
24ed9054e6 Rebuild for MPI upgrades on epel8 2021-11-20 15:38:40 +01:00
Antonio Trande
743d442b43 Use openblas on epel8 2021-11-06 15:51:37 +01:00
Antonio Trande
cf09a67c34 Rebuild for SuperLU-5.3.0 2021-10-30 19:13:30 +02:00
Antonio Trande
9645be1945 Release 3.16.0 2021-10-16 17:15:19 +02:00
Antonio Trande
39d86b8af9 Rebuild for openmpi-4.1.2 2021-10-12 16:09:35 +02:00
Antonio Trande
fe126458ea Re-enable all builds (rhbz#2005791) 2021-09-20 11:47:42 +02:00
Antonio Trande
e4aecf6a4d Fix mpiexec options 2021-09-12 22:42:24 +02:00
Antonio Trande
1b5941d08d Set DATAFILESPATH variables before Make Check 2021-09-12 19:12:57 +02:00
Antonio Trande
8fee3e3501 Remove DATAFILESPATH options 2021-09-12 18:16:20 +02:00
Antonio Trande
411aa4b4f0 Reduce Make jobs for testing 2021-09-12 16:44:27 +02:00
Antonio Trande
00b3630aa4 Release 3.15.4 | Fix versioned library /2 2021-09-12 15:16:54 +02:00
Antonio Trande
9abc8ad16a Release 3.15.4 | Fix versioned library 2021-09-12 15:13:47 +02:00
Antonio Trande
5cba6bd5e0 Release 3.15.4 2021-09-12 15:11:54 +02:00
Orion Poplawski
3494a026c2 Try disabling lto on arm 32-bit to reduce memory usage 2021-08-16 22:06:27 -06:00
Orion Poplawski
b5c1e78c3d Try to limit memory usage on arm builds 2021-08-13 21:55:56 -06:00
Orion Poplawski
457faff280 Rebuild for hdf5 1.10.7 2021-08-09 20:12:26 -06:00
Antonio Trande
c834cf6d2b Release 3.15.3 2021-08-07 15:49:27 +02:00
Fedora Release Engineering
9eea208c79 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 01:26:02 +00:00
Antonio Trande
219133e3ee Release 3.15.2 2021-07-17 14:02:52 +02:00
Antonio Trande
8bd9c29427 Release 3.15.1 2021-06-20 14:40:54 +02:00
Antonio Trande
0634fc9786 Fix ELN builds 2021-06-14 19:22:30 +02:00
Antonio Trande
bf2bc91829 Patched and rebuilt for Python 3.10 (rhbz#1959088) 2021-06-10 22:30:56 +02:00
Python Maint
b3437b038f Rebuilt for Python 3.10 2021-06-04 20:15:05 +02:00
Antonio Trande
d0a20eb9e3 Fix gcc-gfortran dependencies 2021-05-21 10:59:37 +02:00
Antonio Trande
869c105c82 Undo latest changes 2021-05-19 21:00:22 +02:00
Antonio Trande
ad20d020cc Try to fix rhbz#1959088 2021-05-10 20:06:14 +02:00
Sandro Mani
d0bddcb1d4 Rebuild (cgnslib) 2021-04-29 19:04:49 +02:00
Antonio Trande
d293ecb508 Release 3.15.0| PETSc4py 3.15.0 2021-04-18 19:20:01 +02:00
Antonio Trande
5ee887765f Release 3.14.6 2021-04-02 14:29:05 +02:00
Antonio Trande
68a6967f92 Release 3.14.5 2021-03-05 18:40:25 +01:00
Antonio T
6676695f85 Release petsc4py-3.14.1 2021-02-07 14:22:12 +01:00
Antonio T
c949957b0b Release 3.14.4 2021-02-07 12:54:32 +01:00
Antonio T
412a009d55 Rebuild for OpenMPI-4.1.0 and MPICH-3.4.1 2021-02-03 12:27:18 +01:00
Fedora Release Engineering
8ec405dfc6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 06:15:16 +00:00
Antonio T
471d88f626 This package now provides petsc4py/python-petsc rpms| Exclude python test on ARM 2020-12-13 20:58:02 +01:00
Antonio T
3258770087 This package now provides petsc4py/python-petsc rpms| Exclude python test on PPC64le /2 2020-12-13 18:12:32 +01:00
Antonio T
76748955e1 This package now provides petsc4py/python-petsc rpms| Exclude python test on PPC64le 2020-12-13 17:28:42 +01:00
Antonio T
ff23c78bba Obsolete the stand-alone petsc4py packages| This package now provides petsc4py/python-petsc rpms 2020-12-13 11:33:12 +01:00
Antonio T
751baf77f4 Release 3.14.2 2020-12-05 14:32:58 +01:00
Antonio T
eada8e54da Update/Rebuild for MUMPS-5.3.5 on EPEL7 2020-12-05 11:12:49 +01:00
Antonio T
d890f27303 Release 3.14.1| Fix pkg-config files/2 2020-11-21 11:06:37 +01:00
Antonio T
862f4dce3c Release 3.14.1| Fix pkg-config files 2020-11-20 19:48:45 +01:00
Antonio T
6a0cc22576 Release 3.14.1 2020-11-20 12:35:13 +01:00
sagitter
8e2c25f12a Release 3.13.5 2020-09-04 12:55:10 +02:00
Iñaki Úcar
48342c7434 https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager 2020-08-13 20:37:54 +02:00
sagitter
4f1a6627ab Release 3.13.4 2020-08-02 15:33:53 +02:00
Fedora Release Engineering
55957426de - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 20:31:30 +00:00
sagitter
a765aa37f9 Release 3.13.3 2020-07-02 16:16:03 +02:00
Orion Poplawski
a7a64a926c Rebuild for hdf5 1.10.6 2020-06-25 14:28:00 -06:00
sagitter
f12f75c95b BuildRequires python3-setuptools explicitly 2020-06-24 10:59:06 +02:00
sagitter
3386a9b6c9 Compiled against openblas-threads| Fixed for upstream bug #634 2020-06-05 22:26:14 +02:00
sagitter
6c55a29a54 Set FCFLAGS 2020-06-04 12:05:41 +02:00
sagitter
9d99770e02 Release 3.13.2 2020-06-03 14:06:40 +02:00
Björn Esser
4caff6160d Rebuild (cgnslib) 2020-05-08 14:11:24 +02:00
sagitter
3acb8216a6 Release 3.13.1 2020-05-03 17:33:26 +02:00
Nicolas Chauvet
f1fb570ad7 Rebuilt for MUMPS 5.3 2020-04-12 09:28:43 +02:00
sagitter
7d2e1c843b Release 3.13.0 2020-04-10 17:49:10 +02:00
Sandro Mani
f8f0dc1d88 Rebuild (cgnslib) 2020-02-21 12:30:37 +01:00
Sandro Mani
6e63e4c22c Rebuild (cgnslib) 2020-02-17 14:46:44 +01:00
sagitter
b7b1cc3950 Release 3.12.4 2020-02-13 21:52:07 +01:00
Fedora Release Engineering
5192caf8c5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 06:39:56 +00:00
sagitter
6628f24209 Release 3.12.3 2020-01-10 22:41:17 +01:00
sagitter
5ed657e6d6 Use mpiblacs on EPEL 7 and Fedora < 32 2020-01-05 21:56:57 +01:00
sagitter
a954b44285 Fix Changelog 2020-01-05 21:46:00 +01:00
sagitter
4d56ca7d40 Release 3.12.2 2019-11-23 13:07:19 +01:00
sagitter
d1274421a2 Release 3.12.1 2019-10-23 12:50:26 +02:00
sagitter
f020fb3842 Patched for hypre-2.18.0 2019-10-20 11:50:49 +02:00
sagitter
c1598ba3a4 Release 3.12.0 2019-10-18 21:38:36 +02:00
Orion Poplawski
51365ed0f9 Rebuild for hypre 2.18.0 2019-10-13 20:21:57 -06:00
sagitter
fcb9e8675e Modify last change 2019-10-01 20:31:56 +02:00
sagitter
abc714a41f Fix MPICH Requires again 2019-10-01 20:01:10 +02:00
sagitter
71da664024 Fix MPICH Requires 2019-10-01 19:52:58 +02:00
sagitter
9fedc4f4c1 Explicit required MPICH version (rhbz#1757279) 2019-10-01 19:08:07 +02:00
Orion Poplawski
45b8086018 Build for python3 only, without dts for EPEL8 2019-09-11 20:44:42 -06:00
sagitter
eebca3e02a Rebuild for MPICH 3.2.1 2019-08-26 14:59:04 +02:00
sagitter
07fe131dee Rebuild for Python 3.8 2019-08-21 15:18:45 +02:00
14 changed files with 565349 additions and 949 deletions

55
.gitignore vendored
View File

@ -14,3 +14,58 @@
/petsc-3.11.1.tar.gz
/petsc-3.11.2.tar.gz
/petsc-3.11.3.tar.gz
/petsc-3.12.0.tar.gz
/petsc-3.12.1.tar.gz
/petsc-3.12.2.tar.gz
/petsc-3.12.3.tar.gz
/petsc-3.12.4.tar.gz
/petsc-3.13.0.tar.gz
/petsc-3.13.1.tar.gz
/petsc-3.13.2.tar.gz
/petsc-3.13.3.tar.gz
/petsc-3.13.4.tar.gz
/petsc-3.13.5.tar.gz
/petsc-3.14.1.tar.gz
/petsc-3.14.2.tar.gz
/petsc-3.14.4.tar.gz
/petsc-3.14.5.tar.gz
/petsc-3.14.6.tar.gz
/petsc-with-docs-3.15.0.tar.gz
/petsc4py-3.15.0.tar.gz
/petsc-with-docs-3.15.1.tar.gz
/petsc4py-3.15.1.tar.gz
/petsc-with-docs-3.15.2.tar.gz
/petsc4py-3.15.2.tar.gz
/petsc-with-docs-3.15.3.tar.gz
/petsc4py-3.15.3.tar.gz
/petsc-with-docs-3.15.4.tar.gz
/petsc4py-3.15.4.tar.gz
/petsc-with-docs-3.16.0.tar.gz
/petsc4py-3.16.0.tar.gz
/petsc-with-docs-3.16.3.tar.gz
/petsc4py-3.16.3.tar.gz
/petsc-with-docs-3.16.4.tar.gz
/petsc4py-3.16.4.tar.gz
/petsc-with-docs-3.16.5.tar.gz
/petsc4py-3.16.5.tar.gz
/petsc-with-docs-3.17.0.tar.gz
/petsc4py-3.17.0.tar.gz
/petsc-with-docs-3.17.1.tar.gz
/petsc4py-3.17.1.tar.gz
/petsc-with-docs-3.17.2.tar.gz
/petsc4py-3.17.2.tar.gz
/petsc-with-docs-3.17.3.tar.gz
/petsc4py-3.17.3.tar.gz
/petsc-with-docs-3.17.4.tar.gz
/petsc4py-3.17.4.tar.gz
/petsc-with-docs-3.18.5.tar.gz
/petsc4py-3.18.5.tar.gz
/petsc-with-docs-3.19.4.tar.gz
/petsc4py-3.19.4.tar.gz
/petsc-with-docs-3.19.6.tar.gz
/petsc-with-docs-3.20.0.tar.gz
/petsc-with-docs-3.20.1.tar.gz
/petsc-with-docs-3.20.2.tar.gz
/petsc-with-docs-3.20.4.tar.gz
/petsc-with-docs-3.20.5.tar.gz
/petsc-with-docs-3.20.6.tar.gz

29
no-parse_makefile.patch Normal file
View File

@ -0,0 +1,29 @@
diff --git a/config/gmakegen.py b/config/gmakegen.py
index c9c476822c5..f58caab4d71 100644
--- a/config/gmakegen.py
+++ b/config/gmakegen.py
@@ -1,7 +1,6 @@
#! /usr/bin/python3 -sP
import os
-from sysconfig import _parse_makefile as parse_makefile
import sys
import logging
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
@@ -36,6 +35,16 @@ def getlangsplit(name):
def stripsplit(line):
return line[len('#requires'):].replace("'","").split()
+def parse_makefile(fn):
+ out = {}
+ with open(fn) as f:
+ for l in f:
+ print(l[:-1])
+ if "=" in l:
+ a,b = l.split("=", 1)
+ out[a.strip()] = b.strip()
+ return out
+
PetscPKGS = 'sys vec mat dm ksp snes ts tao'.split()
# the key is actually the language suffix, it won't work for suffixes such as 'kokkos.cxx' so use an _ and replace the _ as needed with .
LANGS = dict(kokkos_cxx='KOKKOS', hip_cpp='HIP', sycl_cxx='SYCL', raja_cxx='RAJA', c='C', cxx='CXX', cpp='CPP', cu='CU', F='F', F90='F90')

48
no-xdrlib.patch Normal file
View File

@ -0,0 +1,48 @@
diff --git a/config/BuildSystem/RDict.py b/config/BuildSystem/RDict.py
index cc90f3e26c5..d68ab095e06 100755
--- a/config/BuildSystem/RDict.py
+++ b/config/BuildSystem/RDict.py
@@ -83,7 +83,7 @@ Arg class, which wraps the usual value.'''
def __init__(self, parentAddr = None, parentDirectory = None, load = 1, autoShutdown = 1, readonly = False):
import atexit
import time
- import xdrlib
+ #import xdrlib
self.logFile = None
self.setupLogFile()
@@ -98,8 +98,8 @@ Arg class, which wraps the usual value.'''
self.isServer = 0
self.readonly = readonly
self.parentDirectory = parentDirectory
- self.packer = xdrlib.Packer()
- self.unpacker = xdrlib.Unpacker('')
+ #self.packer = xdrlib.Packer()
+ #self.unpacker = xdrlib.Unpacker('')
self.stopCmd = pickle.dumps(('stop',))
self.writeLogLine('Greetings')
self.connectParent(self.parentAddr, self.parentDirectory)
@@ -116,8 +116,8 @@ Arg class, which wraps the usual value.'''
if 'parent' in d: del d['parent']
if 'saveTimer' in d: del d['saveTimer']
if '_setCommandLine' in d: del d['_setCommandLine']
- del d['packer']
- del d['unpacker']
+ #del d['packer']
+ #del d['unpacker']
del d['logFile']
return d
@@ -126,9 +126,9 @@ Arg class, which wraps the usual value.'''
self.logFile = open('RDict.log', 'a')
self.writeLogLine('Unpickling RDict')
self.__dict__.update(d)
- import xdrlib
- self.packer = xdrlib.Packer()
- self.unpacker = xdrlib.Unpacker('')
+ #import xdrlib
+ #self.packer = xdrlib.Packer()
+ #self.unpacker = xdrlib.Unpacker('')
self.connectParent(self.parentAddr, self.parentDirectory)
return

View File

@ -1,38 +0,0 @@
From e6de09342ce9c4562cc062ff2c1bac4bd956bda0 Mon Sep 17 00:00:00 2001
From: Satish Balay <balay@mcs.anl.gov>
Date: Fri, 30 Mar 2018 09:53:12 -0500
Subject: [PATCH] hypre: update to version 2.14.0
Reported-by: Antonio Trande <anto.trande@gmail.com>
---
config/BuildSystem/config/packages/hypre.py | 2 +-
src/mat/impls/hypre/mhypre.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/config/BuildSystem/config/packages/hypre.py b/config/BuildSystem/config/packages/hypre.py
index 1249b39..620e516 100644
--- a/config/BuildSystem/config/packages/hypre.py
+++ b/config/BuildSystem/config/packages/hypre.py
@@ -4,7 +4,7 @@ import os
class Configure(config.package.GNUPackage):
def __init__(self, framework):
config.package.GNUPackage.__init__(self, framework)
- self.gitcommit = 'v2.12.0'
+ self.gitcommit = 'v2.15.1'
self.download = ['git://https://github.com/LLNL/hypre','https://github.com/LLNL/hypre/archive/'+self.gitcommit+'.tar.gz']
self.functions = ['HYPRE_IJMatrixCreate']
self.includes = ['HYPRE.h']
diff --git a/src/mat/impls/hypre/mhypre.c b/src/mat/impls/hypre/mhypre.c
index 8a51581..65595f2 100644
--- a/src/mat/impls/hypre/mhypre.c
+++ b/src/mat/impls/hypre/mhypre.c
@@ -1450,6 +1450,6 @@ PETSC_EXTERN PetscErrorCode MatCreate_HYPRE(Mat B)
static PetscErrorCode hypre_array_destroy(void *ptr)
{
PetscFunctionBegin;
- hypre_TFree(ptr);
+ hypre_TFree(ptr,HYPRE_MEMORY_HOST);
PetscFunctionReturn(0);
}
--
2.10.5

View File

@ -0,0 +1,11 @@
--- a/config/PETSc/Configure.orig.py 2020-03-30 05:33:12.000000000 +0200
+++ b/config/PETSc/Configure.py 2020-04-04 22:58:19.770481378 +0200
@@ -148,7 +148,7 @@
if not os.path.exists(os.path.join(self.petscdir.dir,self.arch.arch,'lib','pkgconfig')):
os.makedirs(os.path.join(self.petscdir.dir,self.arch.arch,'lib','pkgconfig'))
with open(os.path.join(self.petscdir.dir,self.arch.arch,'lib','pkgconfig',petsc_pc),'w') as fd:
- cflags_inc = ['-I${includedir}']
+ cflags_inc = ['-I${includedir}/petsc']
if self.framework.argDB['prefix']:
fd.write('prefix='+self.installdir.dir+'\n')
else:

View File

@ -0,0 +1,13 @@
--- a/config/BuildSystem/config/packages/BlasLapack.orig.py 2020-11-03 19:01:59.000000000 +0100
+++ b/config/BuildSystem/config/packages/BlasLapack.py 2020-11-09 10:37:06.551705855 +0100
@@ -567,8 +567,8 @@
'''Check for Intel MKL library'''
self.libraries.saveLog()
if self.libraries.check(self.dlib, 'mkl_set_num_threads') and not self.libraries.check(self.dlib, 'flexiblas_avail'):
- self.mkl = 1
- self.addDefine('HAVE_MKL_LIBS',1)
+ self.mkl = 0
+ self.addDefine('HAVE_MKL_LIBS',0)
'''Set include directory for mkl.h and friends'''
'''(the include directory is in CPATH if mklvars.sh has been sourced.'''
''' if the script hasn't been sourced, we still try to pick up the include dir)'''

View File

@ -0,0 +1,32 @@
--- a/config/BuildSystem/config/packages/metis.orig.py 2020-03-29 16:29:06.000000000 +0200
+++ b/config/BuildSystem/config/packages/metis.py 2020-04-03 18:00:37.013851959 +0200
@@ -8,8 +8,8 @@
self.download = ['git://https://bitbucket.org/petsc/pkg-metis.git','https://bitbucket.org/petsc/pkg-metis/get/'+self.gitcommit+'.tar.gz']
self.downloaddirnames = ['petsc-pkg-metis']
self.functions = ['METIS_PartGraphKway']
- self.includes = ['metis.h']
- self.liblist = [['libmetis.a'],['libmetis.a','libexecinfo.a']]
+ self.includes = ['metis64.h']
+ self.liblist = [['libmetis64.a'],['libmetis64.a','libexecinfo.a']]
self.hastests = 1
self.useddirectly = 0
self.downloadonWindows = 1
@@ -50,7 +50,7 @@
config.package.Package.configureLibrary(self)
oldFlags = self.compilers.CPPFLAGS
self.compilers.CPPFLAGS += ' '+self.headers.toString(self.include)
- if not self.checkCompile('#include "metis.h"', '#if (IDXTYPEWIDTH != '+ str(self.getDefaultIndexSize())+')\n#error incompatible IDXTYPEWIDTH\n#endif\n'):
+ if not self.checkCompile('#include "metis64.h"', '#if (IDXTYPEWIDTH != '+ str(self.getDefaultIndexSize())+')\n#error incompatible IDXTYPEWIDTH\n#endif\n'):
if self.defaultIndexSize == 64:
msg= '--with-64-bit-indices option requires a metis build with IDXTYPEWIDTH=64.\n'
else:
--- a/src/mat/order/metisnd/metisnd.orig.c 2023-11-30 20:14:32.000000000 +0100
+++ b/src/mat/order/metisnd/metisnd.c 2024-02-06 21:21:38.011280520 +0100
@@ -1,6 +1,6 @@
#include <petscmat.h>
#include <petsc/private/matorderimpl.h>
-#include <metis.h>
+#include <metis64.h>
/*
MatGetOrdering_METISND - Find the nested dissection ordering of a given matrix.

View File

@ -0,0 +1,11 @@
--- a/config/BuildSystem/config/packages/MUMPS.orig.py 2020-03-30 05:33:12.000000000 +0200
+++ b/config/BuildSystem/config/packages/MUMPS.py 2020-04-03 17:01:49.237255499 +0200
@@ -54,7 +54,7 @@
if self.scalartypes.scalartype == 'real': l = 'd'
else: l = 'z'
self.functions = [l+'mumps_c']
- self.includes = [l+'mumps_c.h']
+ self.includes = ['MUMPS/dmumps_c.h']
liblist_common = [['libmumps_common.a','libpord.a','libpthread.a'],
['libmumps_common.a','libpord.a'],
['libmumps_common.a','libpord.a','libmpiseq.a'],

View File

@ -0,0 +1,434 @@
/* Generated by Cython 3.0.6 */
#ifndef __PYX_HAVE_API__petsc4py__PETSc
#define __PYX_HAVE_API__petsc4py__PETSc
#ifdef __MINGW64__
#define MS_WIN64
#endif
#include "Python.h"
#include "PETSc.h"
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Comm = 0;
#define PyPetscComm_Type (*__pyx_ptype_8petsc4py_5PETSc_Comm)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Object = 0;
#define PyPetscObject_Type (*__pyx_ptype_8petsc4py_5PETSc_Object)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Viewer = 0;
#define PyPetscViewer_Type (*__pyx_ptype_8petsc4py_5PETSc_Viewer)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Random = 0;
#define PyPetscRandom_Type (*__pyx_ptype_8petsc4py_5PETSc_Random)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Device = 0;
#define PyPetscDevice_Type (*__pyx_ptype_8petsc4py_5PETSc_Device)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_DeviceContext = 0;
#define PyPetscDeviceContext_Type (*__pyx_ptype_8petsc4py_5PETSc_DeviceContext)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_IS = 0;
#define PyPetscIS_Type (*__pyx_ptype_8petsc4py_5PETSc_IS)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_LGMap = 0;
#define PyPetscLGMap_Type (*__pyx_ptype_8petsc4py_5PETSc_LGMap)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_SF = 0;
#define PyPetscSF_Type (*__pyx_ptype_8petsc4py_5PETSc_SF)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Vec = 0;
#define PyPetscVec_Type (*__pyx_ptype_8petsc4py_5PETSc_Vec)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Space = 0;
#define PyPetscSpace_Type (*__pyx_ptype_8petsc4py_5PETSc_Space)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_DualSpace = 0;
#define PyPetscDualSpace_Type (*__pyx_ptype_8petsc4py_5PETSc_DualSpace)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_FE = 0;
#define PyPetscFE_Type (*__pyx_ptype_8petsc4py_5PETSc_FE)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Quad = 0;
#define PyPetscQuad_Type (*__pyx_ptype_8petsc4py_5PETSc_Quad)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Scatter = 0;
#define PyPetscScatter_Type (*__pyx_ptype_8petsc4py_5PETSc_Scatter)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Section = 0;
#define PyPetscSection_Type (*__pyx_ptype_8petsc4py_5PETSc_Section)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Mat = 0;
#define PyPetscMat_Type (*__pyx_ptype_8petsc4py_5PETSc_Mat)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_MatPartitioning = 0;
#define PyPetscMatPartitioning_Type (*__pyx_ptype_8petsc4py_5PETSc_MatPartitioning)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_NullSpace = 0;
#define PyPetscNullSpace_Type (*__pyx_ptype_8petsc4py_5PETSc_NullSpace)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_PC = 0;
#define PyPetscPC_Type (*__pyx_ptype_8petsc4py_5PETSc_PC)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_KSP = 0;
#define PyPetscKSP_Type (*__pyx_ptype_8petsc4py_5PETSc_KSP)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_SNES = 0;
#define PyPetscSNES_Type (*__pyx_ptype_8petsc4py_5PETSc_SNES)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_TS = 0;
#define PyPetscTS_Type (*__pyx_ptype_8petsc4py_5PETSc_TS)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_TAO = 0;
#define PyPetscTAO_Type (*__pyx_ptype_8petsc4py_5PETSc_TAO)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_TAOLineSearch = 0;
#define PyPetscTAOLineSearch_Type (*__pyx_ptype_8petsc4py_5PETSc_TAOLineSearch)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_AO = 0;
#define PyPetscAO_Type (*__pyx_ptype_8petsc4py_5PETSc_AO)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_DM = 0;
#define PyPetscDM_Type (*__pyx_ptype_8petsc4py_5PETSc_DM)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_DMPlexTransform = 0;
#define PyPetscDMPlexTransform_Type (*__pyx_ptype_8petsc4py_5PETSc_DMPlexTransform)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_DS = 0;
#define PyPetscDS_Type (*__pyx_ptype_8petsc4py_5PETSc_DS)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_Partitioner = 0;
#define PyPetscPartitioner_Type (*__pyx_ptype_8petsc4py_5PETSc_Partitioner)
static PyTypeObject *__pyx_ptype_8petsc4py_5PETSc_DMLabel = 0;
#define PyPetscDMLabel_Type (*__pyx_ptype_8petsc4py_5PETSc_DMLabel)
static int (*__pyx_api_f_8petsc4py_5PETSc_PyPetscError_Set)(PetscErrorCode) = 0;
#define PyPetscError_Set __pyx_api_f_8petsc4py_5PETSc_PyPetscError_Set
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscComm_New)(MPI_Comm) = 0;
#define PyPetscComm_New __pyx_api_f_8petsc4py_5PETSc_PyPetscComm_New
static MPI_Comm (*__pyx_api_f_8petsc4py_5PETSc_PyPetscComm_Get)(PyObject *) = 0;
#define PyPetscComm_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscComm_Get
static MPI_Comm *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscComm_GetPtr)(PyObject *) = 0;
#define PyPetscComm_GetPtr __pyx_api_f_8petsc4py_5PETSc_PyPetscComm_GetPtr
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscObject_New)(PetscObject) = 0;
#define PyPetscObject_New __pyx_api_f_8petsc4py_5PETSc_PyPetscObject_New
static PetscObject (*__pyx_api_f_8petsc4py_5PETSc_PyPetscObject_Get)(PyObject *) = 0;
#define PyPetscObject_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscObject_Get
static PetscObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscObject_GetPtr)(PyObject *) = 0;
#define PyPetscObject_GetPtr __pyx_api_f_8petsc4py_5PETSc_PyPetscObject_GetPtr
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscViewer_New)(PetscViewer) = 0;
#define PyPetscViewer_New __pyx_api_f_8petsc4py_5PETSc_PyPetscViewer_New
static PetscViewer (*__pyx_api_f_8petsc4py_5PETSc_PyPetscViewer_Get)(PyObject *) = 0;
#define PyPetscViewer_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscViewer_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscRandom_New)(PetscRandom) = 0;
#define PyPetscRandom_New __pyx_api_f_8petsc4py_5PETSc_PyPetscRandom_New
static PetscRandom (*__pyx_api_f_8petsc4py_5PETSc_PyPetscRandom_Get)(PyObject *) = 0;
#define PyPetscRandom_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscRandom_Get
static struct PyPetscDeviceObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscDevice_New)(PetscDevice) = 0;
#define PyPetscDevice_New __pyx_api_f_8petsc4py_5PETSc_PyPetscDevice_New
static PetscDevice (*__pyx_api_f_8petsc4py_5PETSc_PyPetscDevice_Get)(PyObject *) = 0;
#define PyPetscDevice_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscDevice_Get
static struct PyPetscDeviceContextObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscDeviceContext_New)(PetscDeviceContext) = 0;
#define PyPetscDeviceContext_New __pyx_api_f_8petsc4py_5PETSc_PyPetscDeviceContext_New
static PetscDeviceContext (*__pyx_api_f_8petsc4py_5PETSc_PyPetscDeviceContext_Get)(PyObject *) = 0;
#define PyPetscDeviceContext_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscDeviceContext_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscIS_New)(IS) = 0;
#define PyPetscIS_New __pyx_api_f_8petsc4py_5PETSc_PyPetscIS_New
static IS (*__pyx_api_f_8petsc4py_5PETSc_PyPetscIS_Get)(PyObject *) = 0;
#define PyPetscIS_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscIS_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscLGMap_New)(ISLocalToGlobalMapping) = 0;
#define PyPetscLGMap_New __pyx_api_f_8petsc4py_5PETSc_PyPetscLGMap_New
static ISLocalToGlobalMapping (*__pyx_api_f_8petsc4py_5PETSc_PyPetscLGMap_Get)(PyObject *) = 0;
#define PyPetscLGMap_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscLGMap_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscSF_New)(PetscSF) = 0;
#define PyPetscSF_New __pyx_api_f_8petsc4py_5PETSc_PyPetscSF_New
static PetscSF (*__pyx_api_f_8petsc4py_5PETSc_PyPetscSF_Get)(PyObject *) = 0;
#define PyPetscSF_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscSF_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscVec_New)(Vec) = 0;
#define PyPetscVec_New __pyx_api_f_8petsc4py_5PETSc_PyPetscVec_New
static Vec (*__pyx_api_f_8petsc4py_5PETSc_PyPetscVec_Get)(PyObject *) = 0;
#define PyPetscVec_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscVec_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscScatter_New)(VecScatter) = 0;
#define PyPetscScatter_New __pyx_api_f_8petsc4py_5PETSc_PyPetscScatter_New
static VecScatter (*__pyx_api_f_8petsc4py_5PETSc_PyPetscScatter_Get)(PyObject *) = 0;
#define PyPetscScatter_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscScatter_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscSection_New)(PetscSection) = 0;
#define PyPetscSection_New __pyx_api_f_8petsc4py_5PETSc_PyPetscSection_New
static PetscSection (*__pyx_api_f_8petsc4py_5PETSc_PyPetscSection_Get)(PyObject *) = 0;
#define PyPetscSection_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscSection_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscMat_New)(Mat) = 0;
#define PyPetscMat_New __pyx_api_f_8petsc4py_5PETSc_PyPetscMat_New
static Mat (*__pyx_api_f_8petsc4py_5PETSc_PyPetscMat_Get)(PyObject *) = 0;
#define PyPetscMat_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscMat_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscMatPartitioning_New)(MatPartitioning) = 0;
#define PyPetscMatPartitioning_New __pyx_api_f_8petsc4py_5PETSc_PyPetscMatPartitioning_New
static MatPartitioning (*__pyx_api_f_8petsc4py_5PETSc_PyPetscMatPartitioning_Get)(PyObject *) = 0;
#define PyPetscMatPartitioning_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscMatPartitioning_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscPC_New)(PC) = 0;
#define PyPetscPC_New __pyx_api_f_8petsc4py_5PETSc_PyPetscPC_New
static PC (*__pyx_api_f_8petsc4py_5PETSc_PyPetscPC_Get)(PyObject *) = 0;
#define PyPetscPC_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscPC_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscKSP_New)(KSP) = 0;
#define PyPetscKSP_New __pyx_api_f_8petsc4py_5PETSc_PyPetscKSP_New
static KSP (*__pyx_api_f_8petsc4py_5PETSc_PyPetscKSP_Get)(PyObject *) = 0;
#define PyPetscKSP_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscKSP_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscSNES_New)(SNES) = 0;
#define PyPetscSNES_New __pyx_api_f_8petsc4py_5PETSc_PyPetscSNES_New
static SNES (*__pyx_api_f_8petsc4py_5PETSc_PyPetscSNES_Get)(PyObject *) = 0;
#define PyPetscSNES_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscSNES_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscTS_New)(TS) = 0;
#define PyPetscTS_New __pyx_api_f_8petsc4py_5PETSc_PyPetscTS_New
static TS (*__pyx_api_f_8petsc4py_5PETSc_PyPetscTS_Get)(PyObject *) = 0;
#define PyPetscTS_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscTS_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscTAO_New)(Tao) = 0;
#define PyPetscTAO_New __pyx_api_f_8petsc4py_5PETSc_PyPetscTAO_New
static Tao (*__pyx_api_f_8petsc4py_5PETSc_PyPetscTAO_Get)(PyObject *) = 0;
#define PyPetscTAO_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscTAO_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscTAOLineSearch_New)(TaoLineSearch) = 0;
#define PyPetscTAOLineSearch_New __pyx_api_f_8petsc4py_5PETSc_PyPetscTAOLineSearch_New
static TaoLineSearch (*__pyx_api_f_8petsc4py_5PETSc_PyPetscTAOLineSearch_Get)(PyObject *) = 0;
#define PyPetscTAOLineSearch_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscTAOLineSearch_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscAO_New)(AO) = 0;
#define PyPetscAO_New __pyx_api_f_8petsc4py_5PETSc_PyPetscAO_New
static AO (*__pyx_api_f_8petsc4py_5PETSc_PyPetscAO_Get)(PyObject *) = 0;
#define PyPetscAO_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscAO_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscDM_New)(DM) = 0;
#define PyPetscDM_New __pyx_api_f_8petsc4py_5PETSc_PyPetscDM_New
static DM (*__pyx_api_f_8petsc4py_5PETSc_PyPetscDM_Get)(PyObject *) = 0;
#define PyPetscDM_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscDM_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscDS_New)(PetscDS) = 0;
#define PyPetscDS_New __pyx_api_f_8petsc4py_5PETSc_PyPetscDS_New
static PetscDS (*__pyx_api_f_8petsc4py_5PETSc_PyPetscDS_Get)(PyObject *) = 0;
#define PyPetscDS_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscDS_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscPartitioner_New)(PetscPartitioner) = 0;
#define PyPetscPartitioner_New __pyx_api_f_8petsc4py_5PETSc_PyPetscPartitioner_New
static PetscPartitioner (*__pyx_api_f_8petsc4py_5PETSc_PyPetscPartitioner_Get)(PyObject *) = 0;
#define PyPetscPartitioner_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscPartitioner_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscFE_New)(PetscFE) = 0;
#define PyPetscFE_New __pyx_api_f_8petsc4py_5PETSc_PyPetscFE_New
static PetscFE (*__pyx_api_f_8petsc4py_5PETSc_PyPetscFE_Get)(PyObject *) = 0;
#define PyPetscFE_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscFE_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscQuad_New)(PetscQuadrature) = 0;
#define PyPetscQuad_New __pyx_api_f_8petsc4py_5PETSc_PyPetscQuad_New
static PetscQuadrature (*__pyx_api_f_8petsc4py_5PETSc_PyPetscQuad_Get)(PyObject *) = 0;
#define PyPetscQuad_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscQuad_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscDMLabel_New)(DMLabel) = 0;
#define PyPetscDMLabel_New __pyx_api_f_8petsc4py_5PETSc_PyPetscDMLabel_New
static DMLabel (*__pyx_api_f_8petsc4py_5PETSc_PyPetscDMLabel_Get)(PyObject *) = 0;
#define PyPetscDMLabel_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscDMLabel_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscSpace_New)(PetscSpace) = 0;
#define PyPetscSpace_New __pyx_api_f_8petsc4py_5PETSc_PyPetscSpace_New
static PetscSpace (*__pyx_api_f_8petsc4py_5PETSc_PyPetscSpace_Get)(PyObject *) = 0;
#define PyPetscSpace_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscSpace_Get
static PyObject *(*__pyx_api_f_8petsc4py_5PETSc_PyPetscDualSpace_New)(PetscDualSpace) = 0;
#define PyPetscDualSpace_New __pyx_api_f_8petsc4py_5PETSc_PyPetscDualSpace_New
static PetscDualSpace (*__pyx_api_f_8petsc4py_5PETSc_PyPetscDualSpace_Get)(PyObject *) = 0;
#define PyPetscDualSpace_Get __pyx_api_f_8petsc4py_5PETSc_PyPetscDualSpace_Get
#ifndef __PYX_HAVE_RT_ImportFunction_3_0_6
#define __PYX_HAVE_RT_ImportFunction_3_0_6
static int __Pyx_ImportFunction_3_0_6(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
PyObject *d = 0;
PyObject *cobj = 0;
union {
void (*fp)(void);
void *p;
} tmp;
d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
if (!d)
goto bad;
cobj = PyDict_GetItemString(d, funcname);
if (!cobj) {
PyErr_Format(PyExc_ImportError,
"%.200s does not export expected C function %.200s",
PyModule_GetName(module), funcname);
goto bad;
}
if (!PyCapsule_IsValid(cobj, sig)) {
PyErr_Format(PyExc_TypeError,
"C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
goto bad;
}
tmp.p = PyCapsule_GetPointer(cobj, sig);
*f = tmp.fp;
if (!(*f))
goto bad;
Py_DECREF(d);
return 0;
bad:
Py_XDECREF(d);
return -1;
}
#endif
#ifndef __PYX_HAVE_RT_ImportType_proto_3_0_6
#define __PYX_HAVE_RT_ImportType_proto_3_0_6
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
#include <stdalign.h>
#endif
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_6(s) alignof(s)
#else
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_6(s) sizeof(void*)
#endif
enum __Pyx_ImportType_CheckSize_3_0_6 {
__Pyx_ImportType_CheckSize_Error_3_0_6 = 0,
__Pyx_ImportType_CheckSize_Warn_3_0_6 = 1,
__Pyx_ImportType_CheckSize_Ignore_3_0_6 = 2
};
static PyTypeObject *__Pyx_ImportType_3_0_6(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_6 check_size);
#endif
#ifndef __PYX_HAVE_RT_ImportType_3_0_6
#define __PYX_HAVE_RT_ImportType_3_0_6
static PyTypeObject *__Pyx_ImportType_3_0_6(PyObject *module, const char *module_name, const char *class_name,
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_6 check_size)
{
PyObject *result = 0;
char warning[200];
Py_ssize_t basicsize;
Py_ssize_t itemsize;
#if CYTHON_COMPILING_IN_LIMITED_API
PyObject *py_basicsize;
PyObject *py_itemsize;
#endif
result = PyObject_GetAttrString(module, class_name);
if (!result)
goto bad;
if (!PyType_Check(result)) {
PyErr_Format(PyExc_TypeError,
"%.200s.%.200s is not a type object",
module_name, class_name);
goto bad;
}
#if !CYTHON_COMPILING_IN_LIMITED_API
basicsize = ((PyTypeObject *)result)->tp_basicsize;
itemsize = ((PyTypeObject *)result)->tp_itemsize;
#else
py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
if (!py_basicsize)
goto bad;
basicsize = PyLong_AsSsize_t(py_basicsize);
Py_DECREF(py_basicsize);
py_basicsize = 0;
if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
goto bad;
py_itemsize = PyObject_GetAttrString(result, "__itemsize__");
if (!py_itemsize)
goto bad;
itemsize = PyLong_AsSsize_t(py_itemsize);
Py_DECREF(py_itemsize);
py_itemsize = 0;
if (itemsize == (Py_ssize_t)-1 && PyErr_Occurred())
goto bad;
#endif
if (itemsize) {
if (size % alignment) {
alignment = size % alignment;
}
if (itemsize < (Py_ssize_t)alignment)
itemsize = (Py_ssize_t)alignment;
}
if ((size_t)(basicsize + itemsize) < size) {
PyErr_Format(PyExc_ValueError,
"%.200s.%.200s size changed, may indicate binary incompatibility. "
"Expected %zd from C header, got %zd from PyObject",
module_name, class_name, size, basicsize+itemsize);
goto bad;
}
if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_6 &&
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
PyErr_Format(PyExc_ValueError,
"%.200s.%.200s size changed, may indicate binary incompatibility. "
"Expected %zd from C header, got %zd-%zd from PyObject",
module_name, class_name, size, basicsize, basicsize+itemsize);
goto bad;
}
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_6 && (size_t)basicsize > size) {
PyOS_snprintf(warning, sizeof(warning),
"%s.%s size changed, may indicate binary incompatibility. "
"Expected %zd from C header, got %zd from PyObject",
module_name, class_name, size, basicsize);
if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
}
return (PyTypeObject *)result;
bad:
Py_XDECREF(result);
return NULL;
}
#endif
static int import_petsc4py__PETSc(void) {
PyObject *module = 0;
module = PyImport_ImportModule("petsc4py.PETSc");
if (!module) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscError_Set", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscError_Set, "int (PetscErrorCode)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscComm_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscComm_New, "PyObject *(MPI_Comm)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscComm_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscComm_Get, "MPI_Comm (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscComm_GetPtr", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscComm_GetPtr, "MPI_Comm *(PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscObject_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscObject_New, "PyObject *(PetscObject)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscObject_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscObject_Get, "PetscObject (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscObject_GetPtr", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscObject_GetPtr, "PetscObject *(PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscViewer_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscViewer_New, "PyObject *(PetscViewer)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscViewer_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscViewer_Get, "PetscViewer (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscRandom_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscRandom_New, "PyObject *(PetscRandom)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscRandom_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscRandom_Get, "PetscRandom (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDevice_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDevice_New, "struct PyPetscDeviceObject *(PetscDevice)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDevice_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDevice_Get, "PetscDevice (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDeviceContext_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDeviceContext_New, "struct PyPetscDeviceContextObject *(PetscDeviceContext)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDeviceContext_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDeviceContext_Get, "PetscDeviceContext (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscIS_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscIS_New, "PyObject *(IS)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscIS_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscIS_Get, "IS (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscLGMap_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscLGMap_New, "PyObject *(ISLocalToGlobalMapping)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscLGMap_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscLGMap_Get, "ISLocalToGlobalMapping (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscSF_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscSF_New, "PyObject *(PetscSF)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscSF_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscSF_Get, "PetscSF (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscVec_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscVec_New, "PyObject *(Vec)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscVec_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscVec_Get, "Vec (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscScatter_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscScatter_New, "PyObject *(VecScatter)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscScatter_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscScatter_Get, "VecScatter (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscSection_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscSection_New, "PyObject *(PetscSection)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscSection_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscSection_Get, "PetscSection (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscMat_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscMat_New, "PyObject *(Mat)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscMat_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscMat_Get, "Mat (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscMatPartitioning_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscMatPartitioning_New, "PyObject *(MatPartitioning)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscMatPartitioning_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscMatPartitioning_Get, "MatPartitioning (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscPC_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscPC_New, "PyObject *(PC)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscPC_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscPC_Get, "PC (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscKSP_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscKSP_New, "PyObject *(KSP)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscKSP_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscKSP_Get, "KSP (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscSNES_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscSNES_New, "PyObject *(SNES)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscSNES_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscSNES_Get, "SNES (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscTS_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscTS_New, "PyObject *(TS)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscTS_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscTS_Get, "TS (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscTAO_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscTAO_New, "PyObject *(Tao)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscTAO_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscTAO_Get, "Tao (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscTAOLineSearch_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscTAOLineSearch_New, "PyObject *(TaoLineSearch)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscTAOLineSearch_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscTAOLineSearch_Get, "TaoLineSearch (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscAO_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscAO_New, "PyObject *(AO)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscAO_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscAO_Get, "AO (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDM_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDM_New, "PyObject *(DM)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDM_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDM_Get, "DM (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDS_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDS_New, "PyObject *(PetscDS)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDS_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDS_Get, "PetscDS (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscPartitioner_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscPartitioner_New, "PyObject *(PetscPartitioner)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscPartitioner_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscPartitioner_Get, "PetscPartitioner (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscFE_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscFE_New, "PyObject *(PetscFE)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscFE_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscFE_Get, "PetscFE (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscQuad_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscQuad_New, "PyObject *(PetscQuadrature)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscQuad_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscQuad_Get, "PetscQuadrature (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDMLabel_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDMLabel_New, "PyObject *(DMLabel)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDMLabel_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDMLabel_Get, "DMLabel (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscSpace_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscSpace_New, "PyObject *(PetscSpace)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscSpace_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscSpace_Get, "PetscSpace (PyObject *)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDualSpace_New", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDualSpace_New, "PyObject *(PetscDualSpace)") < 0) goto bad;
if (__Pyx_ImportFunction_3_0_6(module, "PyPetscDualSpace_Get", (void (**)(void))&__pyx_api_f_8petsc4py_5PETSc_PyPetscDualSpace_Get, "PetscDualSpace (PyObject *)") < 0) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Comm = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Comm", sizeof(struct PyPetscCommObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscCommObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Comm) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Object = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Object", sizeof(struct PyPetscObjectObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscObjectObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Object) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Viewer = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Viewer", sizeof(struct PyPetscViewerObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscViewerObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Viewer) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Random = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Random", sizeof(struct PyPetscRandomObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscRandomObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Random) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Device = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Device", sizeof(struct PyPetscDeviceObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscDeviceObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Device) goto bad;
__pyx_ptype_8petsc4py_5PETSc_DeviceContext = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "DeviceContext", sizeof(struct PyPetscDeviceContextObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscDeviceContextObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_DeviceContext) goto bad;
__pyx_ptype_8petsc4py_5PETSc_IS = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "IS", sizeof(struct PyPetscISObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscISObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_IS) goto bad;
__pyx_ptype_8petsc4py_5PETSc_LGMap = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "LGMap", sizeof(struct PyPetscLGMapObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscLGMapObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_LGMap) goto bad;
__pyx_ptype_8petsc4py_5PETSc_SF = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "SF", sizeof(struct PyPetscSFObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscSFObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_SF) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Vec = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Vec", sizeof(struct PyPetscVecObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscVecObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Vec) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Space = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Space", sizeof(struct PyPetscSpaceObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscSpaceObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Space) goto bad;
__pyx_ptype_8petsc4py_5PETSc_DualSpace = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "DualSpace", sizeof(struct PyPetscDualSpaceObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscDualSpaceObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_DualSpace) goto bad;
__pyx_ptype_8petsc4py_5PETSc_FE = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "FE", sizeof(struct PyPetscFEObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscFEObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_FE) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Quad = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Quad", sizeof(struct PyPetscQuadObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscQuadObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Quad) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Scatter = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Scatter", sizeof(struct PyPetscScatterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscScatterObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Scatter) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Section = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Section", sizeof(struct PyPetscSectionObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscSectionObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Section) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Mat = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Mat", sizeof(struct PyPetscMatObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscMatObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Mat) goto bad;
__pyx_ptype_8petsc4py_5PETSc_MatPartitioning = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "MatPartitioning", sizeof(struct PyPetscMatPartitioningObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscMatPartitioningObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_MatPartitioning) goto bad;
__pyx_ptype_8petsc4py_5PETSc_NullSpace = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "NullSpace", sizeof(struct PyPetscNullSpaceObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscNullSpaceObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_NullSpace) goto bad;
__pyx_ptype_8petsc4py_5PETSc_PC = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "PC", sizeof(struct PyPetscPCObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscPCObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_PC) goto bad;
__pyx_ptype_8petsc4py_5PETSc_KSP = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "KSP", sizeof(struct PyPetscKSPObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscKSPObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_KSP) goto bad;
__pyx_ptype_8petsc4py_5PETSc_SNES = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "SNES", sizeof(struct PyPetscSNESObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscSNESObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_SNES) goto bad;
__pyx_ptype_8petsc4py_5PETSc_TS = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "TS", sizeof(struct PyPetscTSObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscTSObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_TS) goto bad;
__pyx_ptype_8petsc4py_5PETSc_TAO = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "TAO", sizeof(struct PyPetscTAOObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscTAOObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_TAO) goto bad;
__pyx_ptype_8petsc4py_5PETSc_TAOLineSearch = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "TAOLineSearch", sizeof(struct PyPetscTAOLineSearchObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscTAOLineSearchObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_TAOLineSearch) goto bad;
__pyx_ptype_8petsc4py_5PETSc_AO = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "AO", sizeof(struct PyPetscAOObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscAOObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_AO) goto bad;
__pyx_ptype_8petsc4py_5PETSc_DM = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "DM", sizeof(struct PyPetscDMObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscDMObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_DM) goto bad;
__pyx_ptype_8petsc4py_5PETSc_DMPlexTransform = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "DMPlexTransform", sizeof(struct PyPetscDMPlexTransformObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscDMPlexTransformObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_DMPlexTransform) goto bad;
__pyx_ptype_8petsc4py_5PETSc_DS = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "DS", sizeof(struct PyPetscDSObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscDSObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_DS) goto bad;
__pyx_ptype_8petsc4py_5PETSc_Partitioner = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "Partitioner", sizeof(struct PyPetscPartitionerObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscPartitionerObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_Partitioner) goto bad;
__pyx_ptype_8petsc4py_5PETSc_DMLabel = __Pyx_ImportType_3_0_6(module, "petsc4py.PETSc", "DMLabel", sizeof(struct PyPetscDMLabelObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_6(struct PyPetscDMLabelObject),__Pyx_ImportType_CheckSize_Warn_3_0_6); if (!__pyx_ptype_8petsc4py_5PETSc_DMLabel) goto bad;
Py_DECREF(module); module = 0;
return 0;
bad:
Py_XDECREF(module);
return -1;
}
#endif /* !__PYX_HAVE_API__petsc4py__PETSc */

563396
petsc-3.20-PETSc_cython3.0.6.c Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,544 @@
/* Generated by Cython 3.0.6 */
#ifndef __PYX_HAVE__petsc4py__PETSc
#define __PYX_HAVE__petsc4py__PETSc
#include "Python.h"
struct PyPetscCommObject;
struct PyPetscObjectObject;
struct PyPetscViewerObject;
struct PyPetscRandomObject;
struct PyPetscDeviceObject;
struct PyPetscDeviceContextObject;
struct PyPetscISObject;
struct PyPetscLGMapObject;
struct PyPetscSFObject;
struct PyPetscVecObject;
struct PyPetscSpaceObject;
struct PyPetscDualSpaceObject;
struct PyPetscFEObject;
struct PyPetscQuadObject;
struct PyPetscScatterObject;
struct PyPetscSectionObject;
struct PyPetscMatObject;
struct PyPetscMatPartitioningObject;
struct PyPetscNullSpaceObject;
struct PyPetscPCObject;
struct PyPetscKSPObject;
struct PyPetscSNESObject;
struct PyPetscTSObject;
struct PyPetscTAOObject;
struct PyPetscTAOLineSearchObject;
struct PyPetscAOObject;
struct PyPetscDMObject;
struct PyPetscDMPlexTransformObject;
struct PyPetscDSObject;
struct PyPetscPartitionerObject;
struct PyPetscDMLabelObject;
/* "petsc4py/PETSc.pxd":112
* # --------------------------------------------------------------------
*
* ctypedef public api class Comm [ # <<<<<<<<<<<<<<
* type PyPetscComm_Type,
* object PyPetscCommObject,
*/
struct PyPetscCommObject {
PyObject_HEAD
MPI_Comm comm;
int isdup;
PyObject *base;
};
typedef struct PyPetscCommObject PyPetscCommObject;
/* "petsc4py/PETSc.pxd":120
* cdef object base
*
* ctypedef public api class Object [ # <<<<<<<<<<<<<<
* type PyPetscObject_Type,
* object PyPetscObjectObject,
*/
struct PyPetscObjectObject {
PyObject_HEAD
struct __pyx_vtabstruct_8petsc4py_5PETSc_Object *__pyx_vtab;
PyObject *__weakref__;
PyObject *__pyx___dummy__;
PetscObject oval;
PetscObject *obj;
};
typedef struct PyPetscObjectObject PyPetscObjectObject;
/* "petsc4py/PETSc.pxd":132
* cdef object get_dict(self)
*
* ctypedef public api class Viewer(Object) [ # <<<<<<<<<<<<<<
* type PyPetscViewer_Type,
* object PyPetscViewerObject,
*/
struct PyPetscViewerObject {
struct PyPetscObjectObject __pyx_base;
PetscViewer vwr;
};
typedef struct PyPetscViewerObject PyPetscViewerObject;
/* "petsc4py/PETSc.pxd":138
* cdef PetscViewer vwr
*
* ctypedef public api class Random(Object) [ # <<<<<<<<<<<<<<
* type PyPetscRandom_Type,
* object PyPetscRandomObject,
*/
struct PyPetscRandomObject {
struct PyPetscObjectObject __pyx_base;
PetscRandom rnd;
};
typedef struct PyPetscRandomObject PyPetscRandomObject;
/* "petsc4py/PETSc.pxd":144
* cdef PetscRandom rnd
*
* ctypedef public api class Device [ # <<<<<<<<<<<<<<
* type PyPetscDevice_Type,
* object PyPetscDeviceObject,
*/
struct PyPetscDeviceObject {
PyObject_HEAD
PetscDevice device;
PyObject *__weakref__;
};
typedef struct PyPetscDeviceObject PyPetscDeviceObject;
/* "petsc4py/PETSc.pxd":151
* cdef object __weakref__
*
* ctypedef public api class DeviceContext(Object) [ # <<<<<<<<<<<<<<
* type PyPetscDeviceContext_Type,
* object PyPetscDeviceContextObject,
*/
struct PyPetscDeviceContextObject {
struct PyPetscObjectObject __pyx_base;
PetscDeviceContext dctx;
};
typedef struct PyPetscDeviceContextObject PyPetscDeviceContextObject;
/* "petsc4py/PETSc.pxd":157
* cdef PetscDeviceContext dctx
*
* ctypedef public api class IS(Object) [ # <<<<<<<<<<<<<<
* type PyPetscIS_Type,
* object PyPetscISObject,
*/
struct PyPetscISObject {
struct PyPetscObjectObject __pyx_base;
IS iset;
};
typedef struct PyPetscISObject PyPetscISObject;
/* "petsc4py/PETSc.pxd":163
* cdef PetscIS iset
*
* ctypedef public api class LGMap(Object) [ # <<<<<<<<<<<<<<
* type PyPetscLGMap_Type,
* object PyPetscLGMapObject,
*/
struct PyPetscLGMapObject {
struct PyPetscObjectObject __pyx_base;
ISLocalToGlobalMapping lgm;
};
typedef struct PyPetscLGMapObject PyPetscLGMapObject;
/* "petsc4py/PETSc.pxd":169
* cdef PetscLGMap lgm
*
* ctypedef public api class SF(Object) [ # <<<<<<<<<<<<<<
* type PyPetscSF_Type,
* object PyPetscSFObject,
*/
struct PyPetscSFObject {
struct PyPetscObjectObject __pyx_base;
PetscSF sf;
};
typedef struct PyPetscSFObject PyPetscSFObject;
/* "petsc4py/PETSc.pxd":175
* cdef PetscSF sf
*
* ctypedef public api class Vec(Object) [ # <<<<<<<<<<<<<<
* type PyPetscVec_Type,
* object PyPetscVecObject,
*/
struct PyPetscVecObject {
struct PyPetscObjectObject __pyx_base;
Vec vec;
};
typedef struct PyPetscVecObject PyPetscVecObject;
/* "petsc4py/PETSc.pxd":181
* cdef PetscVec vec
*
* ctypedef public api class Space(Object) [ # <<<<<<<<<<<<<<
* type PyPetscSpace_Type,
* object PyPetscSpaceObject,
*/
struct PyPetscSpaceObject {
struct PyPetscObjectObject __pyx_base;
PetscSpace space;
};
typedef struct PyPetscSpaceObject PyPetscSpaceObject;
/* "petsc4py/PETSc.pxd":187
* cdef PetscSpace space
*
* ctypedef public api class DualSpace(Object) [ # <<<<<<<<<<<<<<
* type PyPetscDualSpace_Type,
* object PyPetscDualSpaceObject,
*/
struct PyPetscDualSpaceObject {
struct PyPetscObjectObject __pyx_base;
PetscDualSpace dualspace;
};
typedef struct PyPetscDualSpaceObject PyPetscDualSpaceObject;
/* "petsc4py/PETSc.pxd":193
* cdef PetscDualSpace dualspace
*
* ctypedef public api class FE(Object) [ # <<<<<<<<<<<<<<
* type PyPetscFE_Type,
* object PyPetscFEObject,
*/
struct PyPetscFEObject {
struct PyPetscObjectObject __pyx_base;
PetscFE fe;
};
typedef struct PyPetscFEObject PyPetscFEObject;
/* "petsc4py/PETSc.pxd":199
* cdef PetscFE fe
*
* ctypedef public api class Quad(Object) [ # <<<<<<<<<<<<<<
* type PyPetscQuad_Type,
* object PyPetscQuadObject,
*/
struct PyPetscQuadObject {
struct PyPetscObjectObject __pyx_base;
PetscQuadrature quad;
};
typedef struct PyPetscQuadObject PyPetscQuadObject;
/* "petsc4py/PETSc.pxd":205
* cdef PetscQuadrature quad
*
* ctypedef public api class Scatter(Object) [ # <<<<<<<<<<<<<<
* type PyPetscScatter_Type,
* object PyPetscScatterObject,
*/
struct PyPetscScatterObject {
struct PyPetscObjectObject __pyx_base;
VecScatter sct;
};
typedef struct PyPetscScatterObject PyPetscScatterObject;
/* "petsc4py/PETSc.pxd":211
* cdef PetscScatter sct
*
* ctypedef public api class Section(Object) [ # <<<<<<<<<<<<<<
* type PyPetscSection_Type,
* object PyPetscSectionObject,
*/
struct PyPetscSectionObject {
struct PyPetscObjectObject __pyx_base;
PetscSection sec;
};
typedef struct PyPetscSectionObject PyPetscSectionObject;
/* "petsc4py/PETSc.pxd":217
* cdef PetscSection sec
*
* ctypedef public api class Mat(Object) [ # <<<<<<<<<<<<<<
* type PyPetscMat_Type,
* object PyPetscMatObject,
*/
struct PyPetscMatObject {
struct PyPetscObjectObject __pyx_base;
Mat mat;
};
typedef struct PyPetscMatObject PyPetscMatObject;
/* "petsc4py/PETSc.pxd":223
* cdef PetscMat mat
*
* ctypedef public api class MatPartitioning(Object) [ # <<<<<<<<<<<<<<
* type PyPetscMatPartitioning_Type,
* object PyPetscMatPartitioningObject,
*/
struct PyPetscMatPartitioningObject {
struct PyPetscObjectObject __pyx_base;
MatPartitioning part;
};
typedef struct PyPetscMatPartitioningObject PyPetscMatPartitioningObject;
/* "petsc4py/PETSc.pxd":229
* cdef PetscMatPartitioning part
*
* ctypedef public api class NullSpace(Object) [ # <<<<<<<<<<<<<<
* type PyPetscNullSpace_Type,
* object PyPetscNullSpaceObject,
*/
struct PyPetscNullSpaceObject {
struct PyPetscObjectObject __pyx_base;
MatNullSpace nsp;
};
typedef struct PyPetscNullSpaceObject PyPetscNullSpaceObject;
/* "petsc4py/PETSc.pxd":235
* cdef PetscNullSpace nsp
*
* ctypedef public api class PC(Object) [ # <<<<<<<<<<<<<<
* type PyPetscPC_Type,
* object PyPetscPCObject,
*/
struct PyPetscPCObject {
struct PyPetscObjectObject __pyx_base;
PC pc;
};
typedef struct PyPetscPCObject PyPetscPCObject;
/* "petsc4py/PETSc.pxd":241
* cdef PetscPC pc
*
* ctypedef public api class KSP(Object) [ # <<<<<<<<<<<<<<
* type PyPetscKSP_Type,
* object PyPetscKSPObject,
*/
struct PyPetscKSPObject {
struct PyPetscObjectObject __pyx_base;
KSP ksp;
};
typedef struct PyPetscKSPObject PyPetscKSPObject;
/* "petsc4py/PETSc.pxd":247
* cdef PetscKSP ksp
*
* ctypedef public api class SNES(Object) [ # <<<<<<<<<<<<<<
* type PyPetscSNES_Type,
* object PyPetscSNESObject,
*/
struct PyPetscSNESObject {
struct PyPetscObjectObject __pyx_base;
SNES snes;
};
typedef struct PyPetscSNESObject PyPetscSNESObject;
/* "petsc4py/PETSc.pxd":253
* cdef PetscSNES snes
*
* ctypedef public api class TS(Object) [ # <<<<<<<<<<<<<<
* type PyPetscTS_Type,
* object PyPetscTSObject,
*/
struct PyPetscTSObject {
struct PyPetscObjectObject __pyx_base;
TS ts;
};
typedef struct PyPetscTSObject PyPetscTSObject;
/* "petsc4py/PETSc.pxd":259
* cdef PetscTS ts
*
* ctypedef public api class TAO(Object) [ # <<<<<<<<<<<<<<
* type PyPetscTAO_Type,
* object PyPetscTAOObject,
*/
struct PyPetscTAOObject {
struct PyPetscObjectObject __pyx_base;
Tao tao;
};
typedef struct PyPetscTAOObject PyPetscTAOObject;
/* "petsc4py/PETSc.pxd":265
* cdef PetscTAO tao
*
* ctypedef public api class TAOLineSearch(Object) [ # <<<<<<<<<<<<<<
* type PyPetscTAOLineSearch_Type,
* object PyPetscTAOLineSearchObject,
*/
struct PyPetscTAOLineSearchObject {
struct PyPetscObjectObject __pyx_base;
TaoLineSearch taols;
};
typedef struct PyPetscTAOLineSearchObject PyPetscTAOLineSearchObject;
/* "petsc4py/PETSc.pxd":272
*
*
* ctypedef public api class AO(Object) [ # <<<<<<<<<<<<<<
* type PyPetscAO_Type,
* object PyPetscAOObject,
*/
struct PyPetscAOObject {
struct PyPetscObjectObject __pyx_base;
AO ao;
};
typedef struct PyPetscAOObject PyPetscAOObject;
/* "petsc4py/PETSc.pxd":278
* cdef PetscAO ao
*
* ctypedef public api class DM(Object) [ # <<<<<<<<<<<<<<
* type PyPetscDM_Type,
* object PyPetscDMObject,
*/
struct PyPetscDMObject {
struct PyPetscObjectObject __pyx_base;
DM dm;
};
typedef struct PyPetscDMObject PyPetscDMObject;
/* "petsc4py/PETSc.pxd":284
* cdef PetscDM dm
*
* ctypedef public api class DMPlexTransform(Object) [ # <<<<<<<<<<<<<<
* type PyPetscDMPlexTransform_Type,
* object PyPetscDMPlexTransformObject,
*/
struct PyPetscDMPlexTransformObject {
struct PyPetscObjectObject __pyx_base;
DMPlexTransform tr;
};
typedef struct PyPetscDMPlexTransformObject PyPetscDMPlexTransformObject;
/* "petsc4py/PETSc.pxd":290
* cdef PetscDMPlexTransform tr
*
* ctypedef public api class DS(Object) [ # <<<<<<<<<<<<<<
* type PyPetscDS_Type,
* object PyPetscDSObject,
*/
struct PyPetscDSObject {
struct PyPetscObjectObject __pyx_base;
PetscDS ds;
};
typedef struct PyPetscDSObject PyPetscDSObject;
/* "petsc4py/PETSc.pxd":296
* cdef PetscDS ds
*
* ctypedef public api class Partitioner(Object) [ # <<<<<<<<<<<<<<
* type PyPetscPartitioner_Type,
* object PyPetscPartitionerObject,
*/
struct PyPetscPartitionerObject {
struct PyPetscObjectObject __pyx_base;
PetscPartitioner part;
};
typedef struct PyPetscPartitionerObject PyPetscPartitionerObject;
/* "petsc4py/PETSc.pxd":302
* cdef PetscPartitioner part
*
* ctypedef public api class DMLabel(Object) [ # <<<<<<<<<<<<<<
* type PyPetscDMLabel_Type,
* object PyPetscDMLabelObject,
*/
struct PyPetscDMLabelObject {
struct PyPetscObjectObject __pyx_base;
DMLabel dmlabel;
};
typedef struct PyPetscDMLabelObject PyPetscDMLabelObject;
#ifndef __PYX_HAVE_API__petsc4py__PETSc
#ifdef CYTHON_EXTERN_C
#undef __PYX_EXTERN_C
#define __PYX_EXTERN_C CYTHON_EXTERN_C
#elif defined(__PYX_EXTERN_C)
#ifdef _MSC_VER
#pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
#else
#warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
#endif
#else
#ifdef __cplusplus
#define __PYX_EXTERN_C extern "C"
#else
#define __PYX_EXTERN_C extern
#endif
#endif
#ifndef DL_IMPORT
#define DL_IMPORT(_T) _T
#endif
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscComm_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscObject_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscViewer_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscRandom_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscDevice_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscDeviceContext_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscIS_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscLGMap_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscSF_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscVec_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscSpace_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscDualSpace_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscFE_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscQuad_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscScatter_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscSection_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscMat_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscMatPartitioning_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscNullSpace_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscPC_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscKSP_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscSNES_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscTS_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscTAO_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscTAOLineSearch_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscAO_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscDM_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscDMPlexTransform_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscDS_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscPartitioner_Type;
__PYX_EXTERN_C DL_IMPORT(PyTypeObject) PyPetscDMLabel_Type;
__PYX_EXTERN_C PetscErrorCode MatPythonGetContext(Mat, void **);
__PYX_EXTERN_C PetscErrorCode MatPythonSetContext(Mat, void *);
__PYX_EXTERN_C PetscErrorCode PCPythonGetContext(PC, void **);
__PYX_EXTERN_C PetscErrorCode PCPythonSetContext(PC, void *);
__PYX_EXTERN_C PetscErrorCode KSPPythonGetContext(KSP, void **);
__PYX_EXTERN_C PetscErrorCode KSPPythonSetContext(KSP, void *);
__PYX_EXTERN_C PetscErrorCode SNESPythonGetContext(SNES, void **);
__PYX_EXTERN_C PetscErrorCode SNESPythonSetContext(SNES, void *);
__PYX_EXTERN_C PetscErrorCode TSPythonGetContext(TS, void **);
__PYX_EXTERN_C PetscErrorCode TSPythonSetContext(TS, void *);
__PYX_EXTERN_C PetscErrorCode TaoPythonGetContext(Tao, void **);
__PYX_EXTERN_C PetscErrorCode TaoPythonSetContext(Tao, void *);
__PYX_EXTERN_C PetscErrorCode PetscPythonRegisterAll(void);
#endif /* !__PYX_HAVE_API__petsc4py__PETSc */
/* WARNING: the interface of the module init function changed in CPython 3.5. */
/* It now returns a PyModuleDef instance instead of a PyModule instance. */
#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC initPETSc(void);
#else
/* WARNING: Use PyImport_AppendInittab("PETSc", PyInit_PETSc) instead of calling PyInit_PETSc directly from Python 3.5 */
PyMODINIT_FUNC PyInit_PETSc(void);
#if PY_VERSION_HEX >= 0x03050000 && (defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER) || (defined(__cplusplus) && __cplusplus >= 201402L))
#if defined(__cplusplus) && __cplusplus >= 201402L
[[deprecated("Use PyImport_AppendInittab(\"PETSc\", PyInit_PETSc) instead of calling PyInit_PETSc directly.")]] inline
#elif defined(__GNUC__) || defined(__clang__)
__attribute__ ((__deprecated__("Use PyImport_AppendInittab(\"PETSc\", PyInit_PETSc) instead of calling PyInit_PETSc directly."), __unused__)) __inline__
#elif defined(_MSC_VER)
__declspec(deprecated("Use PyImport_AppendInittab(\"PETSc\", PyInit_PETSc) instead of calling PyInit_PETSc directly.")) __inline
#endif
static PyObject* __PYX_WARN_IF_PyInit_PETSc_INIT_CALLED(PyObject* res) {
return res;
}
#define PyInit_PETSc() __PYX_WARN_IF_PyInit_PETSc_INIT_CALLED(PyInit_PETSc())
#endif
#endif
#endif /* !__PYX_HAVE__petsc4py__PETSc */

View File

@ -1,17 +0,0 @@
diff --git a/lib/petsc/conf/rules b/lib/petsc/conf/rules
index c6cfba4..7491faf 100644
--- lib/petsc/conf/rules
+++ lib/petsc/conf/rules
@@ -37,9 +37,10 @@ chklib_dir: chk_makej
@if [ ! -d "${INSTALL_LIB_DIR}" ]; then \
echo Making directory ${INSTALL_LIB_DIR} for library; ${MKDIR} ${INSTALL_LIB_DIR} ; fi
-
# 3. Check if the shared libs are out of date
-chkopts: chk_upgrade
+chkopts:
+ @true
+chkopts_disabled: chk_upgrade
@for LIBNAME in ${SHLIBS}; do \
library=${INSTALL_LIB_DIR}/$$LIBNAME.a; \
sharedlibrary=${INSTALL_LIB_DIR}/$$LIBNAME.${SL_LINKER_SUFFIX}; \

1668
petsc.spec

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
SHA512 (petsc-3.11.3.tar.gz) = e545f69e87bc72950939ff3cec3e0ba225a5b3e7f1cb93b0fb6123194eb7240ac1d97ba397235d8ab872c653caab1427673124e5e1e706b796c0ae46ec1bcffa
SHA512 (petsc-with-docs-3.20.6.tar.gz) = 9af17dba10fd4d6bc10b767eaddfd2935084f29aa20a2733a9c094e85333e33c217703ea3bcb7343c36421af2b248a46851a61a6a334bd88dadb339cb53bf116