Skip to content

Commit

Permalink
:Merge branch 'master' of github.com:JamesEMcClure/LBPM-WIA
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesEMcClure committed May 28, 2023
2 parents 2989e89 + 5840535 commit f574140
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions models/BGKModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ void ScaLBL_BGKModel::Create() {
if (rank == 0)
printf("Allocating distributions \n");
//......................device distributions.................................
int dist_mem_size = Np * sizeof(double);
int neighborSize = 18 * (Np * sizeof(int));
size_t dist_mem_size = Np * sizeof(double);
size_t neighborSize = 18 * (Np * sizeof(int));
//...........................................................................
ScaLBL_AllocateDeviceMemory((void **)&NeighborList, neighborSize);
ScaLBL_AllocateDeviceMemory((void **)&fq, 19 * dist_mem_size);
Expand Down
4 changes: 2 additions & 2 deletions models/ColorModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ class ScaLBL_ColorModel {
private:
Utilities::MPI comm;

int dist_mem_size;
int neighborSize;
size_t dist_mem_size;
size_t neighborSize;
// filenames
char LocalRankString[8];
char LocalRankFilename[40];
Expand Down
4 changes: 2 additions & 2 deletions models/DFHModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class ScaLBL_DFHModel {
private:
Utilities::MPI comm;

int dist_mem_size;
int neighborSize;
size_t dist_mem_size;
size_t neighborSize;
// filenames
char LocalRankString[8];
char LocalRankFilename[40];
Expand Down
4 changes: 2 additions & 2 deletions models/FreeLeeModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class ScaLBL_FreeLeeModel {
private:
Utilities::MPI comm;

int dist_mem_size;
int neighborSize;
size_t dist_mem_size;
size_t neighborSize;
// filenames
char LocalRankString[8];
char LocalRankFilename[40];
Expand Down
4 changes: 2 additions & 2 deletions models/GreyscaleColorModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ class ScaLBL_GreyscaleColorModel {
private:
Utilities::MPI comm;

int dist_mem_size;
int neighborSize;
size_t dist_mem_size;
size_t neighborSize;
// filenames
char LocalRankString[8];
char LocalRankFilename[40];
Expand Down
4 changes: 2 additions & 2 deletions models/GreyscaleModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ class ScaLBL_GreyscaleModel {
private:
Utilities::MPI comm;

int dist_mem_size;
int neighborSize;
size_t dist_mem_size;
size_t neighborSize;
// filenames
char LocalRankString[8];
char LocalRankFilename[40];
Expand Down
4 changes: 2 additions & 2 deletions models/MRTModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ void ScaLBL_MRTModel::Create() {
if (rank == 0)
printf("Allocating distributions \n");
//......................device distributions.................................
int dist_mem_size = Np * sizeof(double);
int neighborSize = 18 * (Np * sizeof(int));
size_t dist_mem_size = Np * sizeof(double);
size_t neighborSize = 18 * (Np * sizeof(int));
//...........................................................................
ScaLBL_AllocateDeviceMemory((void **)&NeighborList, neighborSize);
ScaLBL_AllocateDeviceMemory((void **)&fq, 19 * dist_mem_size);
Expand Down
4 changes: 2 additions & 2 deletions models/StokesModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,8 @@ void ScaLBL_StokesModel::Create() {
if (rank == 0)
printf("LB Single-Fluid Solver: Allocating distributions \n");
//......................device distributions.................................
int dist_mem_size = Np * sizeof(double);
int neighborSize = 18 * (Np * sizeof(int));
size_t dist_mem_size = Np * sizeof(double);
size_t neighborSize = 18 * (Np * sizeof(int));
//...........................................................................
ScaLBL_AllocateDeviceMemory((void **)&NeighborList, neighborSize);
ScaLBL_AllocateDeviceMemory((void **)&fq, 19 * dist_mem_size);
Expand Down

0 comments on commit f574140

Please sign in to comment.