Commit Graph

90 Commits

Author SHA1 Message Date
Atgeirr Flø Rasmussen
064d408b20 Merge branch 'master' into nonuniform_fluid_tables
Conflicts:
	opm/core/fluid/BlackoilPropertiesFromDeck.cpp
	opm/core/fluid/BlackoilPropertiesFromDeck.hpp
	opm/core/fluid/SaturationPropsFromDeck.cpp
2012-09-04 13:34:30 +02:00
Atgeirr Flø Rasmussen
d8bc458631 Minor cleanup. 2012-09-04 13:08:30 +02:00
Atgeirr Flø Rasmussen
e25512a646 Changed std::copy() statements to account for n != 1.
However, there are more changes needed to make the program
support n != 1, this is just to reduce the surprise factor a little.
2012-09-04 13:00:51 +02:00
Atgeirr Flø Rasmussen
a07d894500 Merge branch 'master' into nonuniform_fluid_tables
Conflicts:
	Makefile.am
	opm/core/fluid/BlackoilPropertiesFromDeck.hpp
	opm/core/fluid/SaturationPropsFromDeck.cpp
	opm/core/fluid/SaturationPropsFromDeck.hpp
	opm/core/fluid/blackoil/BlackoilPvtProperties.cpp
	opm/core/fluid/blackoil/BlackoilPvtProperties.hpp
	opm/core/fluid/blackoil/SinglePvtDead.cpp

This merge combines three more-or-less orthogonal features
for saturation tables: the option to use StoneII or Simple
three-phase behaviour, the option to fit a spline or not,
and finally setting the number of samples used (if spline
fitting).

Interfaces have changed, the most top-level one being
that BlackoilPropertiesFromDeck::init() now also takes
a ParameterGroup argument.
2012-09-04 11:42:31 +02:00
Atgeirr Flø Rasmussen
47b40c034e Fixed spontaneous grid structs, avoid variable-sized arrays. 2012-09-03 16:01:07 +02:00
Halvor Møll Nilsen
ed2aa9da38 Introduced posibility to change number of sample points for pvt.
Did change the PVTW calculation so derivatives are exact.
Extended the test functions for pvt and relperm
2012-08-31 17:01:07 +02:00
Halvor Møll Nilsen
7b1501cead Added new SatFuncSimple fluid.
Introduced a simple fluid which has no problem with strange black oil behavior.
Intended for testing, but for now it is used in SaturationPropsFromDeck.
2012-08-28 16:41:06 +02:00
Halvor Møll Nilsen
48360d23a1 Added param initializer on fluids with param to addjust table length.
Moved internal class SatFunc to SatFuncStone2.
2012-08-28 14:27:14 +02:00
Atgeirr Flø Rasmussen
547dc1648c Added class SinglePvtDead, add parameter 'props_use_spline' to simulators.
Recall that the class that used to be called SinglePvtDead has
been renamed to SinglePvtDeadSpline. If 'props_use_spline' is true,
that class is used (this is the default), which makes a monotone
spline that is uniformly, densely sampled. The new class simply
uses linear interpolation in the input tables.
2012-08-27 16:48:21 +02:00
Halvor Møll Nilsen
ea09af47f4 Added programs to test test fluids. 2012-08-27 12:21:25 +02:00
Atgeirr Flø Rasmussen
9a23b8db74 Constructors of *FromDeck classes now take an UnstructuredGrid.
This is a change from taking a vector containing the mapping to
deck-consistent logical cartesian indices. The mapping is contained
in the UnstructuredGrid::global_cell member, and may be null. The
change therefore saves the overhead of constructing a vector as a
copy of the data in the grid or (if null) as an identity mapping.
2012-08-10 10:12:45 +02:00
Bård Skaflestad
6c35b9679b Don't clobber LDFLAGS user variable
Fix a misunderstanding that's been present since the inception.  The
LDFLAGS variable is entirely at the builder's disposal.  Flags needed
for system-internal settings must go in the AM_* equivalents.
2012-07-10 13:46:30 +02:00
Bård Skaflestad
31788277f9 Don't link in Fortran support libraries
This is an experiment, not strictly sanctioned by the AX_LAPACK macro
documentation, to avoid linker errors related to missing symbol MAIN__
in the (GFortran) run-time support libraries.  Strictly speaking, we
should be using the method outlined in the Autoconf manual, but we'll
try the easier way for now.

