Comments (3)
Additionally, I think we should throw an error if the norm of difference of results from TAO and QP
is greater than some threshold. Currently, the norm of difference is only printed but PETSc test harness ignores floating point numbers.
from permon.
Is there an option when specifying tests to not ignore scientific notation / floats? It would be very useful to check KKT conditions which are printed with only a few decimal places in the scientific notation.
I thought the number in scientific notation are not ignored but looking at petscdiff this is clearly not the case. However, if I change a value in ex1_1 for a KKT condition the test passes but when I also change something else the diff outputs:
not ok diff-tutorials-ex1_1+a # Error code: 1
# 4c4
# < number of expansion steps 28
# ---
# > number of expansion steps 18
# 8c8
# < r = ||min(lambda_lb,0)|| = 1.87e-07 r/||b|| = 6.17e-01
# ---
# > r = ||min(lambda_lb,0)|| = 1.87e-07 r/||b|| = 6.17e-06
from permon.
Is there an option when specifying tests to not ignore scientific notation / floats?
Not at the moment, I'm afraid.
However, if I change a value in ex1_1 for a KKT condition the test passes but when I also change something else the diff outputs:
Yes, this is a normal behavior. If there are difference only in floating points, it passes. If there is any non-floating difference, then all differences are printed including floating points. It might be questionable but it's definitely a PETSc question rather than a PERMON question.
from permon.
Related Issues (20)
- suggestions for permonsys.h
- use PetscFunctionBeginHot in convergence tests, monitors and other looped functions
- leftovers from MR 35 HOT 1
- make use of PETSc MATPRODUCT HOT 2
- review the two version of MatRemoveGluingOfDirichletDofs
- MatInvComputeNullSpace_Inv could be simplified using newer API HOT 1
- cleanup old git branches
- git ignores output files for ex*
- MPGP: reduced gradient set but not used
- ex71 nullspace detection HOT 1
- review PERMON_ASSERT usage
- fix mem leaks found when running jbearing2
- replace egrep/fgrep with grep
- Autogen documentation
- Review petscfix functions
- MatConvert does not initialize LDA for MATDENSEPERMON
- Change printfs in QPFeti into PetscInfo
- set reasonable default number of subcomms for CP
- option to use telescope instead of redundant for CP solve
- solver divergence with -fno-honor-nans
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from permon.