Move old files into the attic

The attic are the place where files which we don't use right now, but
which we acknowledge some amount of valuable time has been spent on and
which may be usable some day in the future, so we don't have the
conscience to right out delete them.

These files are not expected to compile, and certainly not to run and
produce sensible results, anymore. However, with some work they can
possibly be converted into proper unit tests or examples.
This commit is contained in:
Roland Kaufmann
2013-08-02 20:31:06 +02:00
parent 8efd1c0aa9
commit fa5344ec3e
15 changed files with 23 additions and 1 deletions
+60
View File
@@ -0,0 +1,60 @@
//===========================================================================
//
// File: test_readpolymer.cpp
//
// Created: Thu Jan 12 15:18:46 2012
//
// Author: Bjørn Spjelkavik <bsp@sintef.no>
//
// Revision: $Id$
//
//===========================================================================
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <opm/core/io/eclipse/EclipseGridParser.hpp>
// Test program for reading Eclipse Polymer keywords.
int main(int argc, char** argv)
{
using namespace std;
std::string ecl_filename;
if (argc == 2) {
ecl_filename = argv[1];
} else {
std::cout << "\nUsage: test_readpolymer filename.grdecl\n";
exit( 1 );
}
bool convert_to_SI = true;
Opm::EclipseGridParser parser(ecl_filename, convert_to_SI);
std::cout << "\n Polymer fields\n\n";
if (parser.hasField("PLYVISC")) {
parser.getPLYVISC().write(std::cout);
}
if (parser.hasField("PLYROCK")) {
parser.getPLYROCK().write(std::cout);
}
if (parser.hasField("PLYADS")) {
parser.getPLYADS().write(std::cout);
}
if (parser.hasField("TLMIXPAR")) {
parser.getTLMIXPAR().write(std::cout);
}
if (parser.hasField("PLYMAX")) {
parser.getPLYMAX().write(std::cout);
}
if (parser.hasField("WPOLYMER")) {
parser.getWPOLYMER().write(std::cout);
}
}