Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/ecell4/bd/functions3d.cpp b/ecell4/bd/functions3d.cpp
index f2a94c7..a1a4692 100644
--- a/ecell4/bd/functions3d.cpp
+++ b/ecell4/bd/functions3d.cpp
@@ -64,11 +64,11 @@ Real Igbd_r_3d(Real r, Real sigma, Real t, Real D)
const Real sigmasq(sigma * sigma);
const Real sigmacb(sigmasq * sigma);
- const Real rcb(gsl_pow_3(r));
+ const Real rcb(gsl_pow_int(r, 3));

Windows 7 (64bit)上でE-Cell4のPython拡張をビルドする

準備

E-Cell4はwin32ブランチをチェックアウトして用いる. 必要なら各自Gitをインストールして使う: https://github.com/ecell/ecell4

以下がビルドに利用したもの:

# -*- coding: utf-8 -*-
import numpy
data = []
x = numpy.linspace(0.0, 10.0, 100)
data.extend([numpy.sin(x) + numpy.random.uniform(-0.5, 0.5, 100) for _ in range(5)])
data.extend([numpy.cos(x) + numpy.random.uniform(-0.5, 0.5, 100) for _ in range(5)])
numpy.random.shuffle(data)
import matplotlib.pylab as pylab