Changeset d0246f84 in tol


Ignore:
Timestamp:
Jan 26, 2009, 4:05:11 PM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
5834e8a
Parents:
0dd5554c
Message:

Fixed bug in stopping criterium of MinimumResidualsSolve

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@501 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/bmath/blinalg/linalg.cpp

    r0dd5554c rd0246f84  
    286286          BDat(100*relAdv  ).Format("%8.4lf")+"%)");
    287287#endif
    288       if(maxpa.IsUnknown()    ) { break; }
    289       if(advance      >  0    ) { break; }
    290       if(maxpa        <= chop ) { break; }
    291       if(Abs(advance) <= chop ) { break; }
    292       if(Abs(relAdv)  <= chop ) { break; }
    293       if(Abs(R)       <= chop ) { break; }
    294       if
    295       (
    296         (oldMaxpa          <= BDat::Tolerance () ) &&
    297         (maxpa             <= BDat::Tolerance () ) &&
    298         (Abs(advance)      <= BDat::Tolerance () ) &&
    299         (Abs(xNormAdvance) <= BDat::Tolerance () )
    300       )
    301       { break; }
    302 
     288      if(S.IsUnknown()               ) { break; }
     289      if(maxpa.IsUnknown()           ) { break; }
     290      if(advance             >   0   ) { break; }
     291      if(S                   <= chop ) { break; }
     292/*
     293      if(maxpa               <= chop ) { break; }
     294      if(fabs(advance)       <= chop ) { break; }
     295      if(fabs(relAdv)        <= chop ) { break; }
     296      if(fabs(R)             <= chop ) { break; }
     297      if(oldMaxpa            <= tol  ) { break; }
     298      if(maxpa               <= tol  ) { break; }
     299      if(fabs(advance)       <= tol  ) { break; }
     300      if(xNormAdvance.Abs()  <= tol  ) { break; }
     301*/
    303302    }
    304303    r -= q*a;
Note: See TracChangeset for help on using the changeset viewer.