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
7a477127
Commit
7a477127
authored
12 years ago
by
Franck Pérignon
Browse files
Options
Downloads
Patches
Plain Diff
update python setup
parent
ff33ea63
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
HySoP/CMakeLists.txt
+3
-0
3 additions, 0 deletions
HySoP/CMakeLists.txt
HySoP/setup.py.in
+6
-2
6 additions, 2 deletions
HySoP/setup.py.in
HySoP/src/CMakeLists.txt
+3
-1
3 additions, 1 deletion
HySoP/src/CMakeLists.txt
with
12 additions
and
3 deletions
HySoP/CMakeLists.txt
+
3
−
0
View file @
7a477127
...
@@ -74,6 +74,9 @@ set(PARMES_LIBRARY_NAME parmes)
...
@@ -74,6 +74,9 @@ set(PARMES_LIBRARY_NAME parmes)
set
(
PACKAGE_NAME Parmes
)
set
(
PACKAGE_NAME Parmes
)
add_subdirectory
(
src
)
add_subdirectory
(
src
)
display
(
FFTWLIB
)
# ============= Generates setup.py =============
# ============= Generates setup.py =============
# The file setup.py will be generated from setup.py.in.
# The file setup.py will be generated from setup.py.in.
if
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/setup.py.in
)
if
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/setup.py.in
)
...
...
This diff is collapsed.
Click to expand it.
HySoP/setup.py.in
+
6
−
2
View file @
7a477127
...
@@ -56,11 +56,15 @@ testf2pyModule=Extension(name='parmepy.testf2py',f2py_options=f2py_options,sourc
...
@@ -56,11 +56,15 @@ testf2pyModule=Extension(name='parmepy.testf2py',f2py_options=f2py_options,sourc
ext_modules
.
append
(
testf2pyModule
)
ext_modules
.
append
(
testf2pyModule
)
withfftw
=
"
OFF
"
#
"@WITH_FFTW@"
withfftw
=
"
@WITH_FFTW@
"
if
(
withfftw
is
"
ON
"
):
if
(
withfftw
is
"
ON
"
):
fortran_src
=
glob
.
glob
(
'
@CMAKE_SOURCE_DIR@/parmepy/parmesfftw2py/*.f90
'
)
fortran_src
=
glob
.
glob
(
'
@CMAKE_SOURCE_DIR@/parmepy/parmesfftw2py/*.f90
'
)
# sys.path.extend('config_fc -DF2PY_REPORT_ON_ARRAY_COPY'.split())
fftwdir
=
'
@FFTWLIB@
'
fftwdir
=
os
.
path
.
split
(
fftwdir
)[
0
]
parmeslib
.
append
(
'
fftw3
'
)
parmeslib
.
append
(
'
fftw3_mpi
'
)
parmes_libdir
.
append
(
fftwdir
)
parpyModule
=
Extension
(
name
=
'
parmepy.fftw2py
'
,
parpyModule
=
Extension
(
name
=
'
parmepy.fftw2py
'
,
f2py_options
=
f2py_options
,
f2py_options
=
f2py_options
,
sources
=
fortran_src
,
sources
=
fortran_src
,
...
...
This diff is collapsed.
Click to expand it.
HySoP/src/CMakeLists.txt
+
3
−
1
View file @
7a477127
...
@@ -15,7 +15,7 @@ set(EXE_NAME ${PARMES_LIBRARY_NAME}Run)
...
@@ -15,7 +15,7 @@ set(EXE_NAME ${PARMES_LIBRARY_NAME}Run)
# Any file in those dirs will be used to create libparmes
# Any file in those dirs will be used to create libparmes
set
(
${
PARMES_LIBRARY_NAME
}
_SRCDIRS
set
(
${
PARMES_LIBRARY_NAME
}
_SRCDIRS
.
.
#
poisson
poisson
#src/interfaces/Fortran2Cpp
#src/interfaces/Fortran2Cpp
# src/interfaces/ppm
# src/interfaces/ppm
)
)
...
@@ -96,6 +96,8 @@ if(WITH_FFTW)
...
@@ -96,6 +96,8 @@ if(WITH_FFTW)
include_directories
(
${
FFTW_INCLUDE_DIRS
}
)
include_directories
(
${
FFTW_INCLUDE_DIRS
}
)
set
(
LIBS
${
LIBS
}
${
FFTW_LIBRARIES
}
)
set
(
LIBS
${
LIBS
}
${
FFTW_LIBRARIES
}
)
endif
()
endif
()
# for python setup.py
set
(
FFTWLIB
${
FFTW_LIBRARY
}
PARENT_SCOPE
)
# ============= Generates ParmesConfig.hpp =============
# ============= Generates ParmesConfig.hpp =============
# The file PARMES_LIBRARY_NAME_defines.hpp will be generated from config.hpp.cmake;
# The file PARMES_LIBRARY_NAME_defines.hpp will be generated from config.hpp.cmake;
...
...
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