initialize pointers in constructor. removed commented out code

This commit is contained in:
Axel Kohlmeyer
2024-08-13 16:47:17 -04:00
parent fcaaca8304
commit 09af3e0fac
8 changed files with 29 additions and 47 deletions

View File

@ -451,10 +451,10 @@ void FixAveGrid::init()
// check that grid sizes for all fields match grid size for this fix
if (modegrid) {
Compute *compute;
Fix *fix;
Grid2d *grid2d;
Grid3d *grid3d;
Compute *compute = nullptr;
Fix *fix = nullptr;
Grid2d *grid2d = nullptr;
Grid3d *grid3d = nullptr;
int nxtmp,nytmp,nztmp;