Skip to content
Snippets Groups Projects
Commit 1c287689 authored by Franck Pérignon's avatar Franck Pérignon
Browse files

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
import parmepy as pp import parmepy as pp
import parmepy.scales2py as sc import parmepy.f2py 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')
......
...@@ -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" ON) option(BUILD_SHARED_LIBS "Enable dynamic library build, default = ON" OFF)
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
......
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