Project
People
Skill
Log In
|
Get Help
Home
My Page
Projects
Code Snippets
Project Openings
Mareframe
Summary
Activity
Forums
Tracker
Lists
Tasks
Docs
Surveys
News
SCM
Files
[mareframe] Diff of /trunk/gadget/conversionindex.cc
[mareframe]
/
trunk
/
gadget
/
conversionindex.cc
Repository:
Repository Listing
mareframe
Diff of /trunk/gadget/conversionindex.cc
Parent Directory
|
Revision Log
|
Patch
revision 1, Mon Feb 10 17:09:07 2014 UTC
revision 2, Wed Apr 29 12:55:30 2015 UTC
#
Line 169
Line 169
169
}
}
170
}
}
171
}
}
172
173
174
175
void ConversionIndex::interpolateLengths(DoubleVector& Vf, const double* Vc, int size) {
176
177
if (!interpolate)
178
handle.logMessage(LOGFAIL, "Error in conversionindex - cannot interpolate between lengthgroups");
179
180
int i;
181
if (samedl) {
182
if (minlength > 0)
183
for (i = 0; i < minlength; i++)
184
Vf[i] = Vc[0];
185
186
for (i = minlength; i < maxlength; i++)
187
Vf[i] = Vc[i + offset];
188
189
//int size = sizeof(Vc)/sizeof(double*);
190
191
if (maxlength < Vf.Size())
192
for (i = maxlength; i < Vf.Size(); i++)
193
Vf[i] = Vc[size - 1];
194
195
} else {
196
for (i = 0; i < Vf.Size(); i++) {
197
if (isEqual(iratio[i], -1.0))
198
Vf[i] = Vc[ipos[i]];
199
else
200
Vf[i] = (Vc[ipos[i]] * (1.0 - iratio[i])) + (Vc[ipos[i] + 1] * iratio[i]);
201
}
202
}
203
204
}
Colored Diff
Long Colored Diff
Unidiff
Context Diff
Side by Side
Legend:
Removed from v.1
changed lines
Added in v.2
root@forge.cesga.es
ViewVC Help
Powered by
ViewVC 1.0.0