From e54ab8e195485c4339ce3c0e5bf618dc2d47e845 Mon Sep 17 00:00:00 2001 From: James McClure Date: Wed, 30 Sep 2020 11:54:44 -0400 Subject: [PATCH] update pointer in tests --- tests/TestColorGrad.cpp | 2 +- tests/TestWideHalo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestColorGrad.cpp b/tests/TestColorGrad.cpp index 58531601..6e584bf1 100644 --- a/tests/TestColorGrad.cpp +++ b/tests/TestColorGrad.cpp @@ -138,7 +138,7 @@ int main(int argc, char **argv) double iVol_global = 1.0/Nx/Ny/Nz/nprocx/nprocy/nprocz; int BoundaryCondition=0; - Dm = std::shared_ptr(Domain Dm(Nx,Ny,Nz,rank,nprocx,nprocy,nprocz,Lx,Ly,Lz,BoundaryCondition); + Dm = std::shared_ptr(new Domain(Nx,Ny,Nz,rank,nprocx,nprocy,nprocz,Lx,Ly,Lz,BoundaryCondition); Nx += 2; Ny += 2; Nz += 2; diff --git a/tests/TestWideHalo.cpp b/tests/TestWideHalo.cpp index 58531601..6e584bf1 100644 --- a/tests/TestWideHalo.cpp +++ b/tests/TestWideHalo.cpp @@ -138,7 +138,7 @@ int main(int argc, char **argv) double iVol_global = 1.0/Nx/Ny/Nz/nprocx/nprocy/nprocz; int BoundaryCondition=0; - Dm = std::shared_ptr(Domain Dm(Nx,Ny,Nz,rank,nprocx,nprocy,nprocz,Lx,Ly,Lz,BoundaryCondition); + Dm = std::shared_ptr(new Domain(Nx,Ny,Nz,rank,nprocx,nprocy,nprocz,Lx,Ly,Lz,BoundaryCondition); Nx += 2; Ny += 2; Nz += 2;