Commit 5f461a5df241bef5a0b551d0fa4e6b7220bdfed2

Authored by David Mayerich
1 parent dcdf1276

fixed mirst-based features

gl/error.h 100755 → 100644
gl/rtsSourceCode.h 100755 → 100644
gl/rts_glShaderObject.h 100755 → 100644
gl/rts_glShaderProgram.h 100755 → 100644
gl/rts_glShaderUniform.h 100755 → 100644
gl/rts_glUtilities.h 100755 → 100644
gl/texture.h 100755 → 100644
math/field.cuh
... ... @@ -120,7 +120,6 @@ protected:
120 120 }
121 121  
122 122 //retrieve the maximum value for this slice and store it in the maxVal array
123   - std::cout<<X[n]<<std::endl;
124 123 HANDLE_ERROR(cudaMemcpy(&result, X[n] + index, sizeof(T), cudaMemcpyDeviceToHost));
125 124 return result;
126 125 }
... ...
math/function.h
... ... @@ -85,7 +85,7 @@ public:
85 85 //i currently holds the ceiling
86 86  
87 87 //if the wavelength is past the end of the list, return the last sample point
88   - if(i == N) return Y[N];
  88 + if(i == N) return Y.back();
89 89 //if the wavelength is before the beginning of the list, return the front
90 90 else if(i == 0) return Y[0];
91 91 //otherwise interpolate
... ...