-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all,
Steven G. Johnson wrote: > On Thu, 6 Apr 2006, Andreas von Rhein wrote: >> so I supposed one has to call like this >> >> (run-until 300 (at-every 10 (display-fluxes flux1))) > > Instead, you should define a function, either via: > > (define (display-fluxes-at-step) (display-fluxes flux1)) > (run-until 300 (at-every 10 display-fluxes-at-step)) > > or just use lambda to construct a function on the fly: > > (run-until 300 (at-every 10 (lambda () (display-fluxes flux1)))) when I do this in a distributed simulation (mpirun) it crashes on this kind of functions giving the following output when the function is called the first time: flux14.250:, 0.255702675668923, 2.11349954312971e-13, 5.17673325076809e-210, 1.2650379106509e-166, 1.2650379106509e-166 flux14.250:, 0.255722680670173, 2.11357656106447e-13, 5.17672991971299e-210, 1.26503712567063e-166, 1.26503712567063e-166 flux14.250:, 0.255742685671423, 2.11365354099624e-13, 5.17672658840116e-210, 1.26503634062982e-166, 1.26503634062982e-166 flux14.250:, 0.255762690672674, 2.11373048291965e-13bm_list_31547: (19.835384) wakeup_slave: unable to interrupt slave 0 pid 31546 command-line param: gaugerun=1 command-line param: tip-n=2700 command-line param: resolution=10 command-line param: fieldtimes=1000 command-line param: nfreq=4000 command-line param: fielddecay=1e-8 command-line param: si-n=2.9 p1_31552: p4_error: interrupt SIGx: 13 rm_l_1_31553: (19.703517) net_send: could not write to fd=5, errno = 32 I also tried various other approaches, including the one given later on in this thread. Is this a bug or should the function be put in another format to run properly with mpirun? I'm using the latest debian packaged version (0.10-2+b1) which outputs as version: $ meep -V Meep 0.10, Copyright (C) 2005 Massachusetts Insitute of Technology. Using libctl 3.0.2 and Guile 1.6.8. so if it's fixed already in 0.10.1 I'm sorry to have bothered you. Your's Tjeerd Pinkert -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHXwQl1BoqZaj+NmYRAvQjAJ4tqUl9qpMdx20um9EQO48jDk5EtQCeJk6H fmL+sQV0Gx9ojfEXt0/3ge0= =mLu2 -----END PGP SIGNATURE----- _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

