Skip to content

Commit 5f39899

Browse files
committed
minor bug in const smoothing
1 parent 003cf7a commit 5f39899

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/kernels/particle_moments.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ namespace kernel {
140140
return ZERO;
141141
}
142142
} else if (smoothing == OutputSmoothingType::CONST) {
143-
return TWO * static_cast<real_t>(window) + ONE;
143+
return ONE / (TWO * static_cast<real_t>(window) + ONE);
144144
} else {
145145
raise::KernelError(HERE, "Unsupported smoothing method");
146146
return ZERO;

0 commit comments

Comments
 (0)