Bugfixes;
Restarts now reproduce longer Sims
This commit is contained in:
@@ -214,8 +214,9 @@ std::stringstream Hdf5Reader::readEngineString(std::string path) {
|
||||
size_t size = H5Tget_size(dtype);
|
||||
|
||||
if(size != SimConstants::engine_string_length_max) {
|
||||
ERROR("Size of the string is not the required size of 6730, size of string: "
|
||||
+ std::to_string(size));
|
||||
ERROR("Size of the string is not the required size of " +
|
||||
std::to_string(SimConstants::engine_string_length_max) +
|
||||
", size of string: " + std::to_string(size));
|
||||
}
|
||||
DEBUG_LEVEL_3("RestartInfo: " + std::to_string(H5Tdetect_class(dtype, H5T_STRING)));
|
||||
|
||||
|
||||
@@ -113,6 +113,11 @@ void Restart::restartDrawingDensityField(DynamicDensityField* field, std::string
|
||||
blitz::Array<long int, 4> deleted_particles = reader_.readD4LongInt(path_to_data);
|
||||
field->restartDeletedParticlesArray(deleted_particles);
|
||||
}
|
||||
|
||||
// set the density distribution and calculate the density
|
||||
{
|
||||
field->setDensityDistribution();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user