Friday, August 24, 2007

MEEP中的BUG

如果利用并行集群计算色散材料,这时,MEEP会有一个内存管理上的BUG。

On Sat, 30 Sep 2006, João Luis Silva wrote:
> I found the problem: When dispersive media is used, the memory related to
> the dispersive media is not split by the nodes, but every node has a full
> copy of the fields. In my real problem I use a Sellmeier formula for silica

Yikes, this is indeed a bug. Try the following patch:

diff -rN old-meep/src/polarization.cpp new-meep/src/polarization.cpp
29c29
< if (sc->pb == NULL) return NULL;
---
> if (sc->pb == NULL || !sc->is_mine()) return NULL;