From c35d0f0d1b75653454fd9e0423b6b22d7733a55a Mon Sep 17 00:00:00 2001 From: James E McClure Date: Wed, 5 Sep 2018 00:19:11 -0400 Subject: [PATCH] map fix --- models/ColorModel.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/models/ColorModel.cpp b/models/ColorModel.cpp index e4202d67..efbbdf4b 100644 --- a/models/ColorModel.cpp +++ b/models/ColorModel.cpp @@ -295,12 +295,19 @@ void ScaLBL_ColorModel::Initialize(){ // Read in the restart file to CPU buffers double *cPhi = new double[Np]; double *cDist = new double[19*Np]; + int *TmpMap = new int[Np]; + ifstream File(LocalRestartFile,ios::binary); + int idx; double value,va,vb; + + ScaLBL_CopyToHost(TmpMap, dvcMap, sizeof(int)*Np); + for (int n=0; n