Commit 605aa34f authored by Steffen Schotthöfer's avatar Steffen Schotthöfer
Browse files

removed legacy data generator


Former-commit-id: 6ff43d2a
parent 42892031
......@@ -48,9 +48,6 @@ class MNSolver : public Solver
// ---- Private Member functions ---
// IO
/*! @brief Function that writes NN Training Data in a .csv file */
void WriteNNTrainingData( unsigned idx_pseudoTime );
void PrepareVolumeOutput() override;
void WriteVolumeOutput( unsigned idx_pseudoTime ) override;
......
......@@ -323,22 +323,3 @@ void MNSolver::WriteVolumeOutput( unsigned idx_pseudoTime ) {
}
}
}
void MNSolver::WriteNNTrainingData( unsigned idx_pseudoTime ) {
std::string filename = "trainNN.csv";
std::ofstream myfile;
myfile.open( filename, std::ofstream::app );
for( unsigned idx_cell = 0; idx_cell < _nCells; idx_cell++ ) {
myfile << 0 << ", " << _nTotalEntries << "," << idx_pseudoTime;
for( unsigned idx_sys = 0; idx_sys < _nTotalEntries; idx_sys++ ) {
myfile << "," << _sol[idx_cell][idx_sys];
}
myfile << " \n" << 1 << ", " << _nTotalEntries << "," << idx_pseudoTime;
for( unsigned idx_sys = 0; idx_sys < _nTotalEntries; idx_sys++ ) {
myfile << "," << _alpha[idx_cell][idx_sys];
}
myfile << "\n";
}
myfile.close();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment