Commit Graph

3392 Commits

Author SHA1 Message Date
Bård Skaflestad
efc44daf76 Merge pull request #278 from rolk/278_linkver
Print linker version to log when configuring
2013-07-05 04:25:50 -07:00
Roland Kaufmann
56d3e1f8a4 Parse RHEL5 linker strings better 2013-07-05 13:18:53 +02:00
Roland Kaufmann
0696a21280 Print linker version to log 2013-07-05 12:45:39 +02:00
Roland Kaufmann
357db6c5e0 Add function to detect linker version
The linker that is used (ld vs. gold for instance) is often hidden
when using the compiler as a front-end (to include the correct
runtime libraries).

These functions enables us to probe the linker version and reports
its finding in the log.
2013-07-05 12:44:04 +02:00
Bård Skaflestad
94bc2525b2 Merge pull request #277 from blattms/fix-agmg-verbosity
Fixes setting the verbosity for AGMG.
2013-07-05 03:41:58 -07:00
Markus Blatt
4a9dd8c483 Fixes setting the verbosity for AGMG.
If verbosity is true, we set the iprint parameter such that the
output is print to standard out. If not, we use a negative number
such that only error messages are printed to standard out.
2013-07-05 12:19:57 +02:00
Bård Skaflestad
8fc205707b Merge pull request #276 from rolk/276_linsolres
Zero-initialize structure to avoid returning undefined
2013-07-05 02:36:57 -07:00
Bård Skaflestad
143417e2b2 Merge pull request #272 from blattms/satellite-exclude-all
Change marker EXCLUDE_ALL to EXCLUDE_FROM_ALL in opm_compile_satellite
2013-07-05 02:24:58 -07:00
Roland Kaufmann
002e22b9ec Zero-initialize structure to avoid returning undefined
The compiler will otherwise complain that we are returning undefined
data. There is no way for the client code to know whether this was
the case.
2013-07-05 10:59:52 +02:00
Markus Blatt
757973b713 Adjusts macro documentation to recent change. 2013-07-05 10:44:31 +02:00
Bård Skaflestad
33173396f5 Merge pull request #266 from rolk/266_library
Move all common build code to cmake/ directory
2013-07-05 01:28:55 -07:00
Roland Kaufmann
9853407ded Refer to other project-specific files at top-level
Having the include statements here will hopefully lead to others
quickly finding the list of prerequisite files needed to build.
2013-07-05 00:58:29 +02:00
Roland Kaufmann
91f96087b7 Include file list from top-level instead of module-level
Increase the visibility of the source file name include by no longer
putting it in a module, but rather by including it in CMakeLists.txt
2013-07-05 00:57:07 +02:00
Roland Kaufmann
a4767f754b Don't include prerequisites here; do it more explicitly
Developers that are working to familiarize themselves with OPM will
probably start out in CMakeLists.txt to figure out where the project
declare its dependencies, thus the list should be referred to from
there instead of inside one of the sub-modules.
2013-07-04 23:47:38 +02:00
Bård Skaflestad
d332129676 Merge pull request #274 from blattms/non-tr1
Changed std::tr1 occurences to boost.
2013-07-04 12:01:51 -07:00
Markus Blatt
68eb3fbcb1 Changed std::tr1 occurences to boost.
std::tr1 might not be supported by all compilers and will eventually
be dropped by others. Using boost instead makes this more
portable.
2013-07-04 16:04:35 +02:00
Markus Blatt
f739c607f9 Change marker EXCLUDE_ALL to EXCLUDE_FROM_ALL in opm_compile_satellite
Previously, when passing EXCLUDE_ALL to opm_compile_satellite this
resulted a cmake error:

CMake Error at cmake/Modules/UseDebugSymbols.cmake:71 (get_target_property):
  Cannot find source file:

    EXCLUDE_ALL

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
Call Stack (most recent call first):
  cmake/Modules/OpmSatellites.cmake:77 (strip_debug_symbols)
  CMakeLists.txt:176 (opm_compile_satellites)
2013-07-04 12:28:10 +02:00
Roland Kaufmann
501e5ad0e9 Project-specific hooks no longer needs an extra arg.
This change is already implemented in its own commit, but the
CMakeLists.txt change is in its own commit to make it easier to
distribute the changes to other projects without merge conflicts.
2013-06-29 22:10:48 +02:00
Roland Kaufmann
2c8e068812 Remove the project parameter for the customization hook
The hooks are meant to be project specific, and should therefore
either know their own name or at least have access to a variable with
that name in it.
2013-06-29 22:04:00 +02:00
Bård Skaflestad
d3065fb3f6 Merge pull request #269 from rolk/269_sink
Use a more realistic measure for source and show use of units
2013-06-28 04:56:36 -07:00
Roland Kaufmann
1998e98a00 Use natural names instead of mathematical notation 2013-06-28 13:44:15 +02:00
Roland Kaufmann
405a6b021c Sink should match source
Although it already does numerically, this make is more explicitly
clear.
2013-06-28 13:40:22 +02:00
Roland Kaufmann
0e456909e6 Use a more realistic injection rate
In addition, this also shows how to use the units to specify the
measure.
2013-06-28 13:20:09 +02:00
Roland Kaufmann
6a7a9541f4 Give a name to the porosity
Mostly one would assume that this would be the porosity since that's the
only non-named argument, but stating this explicitly saves us from one
trip to the manual.
2013-06-28 13:08:16 +02:00
Bård Skaflestad
254f70e504 Merge pull request #267 from laods/verbosity
Change verbosity level of warning message in transport solver
2013-06-28 02:02:31 -07:00
Roland Kaufmann
f44cd35d81 Move configure script to cmake/Scripts/ directory
We want all changes to happen there; retain a small script that
simply forwards the action to the main script in that directory.
2013-06-26 00:05:02 +02:00
Roland Kaufmann
df6c17a9c4 Use common library code and define customization in macros
Only the code that is special for this particular project is retained
in the main file; all the common code is imported from the cmake/
directory.
2013-06-25 23:55:58 +02:00
Roland Kaufmann
38bd5b0ad3 Common code for building OPM library modules
Most of the OPM libraries follow the same template; this include file
contains all the common code.
2013-06-25 23:53:40 +02:00
Roland Kaufmann
bc9c8a7068 Get prerequisites from a separate "header" file
Note that the variable containing the dependencies must be expanded
inside quotes; otherwise the list will spill into the argument list!
2013-06-25 23:49:36 +02:00
Roland Kaufmann
fe6d7e8889 List prerequisites for modules in a separate file
This file can be included both in the project itself, and also in the
find module for the library, so that the list of dependencies can be
maintained in only one place.
2013-06-25 23:42:50 +02:00
Atgeirr Flø Rasmussen
b23ffaa7f0 Merge pull request #265 from bska/remove-unwanted-commits
Remove files that were inadvertenly introduced
2013-06-25 02:51:37 -07:00
Bård Skaflestad
c737a1b01b Remove files that were inadvertenly introduced
Requested by: qilicun
2013-06-25 11:33:23 +02:00
Liu Ming
25dd2fadaa qq 2013-06-25 16:01:14 +08:00
Liu Ming
70eebfdad8 test for new files 2013-06-25 15:52:35 +08:00
Atgeirr Flø Rasmussen
34f2d637ab Merge pull request #263 from bska/remove-redef-kluge
Disable build kluge that is no longer pertinent
2013-06-24 06:02:10 -07:00
Bård Skaflestad
6afd914756 Merge pull request #262 from blattms/unify-amg-calls
Unify amg calls
2013-06-21 04:01:03 -07:00
Markus Blatt
4f41c2ac72 Fixed unused parameters and whitespace issues. 2013-06-21 12:49:35 +02:00
Bård Skaflestad
33320270fc Disable build kluge that is no longer pertinent
The <have_boost_redef.hpp> header was introduced (commit 82369f9) as
a work-around for a particular interaction in the Autotools-based
setup of OPM-Core and the Dune core modules.  Notably, Dune's
"Enable" trick for Boost failed on some older Autoconf systems.  Now
that we're using CMake, however, that kluge is no longer needed
because we (OPM-Core) always

  #define HAVE_BOOST 1

i.e., as an explict true/false value.

Therefore, we need no longer include <have_boost_redef.hpp> .  The
header will be removed at a later time.
2013-06-20 23:14:39 +02:00
Markus Blatt
b3f24972cc Fixed spelling 2013-06-20 17:01:35 +02:00
Markus Blatt
c87b98abbb Unifies the way how AMG is called.
After this patch one can set the prolongation factor for all
AMG calls and the number of smoothing steps for all except
of FastAMG that currently only supports on step.
2013-06-20 16:55:07 +02:00
Markus Blatt
97b8203773 Merge remote-tracking branch 'upstream/master' 2013-06-20 16:07:58 +02:00
Bård Skaflestad
2b4298f366 Merge pull request #261 from rolk/261_parse
Sideport of OPM/opm-material@48f6d4d to opm-core
2013-06-20 04:55:27 -07:00
Bård Skaflestad
e3577085c2 Add CMake backwards compatibility for version < 2.8.3
Add features that aren't available in early versions of the 2.8.x
release series, enabling use of 2.8.0 if needed (e.g. Ubuntu 10.04)
2013-06-20 13:30:57 +02:00
Lars Vingli Odsæter
f8bad8fd92 Change verbosity level of warning message in transport solver
Don't print message "s was clamped in some cells" unless preprocessor
symbol 'VERBOSE' is set.
2013-06-20 13:30:23 +02:00
Bård Skaflestad
79b180976f Merge pull request #260 from rolk/260_auto
Sideport of OPM/opm-material@7298744 to opm-core
2013-06-20 04:27:49 -07:00
Andreas Lauser
8f6df1ebf9 Test if the auto keyword is supported 2013-06-20 13:22:02 +02:00
Andreas Lauser
20fcad55c5 Fixed spelling mistake 2013-06-20 13:20:58 +02:00
Markus Blatt
4c49da33ad Merge remote-tracking branch 'origin/master' 2013-06-19 14:56:34 +02:00
Markus Blatt
5072014198 Merge remote-tracking branch 'upstream/master'
Conflicts:
	opm/core/linalg/LinearSolverIstl.cpp
2013-06-19 14:55:50 +02:00
Markus Blatt
a5313ec301 Merge remote-tracking branch 'upstream/master' 2013-06-18 10:48:28 +02:00