Skip to content

Ising info tab not consistent with the code #204

@ToonTalk

Description

@ToonTalk

Info tab says

This model makes 1000 attempted flips in every iteration of the GO loop. It codes this as repeat 1000 [ update ].

while the code is

repeat 1000 [
ask one-of patches [ update ]
]

The info tab discusses what I would have thought is a better way to code this

ask patches [ update ]

or maybe better

ask n-of 1000 patches [update]

In either case I don't see why the code and Info tab do

tick-advance 1000 ;; use tick-advance, as we are updating 1000 patches at a time
update-plots ;; unlike tick, tick-advance doesn't update the plots, so we need to do so explicitly

rather than

tick.

Maybe I misunderstand the physics regarding what can happen in a tick but I would expect any number of flips so why advance the tick counter by 1000?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions