Readded density reduction by interaction for test
This commit is contained in:
@@ -79,7 +79,8 @@ void Population_Load_Saver::write_species(ofstream *save_stream, species this_sp
|
||||
for (int i_E = 0; i_z<cont->E_scale.get_number_bins(); i_z++) {
|
||||
int bin = cont->calc_data_bin(Bins{i_z, i_r, i_phi}, i_E);
|
||||
*save_stream<<i_z<<"\t"<<i_r<<"\t"<<i_phi<<"\t"<<i_E<<"\t";
|
||||
*save_stream<<cont->cum_times_s[bin]<<"\n";
|
||||
*save_stream<<cont->cum_times_s[bin]<<"\t";
|
||||
*save_stream<<cont->offsets[bin]<<"\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -242,7 +243,7 @@ void Population_Load_Saver::load_species(ifstream *load_stream, species add_spec
|
||||
ss<<"Population_Load_Saver::load_species: Input Data bin missmatch.\n";
|
||||
throw MyException(ss.str());
|
||||
}
|
||||
*load_stream>>cont->cum_times_s[i];
|
||||
*load_stream>>cont->cum_times_s[i]>>cont->offsets[i];
|
||||
}
|
||||
string end_of_species;
|
||||
*load_stream>>end_of_species;
|
||||
|
||||
Reference in New Issue
Block a user