1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-12-21 05:04:29 +00:00

multRHS initial support -- needs optimisation for multi project/promote.

Bug fix in freeing intermediate grids to stop double free
This commit is contained in:
Peter Boyle
2023-11-23 18:18:35 -05:00
parent 639cc6f73a
commit 031f85247c
2 changed files with 34 additions and 3 deletions

View File

@@ -234,8 +234,11 @@ public:
}
void DeleteGrids(void)
{
Coordinate processors=unpadded_grid->_processors;
for(int d=0;d<grids.size();d++){
delete grids[d];
if ( processors[d] > 1 ) {
delete grids[d];
}
}
grids.resize(0);
};