@@ -422,7 +422,7 @@ int Neutrals::get_species_id(std::string name) {
422
422
// Read/Write restart files for the neutrals
423
423
// ----------------------------------------------------------------------
424
424
425
- bool Neutrals::restart_file (std::string dir, bool DoRead) {
425
+ bool Neutrals::restart_file (std::string dir, std::string cGridtype, bool DoRead) {
426
426
427
427
std::string filename;
428
428
bool DidWork = true ;
@@ -431,7 +431,7 @@ bool Neutrals::restart_file(std::string dir, bool DoRead) {
431
431
432
432
OutputContainer RestartContainer;
433
433
RestartContainer.set_directory (dir);
434
- RestartContainer.set_filename (" neutrals_" + cMember + " _" + cGrid);
434
+ RestartContainer.set_filename (" neutrals_" + cMember + " _" + cGrid + " _ " + cGridtype );
435
435
436
436
try {
437
437
if (DoRead)
@@ -451,6 +451,22 @@ bool Neutrals::restart_file(std::string dir, bool DoRead) {
451
451
RestartContainer.store_variable (cName,
452
452
density_unit,
453
453
species[iSpecies].density_scgc );
454
+
455
+ // ----------------------------
456
+ // Velocity (per neutral)
457
+ // ----------------------------
458
+ for (int iDir = 0 ; iDir < 3 ; iDir++) {
459
+ cName = velocity_name[iDir] + " (" + species[iSpecies].cName + " )" ;
460
+
461
+ if (DoRead)
462
+ species[iSpecies].velocity_vcgc [iDir] =
463
+ RestartContainer.get_element_value (cName);
464
+ else
465
+ RestartContainer.store_variable (cName,
466
+ velocity_unit,
467
+ species[iSpecies].
468
+ velocity_vcgc[iDir]);
469
+ }
454
470
}
455
471
456
472
cName = temperature_name;
0 commit comments