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
1c287689
Commit
1c287689
authored
12 years ago
by
Franck Pérignon
Browse files
Options
Downloads
Patches
Plain Diff
update examples for scales and set static lib for Parmes to avoid explicit set of LD_LIBRARY_PATH
parent
25a57cc3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/turnSphere.py
+3
-3
3 additions, 3 deletions
Examples/turnSphere.py
HySoP/CMakeLists.txt
+1
-1
1 addition, 1 deletion
HySoP/CMakeLists.txt
with
4 additions
and
4 deletions
Examples/turnSphere.py
+
3
−
3
View file @
1c287689
import
parmepy
as
pp
import
parmepy
as
pp
import
parmepy.
scales
2py
as
sc
import
parmepy.
f
2py
as
sc
scales
=
sc
.
scales2py
scales
=
sc
.
scales2py
import
numpy
as
np
import
numpy
as
np
import
mpi4py.MPI
as
MPI
import
mpi4py.MPI
as
MPI
...
@@ -17,8 +17,8 @@ pbDim = 3
...
@@ -17,8 +17,8 @@ pbDim = 3
nbProcs
=
comm
.
Get_size
()
nbProcs
=
comm
.
Get_size
()
# ===== Create topologies and meshes ====
# ===== Create topologies and meshes ====
dims
=
[
2
,
nbProcs
/
2
]
#
dims = [2, nbProcs/2]
#
dims = [1, 1]
dims
=
[
1
,
1
]
scales
.
cartcreate
(
dims
,
5
)
scales
.
cartcreate
(
dims
,
5
)
resolution
=
np
.
ones
((
pbDim
),
dtype
=
'
int32
'
)
resolution
=
np
.
ones
((
pbDim
),
dtype
=
'
int32
'
)
...
...
This diff is collapsed.
Click to expand it.
HySoP/CMakeLists.txt
+
1
−
1
View file @
1c287689
...
@@ -33,7 +33,7 @@ option(WITH_SCALES "compile/create parmesscales lib and link it with Parmes. Def
...
@@ -33,7 +33,7 @@ option(WITH_SCALES "compile/create parmesscales lib and link it with Parmes. Def
option
(
WITH_PPM
"link Parmes with PPM library (core component). Default = off."
OFF
)
option
(
WITH_PPM
"link Parmes with PPM library (core component). Default = off."
OFF
)
option
(
WITH_PPMNumerics
"link Parmes with PPM-numerics. Default = off"
OFF
)
option
(
WITH_PPMNumerics
"link Parmes with PPM-numerics. Default = off"
OFF
)
option
(
WITH_TESTS
"Enable testing. Default = off"
OFF
)
option
(
WITH_TESTS
"Enable testing. Default = off"
OFF
)
option
(
BUILD_SHARED_LIBS
"Enable dynamic library build, default = ON"
O
N
)
option
(
BUILD_SHARED_LIBS
"Enable dynamic library build, default = ON"
O
FF
)
option
(
WITH_FFTW
"Link with fftw library (required for some Parmes solvers), default = ON"
ON
)
option
(
WITH_FFTW
"Link with fftw library (required for some Parmes solvers), default = ON"
ON
)
# cmake project name
# cmake project name
...
...
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