This commit is more or less equivalent to forward-porting commits
dd6e0fd3, c437eba2, and 9e885dc7 from the "ert" branch.
2012-07-10 13:38:33 +02:00
Bård Skaflestad
6b57a00b17 Avoid Clobbering Dune's Boost Support.
When OPM-Core is used as a Dune module (e.g., as enabled by commit
789bc5ca7), we stand the risk of creating multiple, conflicting
defintions of crucial <config.h> symbols (e.g. `HAVE_BOOST') and
build variables (e.g., `BOOST_CPPFLAGS' and `BOOST_LDFLAG').

Avoid this situation by prefixing these symbols with an `OPM_'
string such that Dune's `ENABLE_BOOST' solution works as intendend
in modules that are derived in the OPM context.
2012-07-09 17:42:56 +02:00
Bård Skaflestad
9005e4353c Build the library in a lib/ sub-directory of $(builddir)
Suggested by: Andreas Lauser
2012-07-03 16:44:03 +02:00
Bård Skaflestad
be1ca06fa3 Use dynamic Boost.Test mode only if supported
Use result of OPM_DYNLINK_BOOST_TEST to determine whether or not to
#define the Boost symbol BOOST_TEST_DYN_LINK .

While here, replace an unprintable character with the proper UTF-8
encoding in a comment.
2012-06-27 16:51:37 +02:00
Bård Skaflestad
7d7f62ebc3 Merge branch 'preprocess-svn-reintegrate'
Conflicts:
	Makefile.am
	opm/core/grid/cpgpreprocess/facetopology.c
	opm/core/grid/cpgpreprocess/mxgrdecl.c
	opm/core/grid/cpgpreprocess/preprocess.c
	opm/core/grid/cpgpreprocess/sparsetable.c
	opm/core/grid/cpgpreprocess/sparsetable.h
	opm/core/grid/cpgpreprocess/uniquepoints.c

This merge brings a new, more resilient and feature-complete
corner-point processing.  In particular, the new code features
exact, in-plane vertex coordinates for face nodes that arise as a
result of fault processing and which are not located on pillars.
Secondly, the resulting grid's cells are ordered lexicographically
with the I index cycling the most rapidly, followed by J and
finally K.

Finally, this merge also brings automatic handling of left-handed
coordinate systems which, until now, have produced negative cell
volumes as a result of face vertices being ordered such that
interface normals point from cell 2 to cell 1 in this case.
Left-handed coordinate systems are recognised using a simplistic
triple-product characterisation akin to the implementation of
function "processGRDECL" of MRST.

This code is now an (almost) exact replica of revision 1001 of
https://public.ict.sintef.no/viewvc/openrs/trunk/dune-cornerpoint/grid/preprocess/

