Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

updating cormas2001

New Message Reply Date view Thread view Subject view Author view

Subject: updating cormas2001
From: Hoekstra, J. (Jeljer) (jhoekstra@feweb.vu.nl)
Date: Wed May 26 2004 - 10:17:16 CEST

Dear all,

I have update my cormas2001 model to the latest cormas version. This was quite simple. Good work cormas team!

There is only one small problem left that I cannot fix. The method in which I automatically set the parameters for the grid (size etc.), Setupgrid does not work anymore. Also a related methods like setupcells, which also uses the spaceModel method causes an error.

I'd like some help on how to make these methods work again in cormas2003 (or is it 2004 already). I have attached the methods below.

Thanks for your help in advance,

Cheers

Jeljer

 

setupgrid

| pov |

pov := Wad_Cell activePov.

Wad_Cell activePov: nil.

self gridSizeCol: 10 line: "change migrate!!" 10.

Wad_Cell activePov: pov.

self spaceModel clotureEspace: #closed.

self spaceModel calculVoisins. " the neighbourhood has to be reset"

self spaceModel interface cloturePatchChanged. " inform the interface to update"

self spaceModel interface updateName.

setupcells

| arguments |

arguments:= Array new:5.

arguments at:1 put: self predator;

at:2 put: self prey;

at:3 put: self cellsurface;

at:4 put: self spaceModel interface column value";

at:5 put: self spaceModel interface line value".

self initCells: #setup:and:on:gridcol:gridrow:

withArguments: arguments.

New Message Reply Date view Thread view Subject view Author view
 

Back to home