17
tutorials/CMakeLists.txt
Normal file
17
tutorials/CMakeLists.txt
Normal 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()
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user