--- examples/texture.c +++ examples/texture.c @@ -12,6 +12,7 @@ */ #include +#include #include #include #include "texture.h" @@ -217,11 +218,11 @@ niter ++; printf ("diffusion-reaction iteration %d \n", niter); - cpmax = -1.0e50; - cpmin = +1.0e50; + cpmax = -FLT_MAX; + cpmin = +FLT_MAX; - cmmax = -1.0e50; - cmmin = +1.0e50; + cmmax = -FLT_MAX; + cmmin = +FLT_MAX; if (reset) { niter = 0;