#include "split.hpp" using namespace std; split::split(int n, stream* s1, stream** s2) { nb_out=n; in = s1; out= s2; success = true; } bool split::solve() { tmp=0; for (i=0;im=0; for (j=0;jnb;j++) { out[i]->chem[j]->m = frac[i]*in->chem[j]->m; out[i]->m += out[i]->chem[j]->m; } out[i]->set(in->P, in->T); // out[i]->write(); // TOTO } } tmp=0; for(i=0;im; if(fabs(tmp-in->m)>EPS) { // logf.open(MESSAGES, ios::app); // logf<<" --> Warning <-- Block "<m)/tmp<<").\n"; // logf.close(); success = false; } else success = true; return success; } void split::write() { cout << "WRITE FILE " << RUNTIME << name << ".unit" << " :\n\tBEGIN\n"; cout <<"\t>> "<> stream in: "<name;; cout<> streams out: "<name<<" ("<