Changeset cd0fed for src/units/particle/interpolation.cpp
- Timestamp:
- May 10, 2012, 12:22:46 PM (14 years ago)
- Children:
- 06e153
- Parents:
- ae05b4
- File:
-
- 1 edited
-
src/units/particle/interpolation.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/units/particle/interpolation.cpp
rae05b4 rcd0fed 14 14 using namespace VMG; 15 15 16 Particle::Interpolation::Interpolation(const unsignedint& degree) :16 Particle::Interpolation::Interpolation(const int& degree) : 17 17 deg(degree), 18 18 deg_1(degree+1), … … 36 36 Index i; 37 37 38 const Index begin = index - (static_cast<int>(deg_1)-1)/2 - 1;38 const Index begin = index - deg/2 - 1; 39 39 40 40 h = grid.Extent().MeshWidth(); … … 68 68 vmg_float power = 1.0; 69 69 unsigned long faculty = 1; 70 unsignedint c;70 int c; 71 71 Index i; 72 72 … … 77 77 ++i[direction]; 78 78 for (c=1; c<deg_1; ++i[direction], ++c) { 79 for ( unsignedint j=0; j<deg_1-c; ++j)79 for (int j=0; j<deg_1-c; ++j) 80 80 coeff_buffer[j] = coeff_buffer[j+1] - coeff_buffer[j]; 81 81 faculty *= c;
Note:
See TracChangeset
for help on using the changeset viewer.
