--- src/fattal02/pde.cpp.orig 2012-06-21 13:27:13.000000000 +0000 +++ src/fattal02/pde.cpp 2014-06-18 15:29:52.288954426 +0000 @@ -70,15 +70,15 @@ // precision #define EPS 1.0e-12 -void linbcg(unsigned long n, float b[], float x[], int itol, float tol, +static void linbcg(unsigned long n, float b[], float x[], int itol, float tol, int itmax, int *iter, float *err); -inline float max( float a, float b ) +static inline float max( float a, float b ) { return a > b ? a : b; } -inline float min( float a, float b ) +static inline float min( float a, float b ) { return a < b ? a : b; } @@ -109,7 +109,7 @@ // Full Multigrid Algorithm for solving partial differential equations ////////////////////////////////////////////////////////////////////// -void restrict( const pfstmo::Array2D *in, pfstmo::Array2D *out ) +static void restrict( const pfstmo::Array2D *in, pfstmo::Array2D *out ) { const float inRows = in->getRows(); const float inCols = in->getCols(); @@ -172,7 +172,7 @@ // } -void prolongate( const pfstmo::Array2D *in, pfstmo::Array2D *out ) +static void prolongate( const pfstmo::Array2D *in, pfstmo::Array2D *out ) { float dx = (float)in->getCols() / (float)out->getCols(); float dy = (float)in->getRows() / (float)out->getRows(); @@ -216,7 +216,7 @@ } // to_level