Skip to content

Commit 348633d

Browse files
committed
Minor changes
1 parent 7b4e0c4 commit 348633d

File tree

4 files changed

+556
-322
lines changed

4 files changed

+556
-322
lines changed

demo/demo.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#sigma = 0.16674922174125 * fmean * (1 - fmean)
1414

1515
#fmean = 4.653900989e-03
16-
fmean = 0.02
16+
fmean = 0.5
1717
#sigma = 8.9500083540e-01 * fmean * (1 - fmean)
18-
sigma = 0.999* fmean * (1 - fmean)
18+
sigma = 0.9* fmean * (1 - fmean)
1919

2020
pmf = PMF(fmean, sigma, 1, 1, 0, 1)
2121

@@ -26,10 +26,11 @@
2626
pmf.DT = 1. # Turbulent diffusivity
2727

2828
# The simulations are run using integer moments
29-
pmf.central = False
29+
pmf.central = True
3030

3131
#pmf.reallocate_solver(pmf.froot, 1)
3232
pmf.compute(0, True)
33+
#pmf.tau = 2e-7
3334

3435
from scipy.special import erf, erfinv
3536
def integrand(x, tau, alfa):
@@ -122,6 +123,7 @@ def lower2(x, tau, alfa):
122123
figure("dfdtau original")
123124
plot(xx[1:-1], dintegrand(xx[1:-1], tau, alfa))
124125

126+
125127
show()
126128

127129

multiprecision/CMakeLists.txt

+16
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
cmake_minimum_required(VERSION 2.6)
22

3+
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/modules")
34
find_package(Boost COMPONENTS system filesystem timer REQUIRED)
45
include_directories(${Boost_INCLUDE_DIR})
56
link_directories(${Boost_LIBRARY_DIR})
7+
8+
find_package(OpenMP)
9+
if (OPENMP_FOUND)
10+
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
11+
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
12+
endif()
13+
14+
# find_package(FFTW)
15+
# if (FFTW_FOUND)
16+
# include_directories(${FFTW_INCLUDE_DIR})
17+
# endif()
18+
619
#------------------------------------------------------------------------------
720

821
list(APPEND CXX_DEFINITIONS "-O1 -std=c++11 -Wno-narrowing")
922

1023
add_definitions(${CXX_DEFINITIONS})
1124
add_executable(demo test_multiprecision.cpp)
1225
target_link_libraries(demo ${Boost_LIBRARIES} )
26+
# if (FFTW_FOUND)
27+
# target_link_libraries(demo ${FFTW_LIBRARY} ${FFTW_THREADS_LIBRARY})
28+
# endif()

0 commit comments

Comments
 (0)