@@ -127,8 +127,6 @@ Ions::Ions(Grid grid, Planets planet) {
127
127
heating_sources_total.set_size (nLons, nLats, nAlts);
128
128
heating_sources_total.zeros ();
129
129
130
-
131
-
132
130
for (int iDir = 0 ; iDir < 3 ; iDir++) {
133
131
velocity_vcgc[iDir].zeros ();
134
132
cMax_vcgc[iDir].ones ();
@@ -167,7 +165,7 @@ Ions::Ions(Grid grid, Planets planet) {
167
165
168
166
if (input.get_do_restart ()) {
169
167
report.print (1 , " Restarting! Reading ion files!" );
170
- bool DidWork = restart_file (input.get_restartin_dir (), DoRead);
168
+ bool DidWork = restart_file (input.get_restartin_dir (), grid. get_gridtype (), DoRead);
171
169
172
170
if (!DidWork)
173
171
std::cout << " Reading Restart for Ions Failed!!!\n " ;
@@ -521,15 +519,15 @@ int Ions::get_species_id(std::string name) {
521
519
// Read/Write restart files for the ions
522
520
// ----------------------------------------------------------------------
523
521
524
- bool Ions::restart_file (std::string dir, bool DoRead) {
522
+ bool Ions::restart_file (std::string dir, std::string cGridtype, bool DoRead) {
525
523
526
524
std::string filename;
527
525
bool DidWork = true ;
528
526
int64_t iVar;
529
527
530
528
OutputContainer RestartContainer;
531
529
RestartContainer.set_directory (dir);
532
- RestartContainer.set_filename (" ions_" + cMember + " _" + cGrid);
530
+ RestartContainer.set_filename (" ions_" + cMember + " _" + cGrid + " _ " + cGridtype );
533
531
534
532
try {
535
533
if (DoRead)
0 commit comments