Skip to content

Commit c85271f

Browse files
committed
This check should be made at the caller
This check should be made at the caller, not at the callee.
1 parent f46e8d5 commit c85271f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/sapporo_light/send_fetch_data.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ int sapporo::fetch_ngb_list_from_device(int ignore) {
111111

112112

113113
double sapporo::evaluate_gravity(int ni, int nj) {
114-
// If no j particles, skip evaluation to avoid kernel launch with nj=0
115-
if (nj == 0) return 0;
116114

117115
#ifdef NGB
118116
bool ngb = true;

0 commit comments

Comments
 (0)