The merge also removes opm/core/grid/cpgpreprocess/readvector*, so
remove tests/test_readvector.cpp (and accompanying Make rule) to
maintain a buildable tree.
2012-06-26 19:52:21 +02:00
Bård Skaflestad
2a1561a246 Insert a few blank lines for grouping purposes. 2012-06-12 23:10:38 +02:00
Bård Skaflestad
37b49e31ed Use canonical library set for LAPACK. 2012-06-12 23:09:55 +02:00
Bård Skaflestad
91fb55af2c Libraries must follow the pertinent "-L" flags. 2012-06-12 23:08:59 +02:00
Bård Skaflestad
833268a33f Remove a per-target LDADD that's automatically satisfied. 2012-06-12 23:05:33 +02:00
Bård Skaflestad
ed24f7d43d Sort list of test executables (and _SOURCES). 2012-06-12 23:05:04 +02:00
Halvor M. Nilsen
4f7f678017 Started on adding generation of other maps 2012-06-11 15:52:10 +02:00
Halvor M. Nilsen
efc3cc3324 Added convert function from vag grid to opm::unstructed. In the process it was added a convenience function to allocate unstructured grid in grid.h. Compute geometry is used to calculate the new geometry. 2012-06-08 20:50:41 +02:00
Halvor M. Nilsen
839920fab2 Added copyright on newly added files 2012-06-08 15:47:18 +02:00
Halvor M. Nilsen
bde8b53a7d Add support for reading vag/(unstructured format) 2012-06-08 15:34:00 +02:00
Bård Skaflestad
47897c644c Assert copyright. 2012-06-06 12:39:29 +02:00
Bård Skaflestad
a6ce019736 Support matrices of two or more rows. 2012-06-06 12:38:27 +02:00
Bård Skaflestad
17ebf48f34 Add simple demonstration/regression test of AGMG solver. 2012-06-06 11:49:07 +02:00
Atgeirr Flø Rasmussen
955b5ea068 Reorganized, added opm/core/wells/ and opm/core/simulator/. 2012-06-05 15:42:49 +02:00
Atgeirr Flø Rasmussen
5b2e99ec4c Split disjoint columns in extractColumns(). Add test case. 2012-05-11 11:20:18 +02:00
Atgeirr Flø Rasmussen
891696e333 Simplified data structure for extracted columns. 2012-05-11 09:37:12 +02:00
Atgeirr Flø Rasmussen
04ab5c83ce Renamed all grid construction functions to create_grid_<something>(). 2012-04-11 12:35:19 +02:00
Atgeirr Flø Rasmussen
36097f1656 Renamed free_grid() -> destroy_grid(). 2012-04-11 11:40:51 +02:00
Atgeirr Flø Rasmussen
702aaec8ab Removed unneeded #include statement. 2012-04-11 11:36:23 +02:00
Atgeirr Flø Rasmussen
866cb0b6ab Updated #include statements to match moved and renamed headers. 2012-04-11 11:27:45 +02:00
Bård Skaflestad
4b47096368 tests/Makefile.am: Sort individual tests alphabetically. 2012-03-28 15:10:04 +02:00
Atgeirr Flø Rasmussen
b966369c73 Moved small cartesian grid test to tests/test_cartgrid.cpp. 2012-03-28 15:02:27 +02:00
Kjetil Olsen Lye
3f63435100 merge 2012-03-26 11:17:36 +02:00
Xavier Raynaud
e887518487 Added general linear lapack solver. Updated test for band matrices. 2012-03-23 15:44:32 +01:00
Kjetil Olsen Lye
dd2d474643 Added opm-parallelization to column solver for gravity. Did a (minor) interface change on extractColumn 2012-03-23 12:32:25 +01:00
Bård Skaflestad
f91ec88df6 BandMatrixCoeff: Initialise members in declaration order. 2012-03-20 10:53:36 +01:00
Xavier Raynaud
1311e42208 updated test with band matrix assignement for lapack solver. 2012-03-19 09:47:44 +01:00
Xavier Raynaud
7fa98bc5ae Added solver for band matrix and a test example. 2012-03-15 16:17:16 +01:00
Bård Skaflestad
f52aad24e2 Adjust to new semantics of "struct FlowBoundaryCondtions".
We may now pass "NULL" if there are no active (flow) boundary conditions.
2012-03-06 20:08:34 +01:00
Kjetil Olsen Lye
ef93d66d96 Added lapack linking for test_lapack 2012-03-01 16:20:11 +01:00
Kjetil Olsen Lye
617e786270 merge 2012-03-01 16:15:23 +01:00
Kjetil Olsen Lye
6a0df4a752 Correct column extract 2012-03-01 16:15:02 +01:00
Bård Skaflestad
f6470f3319 Put _SOURCES ahead of per-target _LDADD.
Forgotten in change-set 5eaff819c9e4.
2012-03-01 15:31:46 +01:00
Bård Skaflestad
ea73002a0d Sort executables and per-target _SOURCES. 2012-03-01 15:24:37 +01:00