Skip to content
Snippets Groups Projects
Commit b4e4cc3f authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing reduce marked

parent ee2cb6ae
No related branches found
No related tags found
No related merge requests found
Pipeline #972 failed
......@@ -12,10 +12,10 @@ sph_dlb_test: OPT += -DTEST_RUN
sph_dlb_test: sph_dlb
%.o: %.cu
nvcc -O0 -g -c -isystem=/home/i-bird/MPI/include --std=c++11 -o $@ $< $(INCLUDE_PATH_NVCC)
nvcc -O3 -g -c -isystem=/home/i-bird/MPI/include --std=c++11 -o $@ $< $(INCLUDE_PATH_NVCC)
%.o: %.cpp
$(CC) -O0 $(OPT) -g -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
$(CC) -O3 $(OPT) -g -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
sph_dlb: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
......
......@@ -373,7 +373,13 @@ void remove_marked(vector_type & vd)
// we have no particles to remove
if (*(int *)mem.getPointer() != 1)
{return;}
{
if (*(int *)mem.getPointer() >= 2)
{
std::cout << __FILE__ << ":" << __LINE__ << " error: removing marked particle. Carefull particle must be marked with 1 or 0, no other numbers" << std::endl;
}
return;
}
// Get the mark point
mark.template deviceToHost<0>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment