From 56d28abed0e842cbcc16ca04e8c4b87d4d607c2d Mon Sep 17 00:00:00 2001 From: James E McClure Date: Thu, 12 Nov 2015 21:31:13 -0500 Subject: [PATCH] Only writing ID.dat (8bit) --- tests/ColorToBinary.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tests/ColorToBinary.cpp b/tests/ColorToBinary.cpp index ef44e81d..773412ca 100644 --- a/tests/ColorToBinary.cpp +++ b/tests/ColorToBinary.cpp @@ -11,8 +11,7 @@ using namespace std; -inline void ReadFromRank(char *FILENAME, DoubleArray &Phase, DoubleArray &Pressure, DoubleArray &Vel_x, - DoubleArray &Vel_y, DoubleArray &Vel_z, int nx, int ny, int nz, int iproc, int +inline void ReadFromRank(char *FILENAME, DoubleArray &Phase, int nx, int ny, int nz, int iproc, int jproc, int kproc) { int i,j,k,q,n,N; @@ -100,10 +99,10 @@ inline void ReadFromRank(char *FILENAME, DoubleArray &Phase, DoubleArray &Pressu kglobal = kproc*(nz-2)+k-1; //........................................................................ Phase(iglobal,jglobal,kglobal) = (denA-denB)/(denA+denB); - Pressure(iglobal,jglobal,kglobal) = value; - Vel_x(iglobal,jglobal,kglobal) = vx; - Vel_y(iglobal,jglobal,kglobal) = vy; - Vel_z(iglobal,jglobal,kglobal) = vz; + // Pressure(iglobal,jglobal,kglobal) = value; + // Vel_x(iglobal,jglobal,kglobal) = vx; + // Vel_y(iglobal,jglobal,kglobal) = vy; + // Vel_z(iglobal,jglobal,kglobal) = vz; //........................................................................ } } @@ -170,10 +169,6 @@ int main(int argc, char **argv) printf("Full domain size: %i x %i x %i \n", Nx,Ny,Nz); DoubleArray Phase(Nx,Ny,Nz); - DoubleArray Press(Nx,Ny,Nz); - DoubleArray Vel_x(Nx,Ny,Nz); - DoubleArray Vel_y(Nx,Ny,Nz); - DoubleArray Vel_z(Nx,Ny,Nz); DoubleArray SignDist(Nx,Ny,Nz); // Filenames used @@ -214,8 +209,7 @@ int main(int argc, char **argv) } sprintf(LocalRankFilename,"%s%s","Restart.",LocalRankString); - ReadFromRank(LocalRankFilename,Phase,Press,Vel_x,Vel_y,Vel_z, - nx,ny,nz,iproc,jproc,kproc); + ReadFromRank(LocalRankFilename,Phase,nx,ny,nz,iproc,jproc,kproc); } } }