Changeset 681fb68 in tol
- Timestamp:
- Feb 9, 2010, 10:29:16 AM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 5e3cfca
- Parents:
- 9e75438
- File:
-
- 1 edited
-
tol/btol/bmodel/modcalc.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/bmodel/modcalc.cpp
r9e75438 r681fb68 162 162 //-------------------------------------------------------------------- 163 163 BBool ApplyPolB(BArray<BDat>& ps, const BArray<BDat>& s, 164 const BPol& p_, BInt deg, const BText& name )164 const BPol& p_, BInt deg, const BText& name, int maxTransferDegree) 165 165 //-------------------------------------------------------------------- 166 166 { … … 178 178 } 179 179 // Std(BText(" ps[")+j+"]="+ps[j].Name()+"\n"); 180 if( ps(j).IsUnknown() && ok)180 if(ok && (j>=maxTransferDegree) && ps(j).IsUnknown()) 181 181 { 182 182 Error(name+ I2(" has unknown data at ", … … 191 191 //-------------------------------------------------------------------- 192 192 static BBool ApplyPolB(BMat& ps, int rPs, const BMat& s, int rS, 193 const BPol& p_, BInt deg, const BText& name )193 const BPol& p_, BInt deg, const BText& name, int maxTransferDegree) 194 194 //-------------------------------------------------------------------- 195 195 { … … 207 207 } 208 208 // Std(BText(" ps[")+j+"]="+ps[j].Name()+"\n"); 209 if( ps(rPs,j).IsUnknown() && ok)209 if(ok && (j>=maxTransferDegree) && ps(rPs,j).IsUnknown()) 210 210 { 211 211 Error(name+ I2(" has unknown data at ", … … 220 220 //-------------------------------------------------------------------- 221 221 BBool ApplyPolB(BMat& ps, int row, const BData& s, 222 const BPol& p_, BInt deg, const BText& name )222 const BPol& p_, BInt deg, const BText& name, int maxTransferDegree) 223 223 //-------------------------------------------------------------------- 224 224 { … … 236 236 } 237 237 // Std(BText(" ps[")+j+"]="+ps[j].Name()+"\n"); 238 if( ps(row,j).IsUnknown() && ok)238 if(ok && (j>=maxTransferDegree) && ps(row,j).IsUnknown()) 239 239 { 240 240 Error(name+ I2(" has unknown data at ", … … 350 350 N_ = outData_.NumDates()-difDeg_; 351 351 outDifData_.Alloc(1, N_); 352 ApplyPolB(outDifData_, 0, fullData_, dif_, difDeg_, outName_+"_Full" );352 ApplyPolB(outDifData_, 0, fullData_, dif_, difDeg_, outName_+"_Full", 0); 353 353 Z_ = outDifData_.T(); 354 354 initialError_ = Sqrt(CenterMoment(outDifData_.Data(),2)); … … 418 418 n+=transfer_(i).Size(); 419 419 if(!ApplyPolB(inDifData_,i,inData_.Data(),i,dif_, 420 difDeg_,inpName_(i) ))420 difDeg_,inpName_(i),maxTransferDegree_)) 421 421 { ok = BFALSE; } 422 422 } … … 806 806 // { Std(nli.Date(j).Name()+"\t"+nli.Data()[0][j].Name()+"\n"); } 807 807 808 if(ApplyPolB(inDifNonLin_, nli.Data().Data(), dif_, difDeg_, name ))808 if(ApplyPolB(inDifNonLin_, nli.Data().Data(), dif_, difDeg_, name, 0)) 809 809 { for(j=0; j<size; j++) { inputDifFilter_(j)+=inDifNonLin_(j); } } 810 810 else … … 1250 1250 BInt j; 1251 1251 1252 ApplyPolB(outDifData_, 0, fullData_, dif_, difDeg_, outName_+"_Full" );1252 ApplyPolB(outDifData_, 0, fullData_, dif_, difDeg_, outName_+"_Full", 0); 1253 1253 Z_ = outDifData_.T(); 1254 1254 if(inputParam_)
Note: See TracChangeset
for help on using the changeset viewer.
