MASON-INTEREST-L Archives

September 2012

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Tue, 11 Sep 2012 15:16:14 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
Most odd.  That error is generated if, within a schedule.step(), schedule.step() is called recursively (a no-no).  My only guess is that you manually checkpointed in an unusual location, most likely within an agent's step method, rather than outside of the schedule.    How did you checkpoint this?

Generally you should only perform checkpoints outside of the schedule's step() call.  Do not checkpoint *inside* a any step() call.

Sean

On Sep 11, 2012, at 2:12 PM, Daniel Gribel wrote:

> Hi all,
> 
> When I try to resume (play) a checkpointed simulation, I get an exception
> saying that "Schedule.step() is not reentrant, yet is being called
> recursively" on Schedule.step() method. This exception is shown because
> inStep variable is set to true.
> 
> Any ideia on how to fix it?
> In addition, what does the inStep variable actually do?
> 
> Thanks.

ATOM RSS1 RSS2