[mareframe] Diff of /trunk/gadget/readmain.cc
Diff of /trunk/gadget/readmain.cc
Parent Directory
| Revision Log
| Patch
278 |
// |
// |
279 |
// A function to read optimisation information |
// A function to read optimisation information |
280 |
// |
// |
281 |
void Ecosystem::readOptimisation(CommentStream& infile) { |
void Ecosystem::readOptimisation(CommentStream& infile, unsigned* seed) { |
282 |
char* text = new char[MaxStrLength]; |
char* text = new char[MaxStrLength]; |
283 |
strncpy(text, "", MaxStrLength); |
strncpy(text, "", MaxStrLength); |
284 |
handle.logMessage(LOGMESSAGE, "Reading optimisation information"); |
handle.logMessage(LOGMESSAGE, "Reading optimisation information"); |
310 |
|
|
311 |
if (!infile.eof()) { |
if (!infile.eof()) { |
312 |
infile >> text; |
infile >> text; |
313 |
|
optvec[count]->setSeed(seed); |
314 |
optvec[count]->read(infile, text); |
optvec[count]->read(infile, text); |
315 |
} else |
} else |
316 |
handle.logMessage(LOGINFO, "Warning - no parameters specified for optimisation algorithm"); |
handle.logMessage(LOGINFO, "Warning - no parameters specified for optimisation algorithm"); |
|
Legend:
Removed from v.10 |
|
changed lines |
|
Added in v.11 |
|
|
|