Re: [Meep-discuss] custom 'stop-when'

2007-08-22 Thread Zheng LI
Hi, Ruslan: Reading the part of your codes, i think you misunderstand the meanings of after-time and at-every. (after-time 50 $step-function) means the $step-function begins to calculate after 50. According to your codes, the first part of "eq?" returns values at T when T>50 and the second one doe

[Meep-discuss] custom 'stop-when'

2007-08-22 Thread Ruslan Sepkhanov
Dear Steven and meep users, I am trying to force meep to stop when stationary regime is reached. I believe stationary regime is reached when maximal absolute value of the field on some line does not change in time. Therefore I wrote my own function "stop-when-stationary" which checks that, but I d