Merge branch 'bugfix' of github.com:JamesEMcClure/LBPM-WIA into bugfix

This commit is contained in:
James McClure 2020-04-02 12:54:10 -04:00
commit ab8c2aeee5

View File

@ -8,7 +8,7 @@
#include "common/ScaLBL.h" #include "common/ScaLBL.h"
#include "common/Communication.h" #include "common/Communication.h"
#include "common/MPI.h" #include "common/MPI_Helpers.h"
#include "models/GreyscaleModel.h" #include "models/GreyscaleModel.h"
//#define WRITE_SURFACES //#define WRITE_SURFACES
@ -33,8 +33,6 @@ int main(int argc, char **argv)
MPI_Comm_size(comm,&nprocs); MPI_Comm_size(comm,&nprocs);
{ {
// parallel domain size (# of sub-domains) // parallel domain size (# of sub-domains)
int nprocx,nprocy,nprocz;
int iproc,jproc,kproc;
if (rank == 0){ if (rank == 0){
printf("********************************************************\n"); printf("********************************************************\n");
@ -43,6 +41,7 @@ int main(int argc, char **argv)
} }
// Initialize compute device // Initialize compute device
int device=ScaLBL_SetDevice(rank); int device=ScaLBL_SetDevice(rank);
NULL_USE(device);
ScaLBL_DeviceBarrier(); ScaLBL_DeviceBarrier();
MPI_Barrier(comm); MPI_Barrier(comm);