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
ddd7e84f
Commit
ddd7e84f
authored
10 years ago
by
Jean-Matthieu Etancelin
Committed by
Franck Pérignon
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ignore pyc and parmepy/__init__.py
parent
db8457ce
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
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
HySoP/hysop/__init__.py
+0
-76
0 additions, 76 deletions
HySoP/hysop/__init__.py
with
2 additions
and
76 deletions
.gitignore
0 → 100644
+
2
−
0
View file @
ddd7e84f
*.pyc
parmepy/__init__.py
\ No newline at end of file
This diff is collapsed.
Click to expand it.
HySoP/hysop/__init__.py
deleted
100755 → 0
+
0
−
76
View file @
db8457ce
"""
@package parmepy
Python package dedicated to flow simulation using particular methods
on hybrid architectures (MPI-GPU)
"""
__version__
=
1.00
__all__
=
[
'
Box
'
,
'
Field
'
]
# Compilation flags
__MPI_ENABLED__
=
"
ON
"
is
"
ON
"
__GPU_ENABLED__
=
"
ON
"
is
"
ON
"
__FFTW_ENABLED__
=
"
ON
"
is
"
ON
"
__SCALES_ENABLED__
=
"
ON
"
is
"
ON
"
__VERBOSE__
=
"
OFF
"
in
[
"
1
"
,
"
3
"
]
__DEBUG__
=
"
OFF
"
in
[
"
2
"
,
"
3
"
]
__PROFILE__
=
"
OFF
"
in
[
"
0
"
,
"
1
"
]
__OPTIMIZE__
=
"
OFF
"
is
"
ON
"
import
parmepy.tools.io_utils
as
io
default_path
=
io
.
io
.
default_path
()
msg_start
=
'
\n
Starting Parmes (no mpi) version
'
msg_start
+=
str
(
__version__
)
msg_io
=
'
\n
Warning : default path for all i/o is
'
+
default_path
+
'
.
\n
'
msg_io
+=
'
If you want to change this, use io.set_default_path function.
\n
'
# MPI
if
__MPI_ENABLED__
:
import
parmepy.mpi
as
mpi
if
mpi
.
main_rank
==
0
:
msg_start
+=
'
on
'
+
str
(
mpi
.
main_size
)
+
'
mpi process(es).
'
print
msg_start
print
msg_io
else
:
print
msg_start
print
msg_io
# OpenCL
__DEFAULT_PLATFORM_ID__
=
0
__DEFAULT_DEVICE_ID__
=
2
version
=
"
1.0.0
"
## Box-type physical domain
import
parmepy.domain.box
Box
=
parmepy
.
domain
.
box
.
Box
## Fields
import
parmepy.fields.continuous
Field
=
parmepy
.
fields
.
continuous
.
Field
## Variable parameters
import
parmepy.fields.variable_parameter
VariableParameter
=
parmepy
.
fields
.
variable_parameter
.
VariableParameter
## Simulation parameters
import
parmepy.problem.simulation
Simulation
=
parmepy
.
problem
.
simulation
.
Simulation
# ## ## Problem
# import problem.problem
# Problem = problem.problem.Problem
# ## ## Solver
# import particular_solvers.basic
# ## #import particular_solvers.gpu
# ParticleSolver = particular_solvers.basic.ParticleSolver
# ## #GPUParticleSolver = particular_solvers.gpu.GPUParticleSolver
## from tools.explore_hardware import explore
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