From c2b0cdc012e4ba665385a3599b9b957ef0c69836 Mon Sep 17 00:00:00 2001 From: James E McClure Date: Thu, 5 Nov 2015 18:33:52 -0500 Subject: [PATCH] Debugging vis writer --- tests/lbpm_color_simulator.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/lbpm_color_simulator.h b/tests/lbpm_color_simulator.h index e19160af..73b36b1b 100644 --- a/tests/lbpm_color_simulator.h +++ b/tests/lbpm_color_simulator.h @@ -170,10 +170,10 @@ public: BlobIDVar->data.resize(Nx-2,Ny-2,Nz-2); meshData[0].vars.push_back(BlobIDVar); - fillData.copy(Averages->SDn,PhaseVar->data); - fillData.copy(Averages->SDs,SignDistVar->data); - fillData.copy(Averages->Label_NWP,BlobIDVar->data); - IO::writeData( 0, meshData, 2, comm ); + fillData.copy(Averages.SDn,PhaseVar->data); + fillData.copy(Averages.SDs,SignDistVar->data); + fillData.copy(Averages.Label_NWP,BlobIDVar->data); + IO::writeData( 0, meshData, 2, newcomm ); MPI_Comm_free(&newcomm); PROFILE_STOP("Save Vis",1); @@ -187,6 +187,10 @@ private: TwoPhase& Averages; int Nx,Ny,Nz; double Lx,Ly,Lz; + std::shared_ptr PhaseVar( new IO::Variable() ); + std::shared_ptr PressVar( new IO::Variable() ); + std::shared_ptr SignDistVar( new IO::Variable() ); + std::shared_ptr BlobIDVar( new IO::Variable() ); };