Lisa Julia Nebel
c92bad8cfe
Change asserts to BOOST_REQUIRE_* in test_tasklets_failure
2024-07-15 14:56:26 +02:00
Lisa Julia Nebel
c78a629528
Fix indentation
2024-07-15 14:52:47 +02:00
Lisa Julia Nebel
0a70296eb9
Change pointer to tasklet runners to smart pointer and add comment about why they are created on the heap
2024-07-15 14:51:52 +02:00
Lisa Julia Nebel
c73a51650f
Change lock mechanism to std::lock_guard
2024-07-15 14:22:28 +02:00
Lisa Julia Nebel
4d0179cffc
Implement a more polling-based interface for the tasklets failure mechanism
2024-07-12 15:12:41 +02:00
Lisa Julia Nebel
f86623a70c
Add test for failing tasklets
2024-07-09 09:44:13 +02:00
Kai Bao
9f0fb32713
various cleaning up and refactoring for co2 ptflash simulation
2023-11-21 15:52:56 +01:00
Trine Mykkeltvedt
83cb5670b7
a simple 1D test demonstrating the usage of the PTFlash compostional modeling
2023-11-21 15:52:56 +01:00
Arne Morten Kvarving
a7249bee65
test_quadrature: remove support for dune < 2.6
2022-11-14 16:35:42 +01:00
Arne Morten Kvarving
c906b55a64
fix test with dune-alugrid 2.7
2022-11-14 16:34:30 +01:00
Arne Morten Kvarving
d6c378e6a9
remove use of Unused.hpp
2022-08-02 11:24:40 +02:00
Arne Morten Kvarving
0fa24f7711
update test driver to match opm_add_test
2021-10-13 11:44:20 +02:00
Bernd Flemisch
d72de0f308
[cleanup] replace typedef by using
2020-06-10 13:49:42 +02:00
Bernd Flemisch
bdb7bac3e8
[properties] replace remaining macro calls
2020-06-10 13:07:19 +02:00
Bernd Flemisch
725c022e69
[properties] replace BEGIN/END_PROPERTIES macro calls
2020-06-08 17:11:48 +02:00
Bernd Flemisch
880c5223ac
[properties] replace macro calls by native C++
2020-06-08 16:41:02 +02:00
Bernd Flemisch
5e411a8665
fix test suite
2020-05-18 15:52:45 +02:00
Atgeirr Flø Rasmussen
7d3690ee99
Add "--parallel-program=X" option to test runner.
...
This is done to run test programs in parallel that are not simulations,
and therefore do not produce the standard (for this module) pattern of
outputs for comparison.
2020-01-23 09:47:34 +01:00
Atgeirr Flø Rasmussen
4a0effe8cc
Add and use gatherStrings() for exception messages.
...
Ensures user sees any useful exception messages during
initialization.
2020-01-21 15:33:31 +01:00
Markus Blatt
f9c4f870c3
Fixes g++-8's problems with return type deduction (ALUGrid master).
...
Fixes the following compile error in the tests for ALUGrid master.
Tested with DUNE 2.4-2.7
```
/home/mblatt/src/dune/opm-release-master/opm-models/tests/test_quadrature.cc: In function ‘void testTetrahedron()’:
/home/mblatt/src/dune/opm-release-master/opm-models/tests/test_quadrature.cc:191:32: error: unable to deduce ‘auto*’ from ‘Dune::ALU3dGridFactory< <template-parameter-1-1> >::createGrid() [with ALUGrid = Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)0, (Dune::ALUGridRefinementType)1>; Dune::ALU3dGridFactory< <template-parameter-1-1> >::GridPtrType = Dune::ToUniquePtr<Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)0, (Dune::ALUGridRefinementType)1> >]()’
auto *grid = gf.createGrid();
^
/home/mblatt/src/dune/opm-release-master/opm-models/tests/test_quadrature.cc:191:32: note: mismatched types ‘auto*’ and ‘Dune::ToUniquePtr<Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)0, (Dune::ALUGridRefinementType)1> >’
/home/mblatt/src/dune/opm-release-master/opm-models/tests/test_quadrature.cc:196:12: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
delete grid;
^~~~
/home/mblatt/src/dune/opm-release-master/opm-models/tests/test_quadrature.cc: In function ‘void testCube()’:
/home/mblatt/src/dune/opm-release-master/opm-models/tests/test_quadrature.cc:286:32: error: unable to deduce ‘auto*’ from ‘Dune::ALU3dGridFactory< <template-parameter-1-1> >::createGrid() [with ALUGrid = Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)1, (Dune::ALUGridRefinementType)1>; Dune::ALU3dGridFactory< <template-parameter-1-1> >::GridPtrType = Dune::ToUniquePtr<Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)1, (Dune::ALUGridRefinementType)1> >]()’
auto *grid = gf.createGrid();
^
/home/mblatt/src/dune/opm-release-master/opm-models/tests/test_quadrature.cc:286:32: note: mismatched types ‘auto*’ and ‘Dune::ToUniquePtr<Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)1, (Dune::ALUGridRefinementType)1> >’
/home/mblatt/src/dune/opm-release-master/opm-models/tests/test_quadrature.cc:291:12: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
delete grid;
^~~~
```
2019-10-24 15:54:18 +02:00
Arne Morten Kvarving
474ae4ded8
changed: ewoms/disc -> opm/models/discretization
2019-09-19 10:28:26 +02:00
Arne Morten Kvarving
e01f712294
changed: ewoms/common -> opm/models/utils
2019-09-19 10:14:17 +02:00
Arne Morten Kvarving
d8723dc9ce
changed: ewoms/parallel -> opm/models/parallel
2019-09-16 09:48:55 +02:00
Arne Morten Kvarving
799585f9d7
changed: namespace Ewoms -> namespace Opm
2019-09-05 16:21:10 +02:00
Andreas Lauser
9d5ff6b98a
Ewoms::start(): abort the run when encountering unknown parameters
2019-06-27 11:58:33 +02:00
Andreas Lauser
a62de5db66
move ebos to opm-simulators
...
ebos is well past the stage of a test for the numerical code but a
full-blown simulator of its own. Let's graduate.
2019-02-28 14:30:20 +01:00
Tor Harald Sandve
5fc57ec713
Merge pull request #473 from andlaus/no_reference_results
...
do no longer validate the results of any test
2019-02-19 15:47:06 +01:00
Arne Morten Kvarving
a4c5ee0b13
remove unused local typedef
2019-02-13 11:55:09 +01:00
Andreas Lauser
dd4523a6d7
do no longer validate the results of any test
...
this resolves #469 .
since the arguments brought forward in that issue equally apply to the
tests which produce VTK files, and the willingness to manually update
reference results for these is likely even smaller, the results
produced by the eWoms integration tests are simply not validated
anymore besides the fact that the produced files must be non-empty.
Note that this only applies to the default build system; the
alternative system still does -- and will continue to -- validate the
results.
2019-02-12 13:32:05 +01:00
Andreas Lauser
e5dde0aa7e
EclWriter: remove obsolete writeOutput() overload
...
this has been unused for any simulator for a while. the only code
which called it was the ECL output test, but this one could be easily
ported.
2019-02-06 12:21:08 +01:00
Andreas Lauser
ebdf685dc6
SPE1 ebos test: also compare the UNRST files
...
this segfaulted due to a small pecularity of the compareECL
utility. thanks to [at]akva2 for pointing this out.
Also, this updates the reference solutions for this test in an attempt
to fix the jenkins complaint: The test seems to be quite sensitive to
the used compiler flags and Jenkins is not able to update the
reference solutions yet.
2019-01-22 10:14:45 +01:00
Andreas Lauser
e7f1fbd77f
ebos: add a regression test using SPE1CASE1
...
hopefully, this will prevent plain-ebos from breaking as seriously as
in the past.
2019-01-18 17:19:22 +01:00
Atgeirr Flø Rasmussen
8a1034a3cc
Make runtest.sh also work on BSD/macOS.
...
In particular:
- "wc -w" will have spaces in the output on BSD,
- "python" defaults to python 3, so we must explicitly invoke python2.
2019-01-11 15:58:50 +01:00
Andreas Lauser
dc08a8b4dd
use a custom parameter file parser
...
this allows the key names to be transformed, i.e.,
```
enable-vtk=true
```
is now also possible in parameter files whereas before only CamelCase
parameter names like
```
EnableVtk=true
```
were valid. besides this, any valid Windows INI file that does not use
parameter groups should be readable, i.e., semicolons are now also
treated as a comment indicator.
2018-08-10 18:13:04 +02:00
Andreas Lauser
aed7e15d2e
fix extra compiler warnings
...
this is only relevant people who are masochistic enough to go beyond
`-Wall`. (note that at this warning level, there is plenty of noise from
Dune and other upstream dependencies.)
2018-07-02 09:17:56 +02:00
Atgeirr Flø Rasmussen
fbb885f303
Merge pull request #331 from andlaus/function_tasklets
...
tasklets: allow to dispatch raw functions
2018-06-28 20:47:08 +02:00
Tor Harald Sandve
0bfe876425
rename completion to connection
2018-06-28 15:49:45 +02:00
Andreas Lauser
6dde43dc0b
tasklets: allow to dispatch raw functions
2018-06-21 14:56:10 +02:00
Andreas Lauser
acc93ff6e7
do explicit put properties into the the Ewoms::Properties namespace anymore
...
instead, do it implicitly by using the BEGIN_PROPERTIES and
END_PROPERTIES macros.
2018-06-15 20:22:07 +02:00
Joakim Hove
b9395e0291
Rename Completions -> Connections
2018-06-11 14:11:32 +02:00
Andreas Lauser
25e952fb49
tasklets test: guard against garbled output
...
Use a mutex to ensures that only a single prints at the same
time. this should prevent garbled terminal output and thus makes the
it much easier to read. on the flipside, some race conditions may go
unnoticed.
2018-04-23 13:24:59 +02:00
Andreas Lauser
5c9e20c00e
tasklets: introduce the concept of "worker thread index"
...
if the current thread is not a worker thread, this returns -1.
2018-04-23 13:24:59 +02:00
Andreas Lauser
2cb0176754
add an example for tasklets
...
it is IMO not good as a unit test because it does not excercise the
mechanism at all, but it shows how the mechanism is supposed to be
used.
2018-04-19 14:35:24 +02:00
Andreas Lauser
7de09c08f2
disable asynchronous output for the ECL output test
...
this leads to crashes deeply inside libecl. My cursory hypotheses are
that this test makes the assumption that the output is written
synchronously (it tries to read back the results from disk
immediately) and/or that libecl is not threadsafe.
2018-03-21 10:31:15 +01:00
Andreas Lauser
e2241beef5
clean up the determination of the directory for output
...
this should be done by the vanguard, not by the problem!
2018-03-12 16:51:30 +01:00
Kai Bao
ec6cf5c94b
changing the PVTO in test_ecl_output
...
to make the table passing the sanity check.
2018-03-08 09:54:08 +01:00
Andreas Lauser
d8792f36a0
fix a few "unused variable" warnings that occur on more uncommon compilers
...
i.e. on ICC. the compiler is right in producing warnings here, though.
2018-03-03 13:27:48 +01:00
Joakim Hove
e27a69a496
Rename test-deck to get consistent case
2018-02-20 14:34:31 +01:00
Tor Harald Sandve
c47dd68b1d
Rename test_ecl_output.cpp -> test_ecl_output.cc
2018-02-19 13:18:56 +01:00
Tor Harald Sandve
7884229085
Minor clean up
2018-02-19 13:18:56 +01:00