Skip to content

Commit b726e4f

Browse files
committed
We should not add a particle when massless
We should not add a particle as a j-particle when massless, since j-particles are the particles that exert gravity.
1 parent 3f3f787 commit b726e4f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/amuse_ph4/src/jdata.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ int jdata::add_particle(real pmass, real pradius,
143143
if (pmass <= _TINY_) {
144144
return -1;
145145
}
146+
146147
if (DEBUG > 2 && mpi_rank == 0) PRL(in_function);
147148

148149
if (nj >= njbuf) {

0 commit comments

Comments
 (0)