Skip to content

Instantly share code, notes, and snippets.

@rolk
rolk / single.grdecl
Created July 6, 2012 11:21
Eclipse .grdecl file with a single element, with MAPAXES keyword commented out
GRID
--MAPAXES
-- 0 1
-- 0 0
-- 1 0
-- /
SPECGRID
1 1 1 1 F
@rolk
rolk / FindLAPACK.cmake
Created January 22, 2013 11:21
FindLAPACK with debug print-outs
# - Find LAPACK library
# This module finds an installed fortran library that implements the LAPACK
# linear-algebra interface (see http://www.netlib.org/lapack/).
#
# The approach follows that taken for the autoconf macro file, acx_lapack.m4
# (distributed at http://ac-archive.sourceforge.net/ac-archive/acx_lapack.html).
#
# This module sets the following variables:
# LAPACK_FOUND - set to true if a library implementing the LAPACK interface
# is found
@rolk
rolk / cmake-compat.patch
Created January 22, 2013 13:17
Provide backward-compatibility modules for older CMakes
From 6001f832e79496f7e2093b94f21a4f28542b8974 Mon Sep 17 00:00:00 2001
From: Roland Kaufmann <roland.kaufmann@uni.no>
Date: Tue, 22 Jan 2013 14:12:16 +0100
Subject: [PATCH 1/1] Provide backward-compatibility modules for older CMakes
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------1.7.9.5"
This is a multi-part message in MIME format.
--------------1.7.9.5
Content-Type: text/plain; charset=UTF-8; format=fixed
# - Find Tim Davis' SuiteSparse collection of sparse matrix libraries
#
# Synopsis:
# find_package (SuiteSparse COMPONENTS <list-of-components>)
#
# Components are:
# amd Approximate Minimum Degree ordering
# camd Constrained Approximate Minimum Degree ordering
# colamd COLumn Approximate Minimum Degree ordering
# ccolamd Constrained COLumn Approximate Minimum Degree ordering
@rolk
rolk / 20130307-1245-OpmPackage.cmake
Created March 7, 2013 11:45
Debug missing include directory option
# - Find routine for OPM-like modules
#
# Synopsis:
#
# find_opm_package (module deps header lib defs prog conf)
#
# where
#
# module Name of the module, e.g. "dune-common"; this will be the
# stem of all variables defined (see below).
#!/bin/bash
mkdir -p aaa/bbb
cd aaa/bbb
for p in opm-core dune-cornerpoint opm-porsol; do
git clone -b release/2013.03 http://github.com/OPM/$p;
mkdir -p $p/build
cd $p/build
cmake ..
make
RUNSPEC
TITLE
Example of how to specify a rate-driven injector
DIMENS
3 1 1
/
-- two phases; co2 is non-wetting, brine is wetting
RUNSPEC
TITLE
Example of how to specify a rate-driven injector
DIMENS
3 1 1
/
-- two phases; co2 is non-wetting, brine is wetting
RUNSPEC
TITLE
Example of how to specify a rate-driven CO2 injector
DIMENS
3 1 1
/
-- two phases; co2 is non-wetting, brine is wetting
deck_filename=458_ressat.data
use_reorder=false
output_ecl=true