Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ Again, for more details we refer to our [documentation](https://pyccel.github.io
> This gives the user access to a wide variety of linear solvers and other algorithms.
> Instructions for installing [PETSc](https://petsc.org) and `petsc4py` can be found in our [documentation](https://pyccel.github.io/psydac/installation.html#id9).

> [!TIP]
> PSYDAC is installed with a Fortran backend by default however it is possible to request a different language backend by adding `-Csetup-args="-Dpyccel_language=<language>"` to the pip command (e.g. `-Csetup-args="-Dpyccel_language=c"`).
> This is particularly useful if you want to use psydac in a project which also uses Pyccel for acceleration.

Comment thread
yguclu marked this conversation as resolved.
Outdated
## Running Tests

We strongly advice users and developers to run the test suite of PSYDAC to verify the correct installation on their machine (possibly a supercomputer).
Expand Down
11 changes: 10 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ project(
meson_version: '>=1.1.0',
)

run_command('pyccel', 'make', '-g', 'psydac/**/*_kernels.py', '--convert-only',
pyccel_main_language = get_option('pyccel_language')

message('Translating kernels to ' + pyccel_main_language)

run_command('pyccel', 'make', '-g', 'psydac/**/*_kernels.py', '--convert-only', '--language=' + pyccel_main_language,
check: true)

find = find_program('find', required: true)

# Python dependencies
py = import('python').find_installation('/usr/bin/python3.13', modules: ['numpy'])
Comment thread
yguclu marked this conversation as resolved.
Outdated
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : false)

pyccel_meson_math_file = run_command(find, '__pyccel__/math', '-name', 'meson.build',
check: true).stdout().strip()
pyccel_meson_cwrapper_file = run_command(find, '__pyccel__/cwrapper', '-name', 'meson.build',
Expand Down
2 changes: 2 additions & 0 deletions meson.options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
option('pyccel_language', type : 'string', value : 'fortran', description : 'The language that Pyccel translates to [default: Fortran].')

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["meson-python", "pyccel >= 2.1.0"]
requires = ["meson-python", "pyccel >= 2.2.2"]
build-backend = "mesonpy"

[project]
Expand Down Expand Up @@ -32,7 +32,7 @@ dependencies = [

# Our packages from PyPi
'sympde == 0.19.2',
'pyccel >= 2.1.0',
'pyccel >= 2.2.2',
'gelato == 0.12',

# MPI for Python provides Python bindings for the
Expand Down
Loading