-
Notifications
You must be signed in to change notification settings - Fork 969
Description
Describe the bug
When loading grid points for the ith zone, it seems that grid points for all zones after the ith zone will be loaded as well.
This grid point loading is implemented in the function of void CSU2ASCIIMeshReaderFVM::ReadPointCoordinates()
The code snippet below is doing the function. I think there should be a break for the while loop once the grid points for the required zone are loaded.
/--- Open the mesh file and jump to our zone. ---/
mesh_file.open(meshFilename, ios::in);
FastForwardToMyZone();
/--- Read the point coordinates into our data structure. ---/
string text_line;
string::size_type position;
while (getline (mesh_file, text_line)) {
position = text_line.find ("NPOIN=",0);
if (position != string::npos) {
- SU2 Version:7.1.1
It should be noted that this bug is not expected to cause wrong solutions, but lead to unnecessary extra time cost and memory consumption probably.