Merge pull request #604 from akva2/build_tutorials

Build tutorials
This commit is contained in:
Bård Skaflestad
2014-06-23 10:51:51 +02:00
5 changed files with 25 additions and 0 deletions

17
tutorials/CMakeLists.txt Normal file
View File

@@ -0,0 +1,17 @@
# Build system for opm-core tutorials
# Note: This is independent of the main opm-core build system.
# It assumes an opm-core library is installed at the system level.
project(opm-core-tutorials)
cmake_minimum_required(VERSION 2.8)
find_package(opm-core REQUIRED)
include_directories(${opm-core_INCLUDE_DIRS})
add_definitions(${opm-core_DEFINITIONS})
foreach(tut 1 2 3 4)
add_executable(tutorial${tut} tutorial${tut}.cpp)
target_link_libraries(tutorial${tut} ${opm-core_LIBRARIES})
endforeach()

View File

@@ -31,7 +31,9 @@
/// \snippet tutorial1.cpp including headers /// \snippet tutorial1.cpp including headers
/// \internal [including headers] /// \internal [including headers]
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#include <opm/core/grid.h> #include <opm/core/grid.h>
#include <opm/core/grid/GridManager.hpp> #include <opm/core/grid/GridManager.hpp>

View File

@@ -28,7 +28,9 @@
/// We solve the flow equations for a Cartesian grid and we set the source term /// We solve the flow equations for a Cartesian grid and we set the source term
/// \f$q\f$ be zero except at the left-lower and right-upper corner, where it is equal /// \f$q\f$ be zero except at the left-lower and right-upper corner, where it is equal
/// with opposite sign (inflow equal to outflow). /// with opposite sign (inflow equal to outflow).
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#include <opm/core/grid.h> #include <opm/core/grid.h>
#include <opm/core/grid/GridManager.hpp> #include <opm/core/grid/GridManager.hpp>

View File

@@ -18,7 +18,9 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>. along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/ */
/// \endcond /// \endcond
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#include <iostream> #include <iostream>
#include <iomanip> #include <iomanip>

View File

@@ -18,7 +18,9 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>. along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/ */
/// \endcond /// \endcond
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#include <iostream> #include <iostream>
#include <iomanip> #include <iomanip>