Dear all,
1. I am trying to use MEEP C++'s multilevel_susceptibility to simulate gain
medium. But I encountered such problem: If I use one processor, it is OK.
However, if more than one processors are used with MPI, the program exit
abnormally when the fields::step() is invoked. Through eclipse's parallel
debug tools, I found the runtime error happened on the following function:
realnum *multilevel_susceptibility::cinternal_notowned_ptr(
int inotowned, component c, int cmp,
int n,
void *P_internal_data) const {
multilevel_data *d = (multilevel_data *) P_internal_data;
if (!d->P[c][cmp] || inotowned < 0 || inotowned >= T) // never true
return NULL;
return d->P[c][cmp][inotowned] + n;
}
Can anyone fix it? Thanks.
2. As MEEP uses "dimensionless" units, how can I determine the units of
parameters in multilevel_susceptibility such as *sigmat *and* **alpha*? is
MEEP also set Planck constant as 1 (like epsilon0 and mu0)?
--
Best Regards,
Zilan
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss