Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [testing]

Questions on the testing and verification of computational methods.

2
votes
1answer
109 views

Poorly conditioned, easily evaluated sum for unit testing

I am looking for examples of poorly conditioned sums which can rapidly be evaluated, for the purposes of unit testing. I'm currently using the series representation for $\ln(2)$: $$ \sum_{n=1}^{\...
4
votes
1answer
45 views

Testing Wiener process splitting in adaptive-step SDE integrators

I am investigating various methods for adaptive-step integration of stochastic differential equations and trying to implement them. All of the papers that I've seen (e.g. H. Lamba, J. Comp. App. Math. ...
1
vote
0answers
32 views

2D Test cases for overset meshes

I developed a parallel 2D overset mesh (chimera) assembler and I would like to test a large scale problem. I don't want to make up a test case myself but rather want something standard. Would you ...
6
votes
3answers
120 views

Naming scientific output files

What's the best practice for naming output files from scripts that you're experimenting with? I'm trying different parameters in my data generation script and I'd like to keep track of which files ...
8
votes
1answer
113 views

testing derivative approximations

I'm writing a library that involves some approximations of variational calculus problems. Whenever I implement routines to evaluate the derivative or Hessian of an action functional $A$, I write a ...
4
votes
1answer
210 views

Test matrices for large sparse overdetermined system of linear equations

I'm working on some c++ code to solve (conjugate gradient, least squares conjugate gradient, LSQR,..) large sparse overdetermined systems of linear equations. There is a twist to my matrices and the ...
3
votes
0answers
100 views

Strange convergence behavior of WENO5 for Hamilton--Jacobi equations

I have the following question. I have a code function that computes right-biased and left-biased approximations of the derivative of a function using WENO5 for Hamilton--Jacobi equations as described ...
0
votes
2answers
269 views

How to choose a simple manufactured solution for Euler equation?

In order to verify a two-phase subsonic compressible isothermal Euler code, I am trying to implement a manufactured solution following what is discussed here and references therein. Also, as an ...
1
vote
1answer
228 views

1D uniform flow test case for compressible flow

Are there any one dimensional hyperbolic test cases for a 1D uniform flow? (I need the test case for the purpose of showing the satisfaction of geometric conservation law on a moving mesh).
1
vote
0answers
39 views

Coriolis test problem

I have a eulerian hydrodynamic code, which I have recently implemented the Coriolis force in the integrator. Is there a standard test problem for the Coriolis force? Since this isn't a Lagrangian ...
3
votes
1answer
143 views

How close observed order of accuracy should be to theoretical order of accuracy?

I try to write tests to the implementations of numerical methods. The best way to do this is to study the observed order of accuracy and check that it matches with the theoretical order of accuracy. ...
4
votes
1answer
80 views

How can I compare errors in PDE solvers with non-uniform grids?

Is there a standard approach to testing codes with refined regions? Specifically, I am interested in testing whether the refinement is working correctly. For the sake of simplicity, let's consider a (...
1
vote
1answer
89 views

What are the good testing problems for hyperbolic equation?

I read the whole list of this question: Where can one obtain good data sets/test problems for testing algorithms/routines? But the answers are in different areas and I want to ask a specific area. I ...
6
votes
3answers
825 views

Test Case with Known Solution for 3D Navier Stokes Equations

Is there a test case for 3D incompressible Navier Stokes Equations like the Taylor vortex in two dimensions? I know, I can easily construct 3D manufactured solutions but I would like to have ...
7
votes
3answers
267 views

How to write integration tests for numeric simulation software?

Just to be more precise i'll put a worthy example of my typical use case. Let's say I'm developing a FEM software that produces several temporal solutions and inserts them in an HDF5 file, along with ...
2
votes
1answer
165 views

Testing 1D root-finding procedures for robustness

How can I test whether a given 1D root-finding procedure is robust? I know that there are data sets and resources online for different kinds of optimization, but I have yet to find anything with ...
2
votes
3answers
588 views

Test set for linear solvers

Lets assume I have a iterative linear system solver, e. g. this one. Whats the typical approach on verifying and testing this kind of solvers? Is there a standard test set of linear systems one ...
4
votes
2answers
102 views

Local versus remote development

I know there are similar questions asked on other StackExchange sites, but I think development in Computational Science may work differently because of the computing environments that are common. I ...
6
votes
1answer
295 views

Guidelines for choosing manufactured solutions for numerical PDE schemes

When testing a numerical method for a PDE, I know that it's often useful to compare it to a known analytical solution. If none is available, one can always 'manufacture' a solution, substitute it ...
3
votes
4answers
358 views

Looking for analytic solutions to time dependent fluid flow problems

I'm looking for analytic solutions to time dependent fluid flow problems (can be compressible or incompressible, Euler or Navier-Stokes equations). The main thing though is that I'd like there to be '...
13
votes
4answers
3k views

Any recommendations for unit-testing frameworks compatible with code/libraries that use MPI?

Usually, I write serial code, and when I do, I write unit tests with some xUnit-style testing framework (MATLAB xUnit, PyUnit/nose, or Google's C++ testing framework). Based on a cursory Google ...
15
votes
3answers
726 views

Strategies for unit testing and test-driven development

I'm a huge advocate of test-driven development in scientific computing. It's utility in practice is just staggering, and really alleviates the classic troubles that code developers know. However, ...
3
votes
3answers
125 views

Test case suggestion for incompressible flow with ALE method on deforming grids

I'm working on a finite-volume discretization method with implicit time-integration for the incompressible Navier-Stokes equations in Arbitrary Lagrangian-Eularian (ALE) form. So far I've tested the ...
13
votes
4answers
379 views

Testing suites for numerical applications in C++?

Recently, I've been pushing my group to include more testing when writing their code. There were several major bugs that took a lot longer to catch than probably speaking was necessary, because we ...
1
vote
2answers
417 views

Is there any 1-D test case for incompressible flow codes?

There is quasi 1-D C-D nozzle test case for compressible flow codes, like that "is there any 1-D test case for incompressible flow codes?"
3
votes
1answer
56 views

How to obtain the minimum set of variables required in a model to produce accurate estimation?

I have a system which I assume is linear. I have a matrix $A$ of which each row is a coefficient of a unknown variables in vector $x$. I have vector $B$ which contains the result of each $Ax$. ...
8
votes
1answer
138 views

Testing and visualizing large index arrays

I will be implementing nodal discontinuous Galerkin method soon, and having done this before I know the basic indexing arrays I will need to compute, given a mesh and polynomial data. The problem I ...
10
votes
3answers
468 views

Regression testing of chaotic numerical models

When we have a numerical model that represents a real physical system, and that exhibits chaos (e.g. fluid dynamics models, climate models), how can we know that the model is performing as it should? ...
1
vote
1answer
181 views

Test set non linear solver

what is your preferred test set to test quality of non linear solver? this could be set of data, model and results obtained with some benchmark solver, or simply a panel of test functions that could ...
17
votes
5answers
348 views

Databases of results for numerical codes

In the numerical methods literature, many research papers consist of a description of a new algorithmic variation, followed by a few test problems comparing the new method with one or two existing ...
89
votes
14answers
8k views

Is it worthwhile to write unit tests for scientific research codes?

I am strongly convinced of the value of using tests that verify a complete program (e.g. convergence tests), including an automated set of regression tests. After reading some programming books, I've ...
17
votes
3answers
320 views

What programming strategies can I take for easily modifying algorithm parameters?

Developing scientific algorithms is a highly iterative process often involving changing lots of parameters that I will want to vary either as part of my experimental design or as part of tweaking ...
41
votes
18answers
2k views

Where can one obtain good data sets/test problems for testing algorithms/routines?

In evaluating the quality of a piece of software you are about to use (whether it's something you wrote or a canned package) in computational work, it is often a good idea to see how well it works on ...