Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] Diff of /trunk/gadget/readmain.cc
[mareframe] / trunk / gadget / readmain.cc Repository:
ViewVC logotype

Diff of /trunk/gadget/readmain.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 10, Wed Jun 10 13:01:42 2015 UTC revision 11, Thu Jul 23 19:00:38 2015 UTC
# Line 278  Line 278 
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");
# Line 310  Line 310 
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

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge