Explorar el Código

Only display heat results if DISPLAY is set

Samuel Thibault hace 6 años
padre
commit
fd3e4dae45
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      examples/heat/heat.c

+ 2 - 1
examples/heat/heat.c

@@ -804,7 +804,8 @@ int main(int argc, char **argv)
 	}
 
 #ifdef STARPU_OPENGL_RENDER
-	opengl_render(ntheta, nthick, result, pmesh, argc, argv);
+	if (getenv("DISPLAY"))
+		opengl_render(ntheta, nthick, result, pmesh, argc, argv);
 #endif
 
 	free(pmesh);