Skip to content
Snippets Groups Projects
Commit ddd7e84f authored by Jean-Matthieu Etancelin's avatar Jean-Matthieu Etancelin Committed by Franck Pérignon
Browse files

ignore pyc and parmepy/__init__.py

parent db8457ce
No related branches found
No related tags found
No related merge requests found
*.pyc
parmepy/__init__.py
\ No newline at end of file
"""
@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 = '\nStarting Parmes (no mpi) version '
msg_start += str(__version__)
msg_io = '\nWarning : 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment