Commit Graph
37 Commits
Author SHA1 Message Date
Arne Morten Kvarving 0a46c04ddf changed: quell / remove cause of unused variable warnings 2015-09-14 11:34:32 +02:00
Arne Morten Kvarving 2969bb295f changed: make internal data private 2015-09-14 11:34:32 +02:00
Arne Morten Kvarving 4f342d9958 changed: hold on to a reference to options structure
avoid having to pass it to (almost) all functions
2015-09-14 11:34:32 +02:00
Arne Morten Kvarving c0b2fe3590 changed: make the dP vector a private member
not needed on application side
2015-09-14 11:34:32 +02:00
Arne Morten Kvarving 5afba719cb changed: make conversion factor a private member in helper class
and remove it from applications
2015-09-14 11:34:32 +02:00
Arne Morten Kvarving e8ae00d425 changed: remove debug function 2015-09-14 11:34:32 +02:00
Arne Morten Kvarving 6548d6b724 changed: move all error handling to exceptions 2015-09-14 11:34:32 +02:00
Arne Morten Kvarving 2e3d2b91c6 changed: move permeability upscaling to a function
- was duplicated in upscale_relperm / upscale_relperm_benchmark
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving 3749f061ff changed: replace loops with push_back with proper calls to resize 2015-09-14 11:34:31 +02:00
Arne Morten Kvarving 0f87352e92 changed: put upscaling of capillary pressure in a function
- was duplicated across upscale_relperm / upscale_relperm_benchmark
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving 46db96d245 changed: put calculation of min/max capillary pressures in a function
- was duplicated across upscale_relperm / upscale_relperm_benchmark
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving 1e7f059dca changed: move some initialization code to helper constructor 2015-09-14 11:34:31 +02:00
Arne Morten Kvarving 95a6461107 changed: move calculation of cell center pressure gradients to a function
- was duplicated across upscale_relperm / upscale_relperm_benchmark
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving 15d47ef70e changed: put grid resolutions in an array instead of 3 loose variables 2015-09-14 11:34:31 +02:00
Arne Morten Kvarving 2fb08e4f2b changed: move tesselation of grid to a function
- was duplicated across upscale_relperm / upscale_relperm_benchmark
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving eef1a51f56 changed: move boundary condition initialization to a function
- was duplicated across upscale_relperm / upscale_relperm_benchmark
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving 4ecd4ed293 changed: unify option structure with main relperm application
- to factor out common code, it needs to be similiar.
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving 24bfed5228 changed: put check for critical saturation in a function
- duplicated across upscale_relperm / upscale_relperm_benchmark
- code was duplicated for each component
- code was duplicated for each phase
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving b9ac1b0177 changed: use an array for relperm curves instead of loose members 2015-09-14 11:34:31 +02:00
Arne Morten Kvarving da60be1620 changed: move sanity checking of grid input to a function
- was duplicated across upscale_relperm / upscale_relperm_benchmark
- improves main function readability
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving aa486d7e42 changed: move upscaling of single phase permeability to a function
- was duplicated in upscale_relperm and upscale_relperm_benchmark
- improves readability of main function
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving f1f1df5c4f refactor: move phase perm to relperm calculations to helper class
- avoids duplication per phase
- avoids duplication in upscale_relperm / upscale_relperm_benchmark
2015-09-14 11:34:31 +02:00
Arne Morten Kvarving a2c2f1021f changed: use an array for phase permeability instead of two loose members. 2015-09-14 11:26:25 +02:00
Arne Morten Kvarving 5d9271620e changed: move collection of results from MPI nodes to helper class 2015-09-14 11:26:25 +02:00
Arne Morten Kvarving 6ebe55b756 changed: introduce a helper struct for relperm upscaling apps
currently only holds shared data but shared code will follow
2015-09-14 11:26:25 +02:00
Arne Morten Kvarving 2b396e0ccb changed: put the voigt tensor helper functions in a shared source
they were duplicated in 3 source files
2015-09-14 11:26:25 +02:00
Arne Morten Kvarving 086a74d5ab changed: postpone multiplication with surfaceTension to the end
unifies the benchmark with the main application. see
fa1f87c98d for the reasoning.
2015-09-14 11:26:25 +02:00
Arne Morten Kvarving da592f0049 fixed: benchmark was comparing reference to reference
NOTE: The absolute tolerance is too strict for these values,
for now lifted two orders of magnitude.
2015-09-14 11:26:25 +02:00
Arne Morten Kvarving 30e92183c6 add exception handling to upscale_relperm_benchmark 2015-09-14 11:26:24 +02:00
Arne Morten Kvarving 052609ac46 changed: mark application helper functions static 2015-09-14 11:26:24 +02:00
Arne Morten Kvarving 3a7746618d changed: write usage to cerr and remove exception message prepend 2015-09-14 11:26:24 +02:00
Arne Morten Kvarving 060bbd73d2 changed: replace C99 VLAs with std::vector in the benchmark application 2015-07-01 09:31:20 +02:00
Arne Morten Kvarving 69e4b5833b changed: use a c++11 initializer list instead of repeated inserts 2015-07-01 09:25:09 +02:00
Arne Morten Kvarving 30c7ebb607 changed: use an index table instead of switch() 2015-07-01 09:24:59 +02:00
Arne Morten Kvarving 0834a1436e fixed: make data conversion script more portable
should fix issues on osx
2015-06-30 15:38:22 +02:00
Arne Morten Kvarving af0c51e74f changed: remove support for tiny and huge datasets in the benchmark 2015-06-30 10:29:21 +02:00
Arne Morten Kvarving 88223f12d0 added: migrate medium benchmark from opm-benchmarks
add a 'benchmark' target to build the benchmark in your build tree
add a 'benchmark-static' target to build a static benchmark binary
2015-06-30 10:14:56 +02:00