-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #292 from ludwig-cf/develop
Release 0.21.0
- Loading branch information
Showing
122 changed files
with
7,829 additions
and
1,615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,3 +89,4 @@ jobs: | |
- name: Check | ||
run: | | ||
make unit | ||
make -C tests d3q27 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: 33% | ||
threshold: 2% | ||
patch: | ||
default: | ||
informational: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
############################################################################## | ||
# | ||
# unix-nvcc-default.mk | ||
# | ||
# This example uses "nvcc -ccbin=mpicc" to drive the compilation. | ||
# Further include/library information may be required... | ||
# | ||
############################################################################## | ||
|
||
BUILD = parallel | ||
MODEL = -D_D3Q19_ | ||
|
||
CC = nvcc | ||
CFLAGS = -ccbin=mpicc -O2 -DADDR_SOA -arch=sm_61 -x cu -dc | ||
|
||
AR = ar | ||
ARFLAGS = -cr | ||
LDFLAGS= -arch=sm_61 | ||
|
||
MPI_INC_PATH=-I/usr/lib/x86_64-linux-gnu/openmpi/include | ||
MPI_LIB_PATH=-L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi | ||
|
||
LAUNCH_SERIAL_CMD = | ||
LAUNCH_MPIRUN_CMD = mpirun | ||
MPIRUN_NTASK_FLAG = -np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* Edinburgh Soft Matter and Statistical Physics Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2010-2021 The University of Edinburgh | ||
* (c) 2010-2023 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -31,6 +31,7 @@ | |
*****************************************************************************/ | ||
|
||
#include <assert.h> | ||
#include <limits.h> | ||
#include <stdlib.h> | ||
|
||
#include "advection_s.h" | ||
|
@@ -171,6 +172,11 @@ __host__ int advflux_create(pe_t * pe, cs_t * cs, lees_edw_t * le, int nf, | |
obj->nf = nf; | ||
obj->nsite = nsites; | ||
|
||
if (nf < 1 || nsites < 1 || INT_MAX/nf < nsites) { | ||
pe_info(pe, "advflux_create: failure in int32_t indexing\n"); | ||
return -1; | ||
} | ||
|
||
if (obj->le == NULL) { | ||
/* If no Lees Edwards, we only require an fx = fw */ | ||
|
||
|
Oops, something went wrong.