Skip to content
Snippets Groups Projects
Commit a416d8ec authored by Laura Lindner's avatar Laura Lindner
Browse files

added saving activation times in extra file

parent 8d92d508
No related branches found
No related tags found
1 merge request!261Resolve "Fix evaluation on cells"
......@@ -162,7 +162,7 @@ void IElphyAssemble::PlotExcitation() const {
void IElphyAssemble::PlotActivation() const {
if (problem.UpdateActivationTime == false) return;
//writeActivationTimeFile();
writeActivationTimeFile();
auto &plot = mpp::plot("ActivationTime");
plot.AddData("Activation", *activationTime);
plot.PlotFile("ActivationTime");
......@@ -185,14 +185,15 @@ void IElphyAssemble::writeActivationTimeFile() const {
std::cout << "failed to open " << filename << '\n';
} else {
for (int i = 0; i < PPM->Size(); i++) {
for (row r = (*activationTime).rows(); r != (*activationTime).rows_end(); ++r) {
Point p;
double actiTime;
B.Receive(i) >> p >> actiTime ;
file_out << p << " " <<actiTime << endl;
}
while(B.Receive(i).size()<B.Receive(i).Size()) {
Point p;
double actiTime;
B.Receive(i) >> p >> actiTime;
file_out << p << " " << actiTime << endl;
}
}
}
file_out.close();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment