swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DblBuffer2d updates (Swarm)


From: Catherine Dibble
Subject: DblBuffer2d updates (Swarm)
Date: Thu, 12 Sep 1996 09:32:32 -0700

Greetings, oh Wise Swarm Sages,

Swarm (13May) is running happily here under RedHat Linux. 
I've recoded Heatbugs almost beyond recognition, and things
seem to be working fine except... for the space updates.

Unlike Heatbugs, I do want my bugs to spread a distribution
of heat at each turn (not just in their own cell), but I
*don't* want that heat to hang around in the landscape 
accumulating, diffusing, etc.

I removed the diffusion CA parameters and inherited HeatSpace
directly from DblBuffer2d.  (Each Heatbug spreads its own
characteristic heat fingerprint.)  I'd expected DblBuffer to mean
that all reads take place from the old lattice, all writes
are written to the new lattice, until updateLattice swaps
new into old.  (Yes, I'm using DblBuffer's putObject / putValue.
Should I comment out the memcpy in -updateLattice?)

I've found the magic schedule corner in HeatbugModelSwarm
and have tried adding any/all of the following in logical
combinations both before and after the Heatbug Step message:
[modelActions createActionTo:    heat  message: M(updateLattice)];
[modelActions createActionTo:    heat  message: M(getNewLattice)];
[modelActions createActionTo:    heat  message: M(blankLattice)];
(blankLattice is a HeatSpace kludge method I'd added to *write*
"no heat" to each cell in HeatSpace -- no help either.)

Unfortunately, my heatbugs are frying themselves in 
accumulating heat.  Have I missed something obvious?
All sage advice gratefully appreciated!  :)

Catherine
 
*-----------------------------------------------------------------------*
| Catherine Dibble         |           "Whatever you can do,            |
| Department of Geography  |            or dream you can,               |
| University of California |                    begin it.               |
| Santa Barbara, CA 93106  |                                            |
|                          |            Boldness has genius,            |
| 805-964-9022 (home/vmail)|            power,                          |
| 805-689-7330 (cellular)  |            and magic                       |
| address@hidden       |            in it."                         |
| www.geog.ucsb.edu/~cath  |                       -- Goethe            |
*-----------------------------------------------------------------------*
[Apologies if this appears twice; it was the first message I'd posted
to swarm-support this morning, but it seems to have been eaten.]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]