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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user