MASON-INTEREST-L Archives

January 2017

MASON-INTEREST-L@LISTSERV.GMU.EDU

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

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

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Fri, 6 Jan 2017 01:31:06 +0100
MIME-version:
1.0 (Mac OS X Mail 7.3 \(1878.6\))
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-type:
text/plain; charset=iso-8859-1
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Message-ID:
Content-Transfer-Encoding:
8bit
Parts/Attachments:
text/plain (30 lines)
On Jan 5, 2017, at 11:26 PM, Axel Kowald <[log in to unmask]> wrote:

> is there a way to specify a name for my checkpoint files?
> The problem is that they seem to overwrite each other if I start
> multiple MASON simulations from the same directory.

A good idea.  I just committed a new version of SimState.java which seems to work right.  You specify an ID like this:

java sim.app.heatbugs.HeatBugs -docheckpoint 1000 -checkpointname foo

Now it'll write out

	Job 0: Checkpointing to file: 1000.0.foo.checkpoint
	Job 0: Checkpointing to file: 2000.0.foo.checkpoint
	Job 0: Checkpointing to file: 3000.0.foo.checkpoint
	Job 0: Checkpointing to file: 4000.0.foo.checkpoint
	Job 0: Checkpointing to file: 5000.0.foo.checkpoint

If you don't specify a name, it'll use the class name as usual:

	Job 0: Checkpointing to file: 1000.0.HeatBugs.checkpoint
	Job 0: Checkpointing to file: 2000.0.HeatBugs.checkpoint
	Job 0: Checkpointing to file: 3000.0.HeatBugs.checkpoint
	Job 0: Checkpointing to file: 4000.0.HeatBugs.checkpoint
	Job 0: Checkpointing to file: 5000.0.HeatBugs.checkpoint

Hope that's sufficient for you.

Sean

ATOM RSS1 RSS2