Skip to content

Commit b5518cf

Browse files
committed
Print ERROR when "nj" strictly larger than "nj_max"
1) An error in deploying Sapporo Light only occurs if "nj > nj_max", i.e. strictly larger. 2) Extra blank line.
1 parent 19998e9 commit b5518cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/sapporo_light/send_fetch_data.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ void sapporo::send_j_particles_to_device(int ignore) {
6565
dev_struct &dev = device;
6666

6767
int nj = address_j.size();
68-
if (nj >= nj_max) {
68+
69+
if (nj > nj_max) {
6970
fprintf(stdout, "ERROR: nj = %d exceeds GPU capacity nj_max = %d\n", nj, nj_max);
7071
abort;
7172
}

0 commit comments

Comments
 (0)