Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hysop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
particle_methods
hysop
Commits
d23e7640
Commit
d23e7640
authored
8 months ago
by
EXT Jean-Matthieu Etancelin
Browse files
Options
Downloads
Patches
Plain Diff
improve f2py options in meson configuration
parent
06dc6b0b
No related branches found
No related tags found
No related merge requests found
Pipeline
#189223
passed
8 months ago
Stage: configure
Stage: build
Stage: install
Stage: test
Stage: docker_hysop_img
Stage: doc
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/meson.build
+14
-7
14 additions, 7 deletions
src/meson.build
with
14 additions
and
7 deletions
src/meson.build
+
14
−
7
View file @
d23e7640
...
...
@@ -17,7 +17,7 @@ endif
# -
message
(
'Generate f2py_f2cmap file.'
)
conf_data
=
configuration_data
({
'f2pymap_for_real'
:
f2pymap_for_real
,
'f2pymap_for_real'
:
f2pymap_for_real
,
})
configure_file
(
input
:
'f2py_f2cmap.tmpl'
,
output
:
'f2py_f2cmap'
,
...
...
@@ -28,9 +28,9 @@ configure_file(input : 'f2py_f2cmap.tmpl',
# -
message
(
'Generate precision.f90 file'
)
conf_data
=
configuration_data
({
'WORKING_PRECISION'
:
working_precision
,
'MPI_PRECISION'
:
mpi_precision
})
'WORKING_PRECISION'
:
working_precision
,
'MPI_PRECISION'
:
mpi_precision
})
prec_file
=
configure_file
(
input
:
'precision.f90_tmpl'
,
output
:
'precision.f90'
,
configuration
:
conf_data
)
...
...
@@ -84,7 +84,7 @@ custom_target_command=[py, '-m', 'numpy.f2py',
# When using -DF2PY_REPORT_ATEXIT, a performance report of F2PY
# interface is printed out at exit (platforms: Linux).
#
# When using -DF2PY_REPORT_ON_ARRAY_COPY=<int>, a message is
# When using
-DWITH_F2PY_REPORT_COPY=ON
-DF2PY_REPORT_ON_ARRAY_COPY=<int>, a message is
# sent to stderr whenever F2PY interface makes a copy of an
# array. Integer <int> sets the threshold for array sizes when
# a message should be shown.
...
...
@@ -223,11 +223,18 @@ f90f_source = custom_target('f2hysopmodule',
depends
:
libhysop_fortran
# Important !
)
f2py_c_args
=
[
'-DWITH_F2PY_REPORT_COPY=OFF'
,
'-DWITH_F2PY_REPORT_EXIT=OFF'
]
if
debug
==
'ON'
f2py_c_args
=
[
'-DWITH_F2PY_REPORT_COPY=ON'
,
'-DF2PY_REPORT_ON_ARRAY_COPY=1'
,
'-DWITH_F2PY_REPORT_EXIT=ON'
,
'-DF2PY_REPORT_ATEXIT'
]
endif
if
profile
==
'ON'
f2py_c_args
=
[
'-DWITH_F2PY_REPORT_EXIT=ON'
,
'-DF2PY_REPORT_ATEXIT'
]
endif
py
.
extension_module
(
'f2hysop'
,
[
src_f90_4_f2py
,
f90f_source
],
incdir_f2py
/
'fortranobject.c'
,
c_args
:[
'-DF2PY_REPORT_ON_ARRAY_COPY=1'
,
'-DF2PY_REPORT_ATEXIT'
],
c_args
:
f2py_c_args
,
link_with
:
libhysop_fortran
,
include_directories
:
extension_incdir
,
dependencies
:
py_dep
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment