forked from petsc/petsc
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from firedrakeproject/connorjward/merge-upstream
Merge upstream
- Loading branch information
Showing
47 changed files
with
466 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
:orphan: | ||
|
||
.. _2025_meeting: | ||
|
||
|
||
2025 PETSc Annual Users Meeting and Tutorial | ||
******************************************** | ||
|
||
May 20-21, 2025, University of Buffalo, New York, USA | ||
|
||
|
||
Meeting times | ||
------------- | ||
* Monday, May 19 - Tutorial | ||
* Tuesday, May 20 - Meeting | ||
* Wednesday, May 21 - Meeting | ||
|
||
|
||
Registration | ||
------------ | ||
Please `register <https://ti.to/nf-projects/petsc-annual-meeting>`__ to save your seat. | ||
Fee: $100, for breaks and lunches; free for students. | ||
|
||
Submit a presentation | ||
--------------------- | ||
`Submit an abstract <https://docs.google.com/forms/d/126KwzajoQvcqU_q7btNsYxFqbe7rJ_vASC-tejZfXDQ>`__ to be included in the schedule. | ||
We welcome talks from all perspectives, including | ||
|
||
* contributions to PETSc | ||
* use of PETSc in applications or libraries | ||
* development of libraries and packages `called from PETSc <https://petsc.org/release/install/external_software/>`__ | ||
* just curious about using PETSc in applications | ||
|
||
Student Travel Support | ||
---------------------- | ||
|
||
We have funding to provide travel support for students attending the meeting without their own funding. To apply, check the | ||
"Student Funding Support" ticket while registering for the meeting. Early registration will increase your chance of obtaining travel support. | ||
|
||
Questions and Meeting Discussion | ||
-------------------------------- | ||
|
||
For questions about the meeting contact [email protected]. | ||
Join the discussion about the meeting on the `2025 PETSc Annual Users Meeting Discord channel <https://discord.com/channels/1119324534303109172/1298348560600924200>`__, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ Additional Information | |
:maxdepth: 2 | ||
|
||
fortran | ||
versionchecking | ||
matlab | ||
profiling | ||
performance | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
.. _ch_versionchecking: | ||
|
||
Checking the PETSc version | ||
-------------------------- | ||
The PETSc version | ||
is defined in ``$PETSC_DIR/include/petscversion.h`` with the three macros | ||
``PETSC_VERSION_MAJOR``, ``PETSC_VERSION_MINOR``, and ``PETSC_VERSION_SUBMINOR``. | ||
|
||
The shell commands ``make getversion`` or ``$PETSC_DIR/lib/petsc/bin/petscversion`` prints out the PETSc version. | ||
The command | ||
|
||
.. code-block:: console | ||
$ $PETSC_DIR/lib/petsc/bin/petscversion <eq,gt,lt,ge,le> major.minor<.subminor> | ||
allows one to add tests to make files, CMake files, configure scripts etc, to ensure the PETSc version is compatible with your applications. For example, | ||
|
||
.. code-block:: console | ||
$ $PETSC_DIR/lib/petsc/bin/petscversion eq 3.22 | ||
returns 1 if the PETSc version is 3.22 (any subminor version is allowed). While | ||
|
||
.. code-block:: console | ||
$ $PETSC_DIR/lib/petsc/bin/petscversion ge 3.21 | ||
returns 1 if the PETSc version is 3.21 or higher. | ||
|
||
|
||
Though we try to avoid making changes to the PETSc API, they are inevitable; thus we | ||
provide tools to help manage one's application to be robust to such changes. | ||
|
||
During configure/make time | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The command | ||
|
||
.. code-block:: console | ||
$ $PETSC_DIR/lib/petsc/bin/petscversion eq xxx.yyy[.zzz] | ||
prints out 1 if the PETSc version matches ``xxx.yyy[.zzz]`` and 0 otherwise. The command works in a similar | ||
way for ``lt``, ``le``, ``gt``, and ``ge``. This allows your application configure script, or ``makefile`` or ``CMake`` file | ||
to check if the PETSc version is compatible with application even before beginning to compile your code. | ||
|
||
|
||
During compile time | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
The CPP macros | ||
|
||
- ``PETSC_VERSION_EQ(MAJOR,MINOR,SUBMINOR)`` | ||
- ``PETSC_VERSION_LT(MAJOR,MINOR,SUBMINOR)`` | ||
- ``PETSC_VERSION_LE(MAJOR,MINOR,SUBMINOR)`` | ||
- ``PETSC_VERSION_GT(MAJOR,MINOR,SUBMINOR)`` | ||
- ``PETSC_VERSION_GE(MAJOR,MINOR,SUBMINOR)`` | ||
|
||
may be used in the source code to choose different code paths or error out depending on the PETSc version. | ||
|
||
At Runtime | ||
~~~~~~~~~~ | ||
|
||
|
||
The command | ||
|
||
.. code-block:: C | ||
char version(lengthofversion); | ||
PetscErrorCode PetscGetVersion(char version[], size_t lengthofversion) | ||
gives access to the version at runtime. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.