History log of /petsc/src/ts/tutorials/ex22f_mf.F90 (Results 1 – 25 of 36)
Revision Date Author Comments
# 4e8208cb 31-Jan-2026 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2026-01-13/ftn-generation-for-context-functions' into 'main'

Fortran generation of interface definitions for functions that take and return context variables (void *ctx and PetC

Merge branch 'barry/2026-01-13/ftn-generation-for-context-functions' into 'main'

Fortran generation of interface definitions for functions that take and return context variables (void *ctx and PetCtx ctx)

See merge request petsc/petsc!8956

show more ...


# 2a8381b2 13-Jan-2026 Barry Smith <bsmith@mcs.anl.gov>

Add automatic generated fortran support for setting and returning contexts

Major cleanup of the code for setting and returning application (previously called user) contexts
- PetscCtx ctx is now t

Add automatic generated fortran support for setting and returning contexts

Major cleanup of the code for setting and returning application (previously called user) contexts
- PetscCtx ctx is now the standard for passing in contexts
- PetscCtxRt ctx is the standard for passing out contexts, including context destroy routines based on PetscCtxDestroyFn

Both of these are typedef to void*

Also removed most use of user and userctx for context arguments now consistently named ctx

Improved documentation on PetscCtx and PetscCtxRt and on how to use contexts (including getting them) from Fortran

show more ...


# 9b88ac22 29-Oct-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'MarDiehl/improve-Fortran-examples' into 'main'

Improve Fortran examples

See merge request petsc/petsc!8698


# 02c639af 14-Oct-2025 Martin Diehl <mail@martin-diehl.net>

Fortran: enforce lower case keywords and operators

also fixed occasional capitals in used modules with the help of @prj-


# c5e229c2 29-Sep-2025 Martin Diehl <mail@martin-diehl.net>

place all the include statements at the top

Repeated inclusion in multiple location, e.g. at the start of a
module or function is not needed. This becomes clear if all includes are
outside of the ac

place all the include statements at the top

Repeated inclusion in multiple location, e.g. at the start of a
module or function is not needed. This becomes clear if all includes are
outside of the actual Fortran code.
Added regex to check that with the help of @sbalay

show more ...


# edb0e59d 23-Sep-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2025-07-01/format-fortran-source-fprettify' into 'main'

format fortran source with fprettify

See merge request petsc/petsc!8514


# 4820e4ea 23-Sep-2025 Barry Smith <bsmith@mcs.anl.gov>

Run fprettify


# 609caa7c 19-Jul-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jolivet/rm-explicit-empty-output_file' into 'main'

Remove 535 empty .out and consolidate the use of output/empty.out

See merge request petsc/petsc!8538


# 3886731f 09-Jul-2025 Pierre Jolivet <pierre@joliv.et>

Remove explicitly listed empty files and switch to output/empty.out


# 3868eb11 07-Jul-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'MarDiehl/Fortran-use-ISO_C_BINDING' into 'main'

include ISO_C_BINDING

See merge request petsc/petsc!8481


# fe66ebcc 18-Jun-2025 Martin Diehl <mail@martin-diehl.net>

use integer and real kinds from ISO_C_binding

The kinds in this module are guaranteed to be compatible with the
corresponding C types.
Requires to include the ISO_C_binding module in interfaces and

use integer and real kinds from ISO_C_binding

The kinds in this module are guaranteed to be compatible with the
corresponding C types.
Requires to include the ISO_C_binding module in interfaces and stray
functions

show more ...


# 6eff51de 04-Jul-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2025-07-02/fortran-no-semicolon-end-of-line' into 'main'

fortran no semicolon at end of line

See merge request petsc/petsc!8519


# ccfd86f1 04-Jul-2025 Barry Smith <bsmith@mcs.anl.gov>

fortran no semicolon at end of line

Remove all unneeded ; at end of Fortran source code line

Add checkbadSource to check for semicolon at the end of lines


# 6d8694c4 20-Mar-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2024-04-29/add-fortran-enums' into 'main'

Major updates to Fortran interface

See merge request petsc/petsc!7517


# ce78bad3 20-Feb-2025 Barry Smith <bsmith@petsc.dev>

Fortran 90: fully embrace After 34 years!

- deprecate use of 'F90' in Fortran function names
- use Fortran pointers when appropriate
- the new Fortran API is not backward compatible with previous ve

Fortran 90: fully embrace After 34 years!

- deprecate use of 'F90' in Fortran function names
- use Fortran pointers when appropriate
- the new Fortran API is not backward compatible with previous versions!
- also clean up inconsistent PETSc code detected by new Fortran generation tools
- drop use of bfort
- automatically generate all the Fortran PETSc objects, enums etc from the include files
- generate most of the Fortran interface definitions and functions from the source code
- simplify the number and organization of Fortran modules

Co-authored-by: Jose E. Roman <jroman@dsic.upv.es>

show more ...


# a623e290 12-Jun-2024 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2024-05-29/minor-fortran-stub-cleanup' into 'main'

More improvements to Fortran stubs and interfaces

See merge request petsc/petsc!7598


# 5d83a8b1 30-May-2024 Barry Smith <bsmith@mcs.anl.gov>

This requires some changes to user FORTRAN code

Pass PETSC_NULL_XXX_ARRAY when passing a NULL as an argument that is expecting an array
Pass PETSC_NULL_ENUM when argument returns an enum instead of

This requires some changes to user FORTRAN code

Pass PETSC_NULL_XXX_ARRAY when passing a NULL as an argument that is expecting an array
Pass PETSC_NULL_ENUM when argument returns an enum instead of PETSC_NULL_INTEGER
Pass arrays (and not scalar values) when the argument is expecting an array; this means replace, for example, the argument v with [v]
Use PetscObjectIsNull(obj) to check if the object is NULL, instead of obj == PETSC_NULL_XXX

The compiler will now automatically prevent you from using the wrong argument type for the first three bullets above
This will also require an update sowing with the new sowing branch this MR is using.

show more ...


# a7155305 23-Mar-2024 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jolivet/remove-fortran-return' into 'main'

Fortran: remove unneeded return

Closes #1564

See merge request petsc/petsc!7402


# 849a9ca3 23-Mar-2024 Pierre Jolivet <pierre@joliv.et>

Fortran: remove unneeded return


# 18290094 15-Jan-2023 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2022-12-27/rm-vecgetarray-fortran-examples' into 'main'

Replace use of VecGetArray() and friends from Fortran examples and docs

See merge request petsc/petsc!5950


# 42ce371b 28-Dec-2022 Barry Smith <bsmith@mcs.anl.gov>

Update examples to use VecGetArrayF90() and similar routines instead of VecGetArray() and similar routines

Commit-type: housekeeping
/spend 2h


# 95358afd 22-Aug-2022 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2022-08-22/rm-common-block-examples' into 'main'

Remove last three Fortran examples that use common blocks (and include files for the common blocks)

See merge request petsc/pets

Merge branch 'barry/2022-08-22/rm-common-block-examples' into 'main'

Remove last three Fortran examples that use common blocks (and include files for the common blocks)

See merge request petsc/petsc!5542

show more ...


# 77d968b7 22-Aug-2022 Barry Smith <bsmith@mcs.anl.gov>

Name all modules in Fortran examples consistently with examplenamemodule to

* prevent conflicts between examples
* to make it easy to determine which module files generated in the filesystem are for

Name all modules in Fortran examples consistently with examplenamemodule to

* prevent conflicts between examples
* to make it easy to determine which module files generated in the filesystem are for each example

Commit-type: housekeeping
/spend 20m
Thanks-to: Satish Balay

show more ...


# 540c0c32 02-Jun-2022 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2022-05-24/add-petsccall-fortran-examples' into 'main'

Update all Fortran examples to modern error checking with PetscCallXXX() wrappers around PETSc/MPI function calls.

See mer

Merge branch 'barry/2022-05-24/add-petsccall-fortran-examples' into 'main'

Update all Fortran examples to modern error checking with PetscCallXXX() wrappers around PETSc/MPI function calls.

See merge request petsc/petsc!5271

show more ...


# d8606c27 24-May-2022 Barry Smith <bsmith@mcs.anl.gov>

Add modern error checking to rest of Fortran examples

/spend 2.5h


12