git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1458 331e1502-861f-0410-8da2-ba01fb791d7f

This commit is contained in:
jhumeau 2009-02-19 17:39:47 +00:00
commit c798938fe0

View file

@ -45,13 +45,17 @@ public:
virtual bool operator() ( const eoPop<EOT>& _pop ) {
time_t diff = time(0) - start;
if (diff > (id * maxTime/10) ){
time_t begin=time(0);
std::cout << id << "start :" << begin << std::endl;
//traitement
std::string tmp=fileName;
std::ostringstream os;
os << fileName << "." << id;
std::ofstream outfile(os.str());
os << id;
tmp+=".";
tmp+=os.str();
std::ofstream outfile(tmp.c_str());
for(unsigned int i=0 ; i < _pop.size(); i++){
for(unsigned int j=0 ; j<EOT::ObjectiveVector::nObjectives(); j++){
@ -70,10 +74,10 @@ public:
if(diff >= maxTime)
return false;
return true;
}
virtual std::string className(void) const { return "eoTenTimeContinue"; }
void readFrom (std :: istream & __is) {