swarm-support
[Top][All Lists]
Advanced

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

Re: Problem with BatchSwarm and EZGraph


From: Paul E Johnson
Subject: Re: Problem with BatchSwarm and EZGraph
Date: Thu, 19 Apr 2001 12:05:28 -0500

Does a gui version of the same program run and give the graph you want? 
I think this looks funny because you do createSequence, which as far as
I recall should not work if you pass through a whole collection. you
need a createAverageSequence or something that can summarize the
collection.

Marian Mihalo wrote:
> 
> Specification:
> 
> RH 6.2
> Swarm 2.1.1
> Objective C
> 
> Problem:
> 
> My last report was with batchSwarm problem...After detailed searching of
> error with gdb debuger I identificate the problem. Problem is here:
> 
>      >printf("BatchSwarm>create minerals.output\n");
>      >foodGrapher = [EZGraph createBegin: self];
>      > [foodGrapher setGraphics: 0];
>      > [foodGrapher setFileOutput: 1];
>      > foodGrapher = [foodGrapher createEnd];
>      > [foodGrapher createSequence: "minerals.output" withFeedFrom:
>      > [modelSwarm getBugList]  andSelector: M(getFoodNumber)];
> 
> When I set a "setFileOutput" on value 0 (without saving), my simulation in
> batch swarm are working correctly. But when I want a save to file, here is a
> problem -> Segmentation Fault...
> 
> After it, I identificated, that problem is in :
> 
> withFeedFrom: [modelSwarm getBugList]  andSelector: M(getFoodNumber)];
> 
> But I don't know where...
> 
> In ObserverSwarm everything are working correctly (with and without
> saving)...
> The "getFoodNumber" are return a float value...I have it in Bug.m,
> ObserverSwarm.m and BatchSwarm.m
> 
> getFoodNumber:
> 
> - (float)getFoodNumber          { return [modelSwarm getFood1Count]; }
> 
> Could anybody help me????
> 


-- 
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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