diff --git a/analysis/runAnalysis.cpp b/analysis/runAnalysis.cpp index 222248a6..b3b5196f 100644 --- a/analysis/runAnalysis.cpp +++ b/analysis/runAnalysis.cpp @@ -621,7 +621,7 @@ void runAnalysis::run( int timestep, TwoPhase& Averages, const double *Phi, if (d_regular) d_ScaLBL_Comm->RegularLayout(d_Map,Phi,*phase); else - ScaLBL_CopyToHost(*phase,Phi,N*sizeof(double)); + ScaLBL_CopyToHost(phase->data(),Phi,N*sizeof(double)); BlobIDstruct new_index(new std::pair(0,IntArray())); BlobIDstruct new_ids(new std::pair(0,IntArray()));