From f7360cbdc1bf2dc23a073cf062b5801563b09c7a Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Thu, 2 Sep 2010 15:35:57 +0200 Subject: [PATCH] Dump material as a vector instead of averaged. --- FDTD/operator.cpp | 40 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/FDTD/operator.cpp b/FDTD/operator.cpp index 349b303..ab921b9 100644 --- a/FDTD/operator.cpp +++ b/FDTD/operator.cpp @@ -413,17 +413,17 @@ void Operator::DumpMaterial2File(string filename) cout << "Dumping material information to vtk file: " << filename << " ..." << flush; - FDTD_FLOAT*** epsilon; - FDTD_FLOAT*** mue; - FDTD_FLOAT*** kappa; - FDTD_FLOAT*** sigma; + FDTD_FLOAT**** epsilon; + FDTD_FLOAT**** mue; + FDTD_FLOAT**** kappa; + FDTD_FLOAT**** sigma; unsigned int pos[3]; double inMat[4]; - epsilon = Create3DArray( numLines); - mue = Create3DArray( numLines); - kappa = Create3DArray( numLines); - sigma = Create3DArray( numLines); + epsilon = Create_N_3DArray( numLines); + mue = Create_N_3DArray( numLines); + kappa = Create_N_3DArray( numLines); + sigma = Create_N_3DArray( numLines); for (pos[0]=0;pos[0]