opm-simulators/opm/simulators/flow/MissingFeatures.cpp

898 lines
23 KiB
C++
Raw Normal View History

/*
Copyright 2016 Statoil ASA.
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#include <opm/simulators/flow/MissingFeatures.hpp>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/parser/eclipse/Deck/DeckKeyword.hpp>
#include <opm/parser/eclipse/Parser/Parser.hpp>
#include <opm/parser/eclipse/Parser/ParseContext.hpp>
#include <opm/parser/eclipse/Parser/ErrorGuard.hpp>
#include <opm/parser/eclipse/Parser/ParserKeywords/C.hpp>
#include <opm/parser/eclipse/Parser/ParserKeywords/E.hpp>
#include <opm/parser/eclipse/Parser/ParserKeywords/P.hpp>
2016-07-07 00:50:32 -05:00
#include <unordered_set>
#include <string>
#include <map>
2020-02-19 04:15:54 -06:00
#include <type_traits>
namespace Opm {
namespace MissingFeatures {
template <typename Keyword, typename Item, typename T>
2016-08-22 03:14:37 -05:00
void addSupported(std::multimap<std::string, PartiallySupported<T> >& map, T itemValue)
{
std::pair<std::string,PartiallySupported<T> > pair({Keyword::keywordName, PartiallySupported<T>{Item::itemName , itemValue}});
map.insert(pair);
}
template <typename T>
void checkOptions(const DeckKeyword& keyword, std::multimap<std::string , PartiallySupported<T> >& map, const ParseContext& parseContext, ErrorGuard& errorGuard)
{
// check for partially supported keywords.
typename std::multimap<std::string, PartiallySupported<T> >::iterator it, itlow, itup;
itlow = map.lower_bound(keyword.name());
itup = map.upper_bound(keyword.name());
for (it = itlow; it != itup; ++it) {
const auto& record = keyword.getRecord(0);
if (record.getItem(it->second.item).template get<T>(0) != it->second.item_value) {
const auto& location = keyword.location();
2020-02-19 04:15:54 -06:00
std::string val;
if constexpr (std::is_arithmetic<T>::value)
val = std::to_string(it->second.item_value);
else
val = it->second.item_value;
std::string msg = "For keyword '" + it->first + "' only value " + val
+ " in item " + it->second.item + " is supported by flow.\n"
+ "In file " + location.filename + ", line " + std::to_string(location.lineno) + "\n";
parseContext.handleError(ParseContext::SIMULATOR_KEYWORD_ITEM_NOT_SUPPORTED, msg, errorGuard);
}
}
}
template <typename T>
void checkKeywords(const Deck& deck, const ParseContext& parseContext, T&& errorGuard) {
checkKeywords(deck, parseContext, errorGuard);
}
void checkKeywords(const Deck& deck) {
checkKeywords(deck, ParseContext(), ErrorGuard());
}
void checkKeywords(const Deck& deck, const ParseContext& parseContext, ErrorGuard& errorGuard)
{
// These keywords are supported by opm-parser, but are not supported
// by flow. For some of them, only part of the options are supported.
// The list is used to output messages only.
2016-07-07 00:50:32 -05:00
std::unordered_set<std::string> unsupported_keywords = {
2017-11-06 06:41:39 -06:00
"ACTION",
2019-07-26 05:41:35 -05:00
"ACTIONG",
"ACTIONR",
2019-12-18 05:57:33 -06:00
"ACTIONS",
"ACTIONW",
"ACTPARAM",
"ADSALNOD",
"ADDZCORN",
"ADSORP",
"AITS",
"AITSOFF",
"ALKADS",
"ALKALINE",
"ALKROCK",
"API",
"ALPOLADS",
"ALSURFAD",
"ALSURFST",
2019-12-18 05:57:33 -06:00
"AMALGAM",
2017-11-06 06:41:39 -06:00
"APIGROUP",
2019-12-18 05:57:33 -06:00
"APILIM",
"APIVD",
2019-08-08 05:02:59 -05:00
"AQANCONL",
"AQANNC",
"AQANTRC",
2019-12-18 05:57:33 -06:00
"AQUALIST",
"AQUCHGAS",
"AQUCHWAT",
"AQUCON",
2019-08-08 05:02:59 -05:00
"AQUCWFAC",
"AQUFET",
2019-08-08 05:02:59 -05:00
"AQUFLUX",
2019-08-08 08:17:29 -05:00
"AQUNNC",
2019-04-16 23:43:08 -05:00
"AQUNUM",
2019-08-08 05:02:59 -05:00
"AUTOCOAR",
"AUTOREF",
2019-08-13 06:41:50 -05:00
"BIGMODEL",
2019-12-18 05:57:33 -06:00
"BGGI",
"BOGI",
2019-08-13 06:41:50 -05:00
"BOUNDARY",
"BPARA",
"BPIDIMS",
"BRANPROP",
2019-08-13 06:41:50 -05:00
"BTOBALFA",
"BTOBALFV",
2019-08-16 08:14:28 -05:00
"CALTRAC",
2019-04-16 23:43:08 -05:00
"CARFIN",
2019-08-16 08:14:28 -05:00
"CART",
"CBMOPTS",
"CECON",
2019-12-18 05:57:33 -06:00
"CECONT",
2019-08-16 08:14:28 -05:00
"COAL",
"COALADS",
"COALNUM",
2019-08-16 08:14:28 -05:00
"COALPP",
"COARSEN",
"COLLAPSE",
"COLUMNS",
"CBMOPTS",
2019-09-05 07:55:06 -05:00
"COMPDATX",
"COMPDATL",
"COMPDATM",
"COMPDATL",
2019-08-16 08:14:28 -05:00
"COMPIMB",
"COMPFLSH",
2019-09-05 07:55:06 -05:00
"COMPINJK",
2019-08-16 08:14:28 -05:00
"COMPLMPL",
"COMPOFF",
"COMPRIV",
2019-09-05 07:55:06 -05:00
"COMPRP",
"COMPRPL",
2019-08-16 08:14:28 -05:00
"COMPSEGL",
2019-09-05 07:55:06 -05:00
"COMPVE",
"COMPVEL",
"CPIFACT",
"CPIFACTL",
"CPR",
2019-09-05 07:55:06 -05:00
"CSKIN",
"CONNECTION",
2019-08-16 08:14:28 -05:00
"CONNECTION_PROBE",
"COORDSYS",
"COPYBOX",
"COPYREG",
"CRITPERM",
2019-08-23 02:38:32 -05:00
"DATUMR",
"DATUMRX",
"DCQDEFN",
"DEBUG",
2019-08-23 02:38:32 -05:00
"DELAYACT",
2019-09-05 07:55:06 -05:00
"DEPTHTAB",
2019-08-23 02:38:32 -05:00
"DIAGDISP",
2019-09-05 07:55:06 -05:00
"DIFF",
2019-08-23 02:38:32 -05:00
"DIFFC",
2019-09-05 07:55:06 -05:00
"DIFFCOAL",
2019-08-23 02:38:32 -05:00
"DIFFDP",
"DIFFMMF",
"DIFFMR",
"DIFFMR-",
2019-08-23 02:38:32 -05:00
"DIFFMTHT",
"DIFFMTH-",
2019-08-23 02:38:32 -05:00
"DIFFMX",
"DIFFMX-",
2019-08-23 02:38:32 -05:00
"DIFFMY",
"DIFFMY-",
2019-08-23 02:38:32 -05:00
"DIFFMZ",
"DIFFMZ-",
2019-09-05 07:55:06 -05:00
"DIFFR",
"DIFFTHT",
"DIFFUSE"
"DIFFX",
"DIFFY",
"DIFFZ",
"DIMPES",
"DIMPLICT",
"DISPDIMS",
"DISPERSE",
"DOMAINS",
"DPGRID",
"DPKRMOD",
"DPNUM",
"DR",
"DRV",
2019-09-05 07:55:06 -05:00
"DRILPRI",
"DSPDEINT",
"DUALPERM",
"DUALPORO",
"DUMPCUPL",
"DUMPFLUX",
2019-12-18 05:57:33 -06:00
"DYNAMICR",
2019-09-05 07:55:06 -05:00
"DYNRDIMS",
2019-12-18 05:57:33 -06:00
"DYNAMICR",
2019-09-05 07:55:06 -05:00
"DZMATRIX",
"DZMTRX",
"DZMTRXV",
2019-09-12 01:48:56 -05:00
"DZNET",
"ECHO",
2019-09-12 01:48:56 -05:00
"ECLMC",
"EDITNNCR",
"EHYSTRR",
"ENDDYN",
2019-08-23 02:38:32 -05:00
"ENDFIN",
"ENDNUM",
"ENDSKIP",
"ENKRVD",
"ENKSRVD",
2019-09-12 01:48:56 -05:00
"ENPCVD",
"ENPTVD",
2019-09-12 01:48:56 -05:00
"ENSPCVD",
"EPSDBGS",
"EPSDEBUG",
"EQLZCORN",
"EQUALREG",
2019-09-12 01:48:56 -05:00
"ESSNODE",
"EXCAVATE",
"EXCEL",
2019-09-12 01:48:56 -05:00
"EXTFIN",
2019-09-12 05:17:58 -05:00
"EXTHOST",
"EXTRAPMS",
2019-09-12 05:17:58 -05:00
"EXTREPGL",
"FBHPDEF",
"FHERCHBL",
"FRICTION",
2019-09-12 05:17:58 -05:00
"FIPSEP",
"FLUXREG",
"FLUXTYPE",
2019-09-12 05:17:58 -05:00
"FMTHMD",
"FOAMDCYO",
"FOAMDCYW",
2019-09-18 09:20:37 -05:00
"FOAMFCN",
"FOAMFRM",
"FOAMFSO"
"FOAMFST",
"FOAMFSW",
"FOAMMOBP",
"FOAMMOBS",
"FORMFEED",
"FULLIMP",
2019-12-18 05:57:33 -06:00
"GEGONT",
"GETDATA",
2019-09-18 09:20:37 -05:00
"GASBEGIN",
"GASCONC",
"GASEND",
"GASFCOMP",
"GASFDECR",
"GASFDELC",
"GASFIELD",
"GASFTARG",
"GASMONTH",
"GASPERIO",
"GASSATC",
"GASYEAR",
"GCALECON",
"GCONCAL",
"GCONENG",
"GCONPRI",
"GCONSALE",
"GCONSUMP",
"GCONTOL",
"GCUTBACK",
2019-12-18 05:57:33 -06:00
"GCUTBACT",
"GCVD",
"GDCQ",
"GDCQECON",
"GDIMS",
"GDORIENT",
"GDRILPOT",
"GECON",
"GECONT",
"GETGLOB",
"GI",
"GIALL",
"GIMODEL",
"GINODE",
"GLIFTLIM",
2017-11-06 06:41:39 -06:00
"GLIFTOPT",
"GNETDP",
2018-05-25 08:03:16 -05:00
"GNETINJE",
"GNETPUMP",
"GPMAINT",
"GRADGRUP",
"GRADRESV",
"GRADRFT",
"GRADWELL",
"GRAVCONS",
"GRAVDR",
"GRAVDRB",
"GRAVDRM",
"GRDREACH",
"GRIDUNIT",
"GRUPMAST",
"GRUPNET",
"GRUPRIG",
2019-10-02 08:50:17 -05:00
"GRUPSLAV",
"GRUPTARG",
"GSATINJE",
"GSEPCOND",
"GSSCPTST",
"GSWINGF",
"GTADD",
"GTMULT",
"GUIDECAL",
2017-11-06 06:41:39 -06:00
"GSATPROD",
"GUIDERAT",
2019-10-02 08:50:17 -05:00
"GUPFREQ",
"GWRTWCV",
"HALFTRAN",
"HAxxxxxx",
"HBNUM",
"HDISP",
"HMAQUCT",
"HMAQUFET",
"HMAQUNUM",
"HMDIMS",
"HMFAULTS",
"HMMLAQUN",
"HMMLCTAQ",
"HMMLFTAQ",
"HMMLTWCN",
"HMMULTxx",
"HMMULTFT",
"HMMULTSG",
2019-10-02 08:50:17 -05:00
"HMPROPS",
2019-10-09 08:50:11 -05:00
"HMROCK",
"HMROCKT",
"HMRREF",
"HMWELCON",
"HMWPIMLT",
"HMxxxxxx",
"HRFIN",
"HWKRO",
"HWKRORG",
"HWKRORW",
"HWKRW",
"HWKRWR",
"HWPCW",
"HWSNUM",
"HWSOGCR",
"HWSOWCR",
"HWSWCR",
"HWSWL",
"HWSWLPC",
"HWSWU",
"HXFIN",
"HYDRHEAD",
"HYFIN",
"HYMOBGDR",
"HYST",
"HYSTCHCK",
"HZFIN",
"IHOST",
"IMBNUMMF",
"IMKRVD",
2019-10-09 08:50:11 -05:00
"IMPCVD",
"IMPES",
2019-10-09 08:50:11 -05:00
"IMPLICIT",
"IMPORT",
"IMPTVD",
"INRAD",
2019-10-09 08:50:11 -05:00
"IMSPCVD",
"INSPEC",
"INTPC",
"IONROCK",
"IONXROCK",
"IONXSURF",
"ISOLNUM",
"JFUNCR",
"KRNUM",
"KRNUMMF",
"LANGMPL",
"LANGMUIR",
"LANGSOLV",
2019-09-16 08:43:30 -05:00
"LCUNIT",
"LGR",
"LGRCOPY",
"LGRFREE",
"LGRLOCK",
"LGROFF",
"LGRON",
"LICENSES",
2019-09-16 08:43:30 -05:00
"LINCOM",
"LINKPERM",
2019-10-16 06:11:15 -05:00
"LIFTOPT",
"LKRO",
"LKRORG",
"LKRORW",
"LKRW",
"LKRWR",
"LOAD",
2019-10-16 06:11:15 -05:00
"LOWSALT",
"LPCW",
"LSALTFNC",
"LSLTWNUM",
"LSNUM",
"LSOGCR",
"LSOWCR",
"LSWCR",
"LSWL",
"LSWLPC",
"LSWU",
"LTOSIGMA",
"LWKRO",
"LWKRORG",
"LWKRORW",
"LWKRW",
"LWKRWR",
"LWPCW",
"LWSLTNUM",
"LWSNUM",
"LWSOGCR",
"LWSOWCR",
"LWSWCR",
"LWSWL",
"LWSWLPC",
"LWSWU",
"LX",
"LXFIN",
2019-10-16 06:11:15 -05:00
"LY",
"LYFIN",
2019-10-16 06:11:15 -05:00
"LZ",
"LZFIN",
"MAPUNITS",
"MASSFLOW",
2019-10-16 06:11:15 -05:00
"MATCORR",
"MAXVALUE",
"MEMORY",
"MESSAGE",
2019-10-17 06:05:15 -05:00
"MESSOPTS",
"MESSSRVC",
"MINNNCT",
"MINPORV",
"MLANG",
"MLANGSLV",
"MONITOR",
2019-10-24 04:56:09 -05:00
"MPFANUM",
"MPFNNC",
"MSGFILE",
2019-10-24 04:56:09 -05:00
"MULSGGD",
"MULSGGDV",
"MULTOUTS",
"MULTREAL",
"MULTREGD",
"MULTREGH",
"MULTSIG",
"MULTSIGV",
"MULT_XYZ",
2019-10-24 04:56:09 -05:00
"NARROW",
"NCONSUMP",
"NEFAC",
"NETBALAN",
2019-10-26 05:54:59 -05:00
"NETCOMPA",
"NETWORK",
"NEXT",
"NEXTSTEP",
2019-10-26 05:54:59 -05:00
"NEXTSTPL",
"NINENUM",
"NINEPOIN",
"NMATOPTS",
"NMATRIX",
"NODPPM",
"NOECHO",
"NOHMD",
"NOHMO",
"NOHYST",
"NOWARNEP",
"NRSOUT",
2019-09-12 05:17:58 -05:00
"NNEWTF",
"NOCASC",
"NODEPROP",
"NOGGF",
"NOINSPEC",
"NLINEARS",
"NOMONITO",
"NONNC",
"NORSSPEC",
2017-11-06 06:41:39 -06:00
"NOWARN",
"NSTACK",
"NUMRES",
"NWATREM",
"NXFIN",
"NYFIN",
"NZFIN",
"OFM",
"OILAPI",
"OLDTRAN",
"OLDTRANR",
2017-11-06 06:41:39 -06:00
"OPERATER",
"OPERNUM",
"OPTIONS",
"OPTIONS",
"OUTSOL",
"PARAOPTS",
"PCG32D",
"PCW32D",
"PERMJFUN",
"PETOPTS",
"PLYESAL",
"PLYKRRF",
2019-11-01 08:39:38 -05:00
"PLYOPTS",
"PLYRMDEN",
"PLYROCKM",
"PLYTRRF",
"PLYTRRFA",
"PLYVISCS",
"PLYVISCT",
"PLYVSCST",
2019-12-11 04:39:16 -06:00
"PVZG",
2019-11-01 08:39:38 -05:00
"PMAX",
"PRIORITY",
"PSTEADY",
"PSWRG",
"PSWRO",
"PVCO",
"PVZG",
2019-10-24 10:08:47 -05:00
"QDRILL",
"QDRILL",
"QHRATING",
"QMOBIL",
"PARALLEL",
"PARTTRAC",
"PBUB",
"PCG",
"PCW",
"PDEW",
"PEBI",
"PECOEFS",
"PEDIMS",
"PEGTABX",
"PEKTABX",
"PENUM",
"PERMAVE",
2020-04-26 23:52:59 -05:00
"PERMFACT",
2017-11-06 06:41:39 -06:00
"PERMR",
"PERMTHT",
"PERMXY",
"PERMYZ",
"PERMZX",
"PETGRID",
"PICOND",
"PIMULTAB",
"PINCHNUM",
"PINCHOUT",
"PINCHREG",
"PINCHXY",
"PLYADSS",
"PLYATEMP",
"PLYCAMAX",
"PLYDHFLF",
2017-11-06 06:41:39 -06:00
"PPCWMAX",
"PRECSALT",
"PRORDER",
"PRVD",
"PVTGW",
"PVTGWO",
2019-10-17 04:29:33 -05:00
"RAINFALL",
"RBEDCONT",
"RADFIN",
"RADFIN4",
"RADIAL",
2019-10-17 04:29:33 -05:00
"RCMASTS",
"REACACT",
"REACHES",
"READDATA",
"RESIDNUM",
"RESVNUMS",
"RIVDEBUG",
"RIVRXSEC",
2019-10-17 04:29:33 -05:00
"RIVERSYS",
"RIVRDIMS",
2019-10-17 04:29:33 -05:00
"RIVRPROP",
"RIVRXSE",
"RIVSALT",
"RIVTRACE",
2019-10-17 04:29:33 -05:00
"ROCKFRAC",
"ROCKPAMA",
2019-10-17 04:29:33 -05:00
"ROCKTAB",
"ROCKTABH",
"ROCKTABW",
2019-10-17 04:29:33 -05:00
"ROCKTHSG",
"ROCKTSIG",
2019-10-17 04:29:33 -05:00
"ROCKV",
"RPTCPL",
2019-10-17 04:29:33 -05:00
"RPTGRIDL",
"RPTHM",
"RPTHMG",
"RPTHMD",
"RPTHMW",
2019-10-17 04:29:33 -05:00
"RPTINIT",
"RPTISOL",
"RPTPROPS",
"RPTREGS",
2019-10-17 04:29:33 -05:00
"RSGI",
"RSSPE",
"RSSSPEC",
"RVCONS",
"RVCONSTT",
"RVGI",
"REFINE",
"RADFIN4",
2017-11-06 06:41:39 -06:00
"RHO",
"RKTRMDIR",
"ROCKOPTS",
"ROCKTAB",
"RPTGRID",
"RPTONLY",
"RPTONLYO",
"RPTPROS",
"PRTRST",
"RPTRUNSP",
2017-11-06 06:41:39 -06:00
"RPTSMRY",
"RPTSOL",
2017-11-06 06:41:39 -06:00
"RSCONST",
"RSCONSTT",
"RSSPEC",
2017-11-06 06:41:39 -06:00
"RTEMPA",
"RWGSALT",
"SALTPVD",
"SALTSOL",
"SAMG",
"SAVE",
"SKIP",
"SKIP100",
"SKIP300",
"SUMTHIN",
2019-10-11 07:49:33 -05:00
"SALT",
"SALTNODE",
"SALTREST",
"SCALELIM",
"SCDATAB",
"SCDETAB",
"SCDPTAB",
"SCDPTRAC",
"SCDPDIMS",
2019-10-11 07:49:33 -05:00
"SCVD",
"SEPVALS",
"SFOAM",
"SGF32D",
"SIGMA",
"SIGMAGD",
"SIGMAGDV",
"SIGMATH",
"SIGMAV",
"SIMULATE",
"SKRO",
"SKRORG",
"SKRORW",
"SKRW",
"SKRWR",
"SLAVES",
"SMULTX",
"SMULTY",
"SMULTZ",
"SOCRS",
2019-10-11 07:49:33 -05:00
"SOF32D",
"SOLVCONC",
"SOLVDIMS",
"SOLVDIRS",
"SOLVFRAC",
"SOLVNUM",
"SOLWNUM",
"SOMGAS",
"SOMWAT",
"SSGCR",
"SSGL",
"SSOGCR",
"SSOWCR",
"SSWCR",
"SSWL",
"SSWU",
2019-12-11 04:39:16 -06:00
"STOG",
2019-10-11 07:49:33 -05:00
"STOW",
2019-12-11 04:39:16 -06:00
"STWG",
"SURF",
2019-10-11 07:49:33 -05:00
"SURFACT",
"SURFACTW",
"SURFADDW",
"SURFADS",
"SURFCAPD",
"SURFESAL",
"SURFNUM",
"SURFOPTS",
"SURFROCK",
"SURFST",
"SURFSTES",
"SURFVISC",
"SURFWNUM",
"SWF32D",
"SWINGFAC"
"TEMP",
2019-09-26 11:57:10 -05:00
"TEMPNODE",
"TEMPTVD",
"TEMPVD",
"TIGHTEN",
"TIGHTENP",
"TIME",
"TNUM",
2019-09-26 11:57:10 -05:00
"TPAMEPS",
"TPAMEPSS",
"TRACERKM",
"TRACERKP",
"TRACITVD",
"TRACTVD",
"TRACER",
"TRACERS",
2019-10-09 05:03:23 -05:00
"TRACITVD",
"TRADS",
"TRANGL",
"TRANR",
"TRANTHT",
"TRDCY",
"TRDIF",
"TRDIS",
"TRKPF",
"TRNHD",
2019-10-09 05:03:23 -05:00
"TRPLPORO",
"TRROCK",
"TUNINGDP",
2019-10-09 05:03:23 -05:00
"TUNINGH",
"TUNINGL",
"TUNINGS",
"TVDP",
2019-10-09 05:03:23 -05:00
"TZONE",
2019-12-20 09:33:13 -06:00
"UDT",
2019-09-26 11:57:10 -05:00
"UDTDIMS",
"UNCODHMD",
"UNIFOUTS",
"UNIFSAVE",
"USECUPL",
"USEFLUX",
"USENOFLO",
"VAPWAT",
2019-09-26 11:57:10 -05:00
"VDFLOW",
"VDFLOWR",
"VE",
"VEDEBUG",
"VEFIN",
"VEFRAC",
"VEFRACP",
"VEFRACPV",
"VEFRACV",
"VFPCHK",
"VFPTABL",
"VISAGE",
"VISCD",
"VISDATES",
"VISOPTS",
2019-08-14 15:52:03 -05:00
"WAGHYSTR",
"WAITBAL",
"WALKALIN",
"WALQCALC",
"WAPI",
2017-11-06 06:41:39 -06:00
"WARN",
2019-08-14 15:52:03 -05:00
"WBHGLR",
"WBOREVOL",
"WCALCVAL",
"WBP",
"WBP4",
"WBP5",
"WBP9",
"WCONINJ",
"WCONINJP",
"WCUTBACK",
"WCUTBACT",
"WCYCLE",
"WDFACCOR",
"WDFAC",
"WDRILTIM",
"WDRILPRI",
"WDRILRES",
"WECONINJ",
2019-08-23 01:02:14 -05:00
"WECONT",
"WEIR",
"WEIT",
2019-08-23 01:02:14 -05:00
"WELCNTL",
"WELDEBUG",
"WELDRAW",
"WELEVNT",
"WELMOVEL"
2019-08-23 01:02:14 -05:00
"WELOPENL"
2017-11-06 06:41:39 -06:00
"WELPI",
2019-09-06 04:19:59 -05:00
"WELPRI",
"WELSOMIN",
"WELSPECL",
2019-09-06 04:19:59 -05:00
"WFRICSEG",
"WFRICSGL",
"WFRICTN",
"WFRICTNL",
2017-11-06 06:41:39 -06:00
"WGASPROD",
"WGORPEN",
"WH2NUM",
"WH3NUM",
"WHEDREFD",
"WHTEMP",
2017-11-06 06:41:39 -06:00
"WINJMULT",
"WLIMTOL",
"WLIFT",
"WLIFTOPT",
"WLISTARG",
"WLISTNAM",
"WLISTOPT",
"WNETCTRL",
2019-09-13 10:31:50 -05:00
"WNETDP",
"WORKLIM",
2017-11-06 06:41:39 -06:00
"WORKTHP",
"WPAVE",
2019-09-13 10:31:50 -05:00
"WPIMULTL",
"WPITAB",
2019-09-13 10:31:50 -05:00
"WPLUG",
"WPOLYRED",
"WPOTCALC",
2019-09-16 12:46:40 -05:00
"WREGROUP",
"WSCCLEAN",
"WSCCLENL",
"WSCTAB",
"WSEGAICD",
"WSEGDFIN",
"WSEGDFMD",
"WSEGDFPA",
"WSEGEXSS",
"WSEGFLIM",
"WSEGFMOD",
"WSEGINIT",
"WSEGITER",
"WSEGLABY",
"WSEGLINK",
"WSEGMULT",
"WSEGPROP",
"WSEGPULL",
"WSEGSEP",
"WSEGSOLV",
"WSEGTABL",
2019-10-02 12:28:37 -05:00
"WSURFACT",
"WTADD",
2019-10-02 12:28:37 -05:00
"WTEMPQ",
"WTHPMAX",
"WTMULT",
"WVFPDP",
"WVFPEXP",
"WWPAVE",
2019-08-14 15:52:03 -05:00
"ZIPPY2",
"ZIPP2OFF"};
std::multimap<std::string, PartiallySupported<std::string> > string_options;
std::multimap<std::string, PartiallySupported<int> > int_options;
addSupported<ParserKeywords::COMPORD, ParserKeywords::COMPORD::ORDER_TYPE, std::string>(string_options , "INPUT");
2016-08-22 03:14:37 -05:00
addSupported<ParserKeywords::ENDSCALE, ParserKeywords::ENDSCALE::DIRECT, std::string>(string_options, "NODIR");
addSupported<ParserKeywords::ENDSCALE, ParserKeywords::ENDSCALE::IRREVERS, std::string>(string_options, "REVER");
addSupported<ParserKeywords::PINCH, ParserKeywords::PINCH::CONTROL_OPTION, std::string>(string_options, "GAP");
addSupported<ParserKeywords::PINCH, ParserKeywords::PINCH::PINCHOUT_OPTION, std::string>(string_options, "TOPBOT");
addSupported<ParserKeywords::EHYSTR, ParserKeywords::EHYSTR::relative_perm_hyst, int>(int_options , 0);
// check deck and keyword for flow and parser.
for (size_t idx = 0; idx < deck.size(); ++idx) {
const auto& keyword = deck.getKeyword(idx);
const auto& location = keyword.location();
std::unordered_set<std::string>::const_iterator it;
it = unsupported_keywords.find(keyword.name());
if (it != unsupported_keywords.end()) {
std::string msg = "Keyword '" + keyword.name() + "' is not supported by flow.\n"
+ "In file " + location.filename + ", line " + std::to_string(location.lineno) + "\n";
parseContext.handleError(ParseContext::SIMULATOR_KEYWORD_NOT_SUPPORTED, msg, errorGuard);
}
checkOptions<std::string>(keyword, string_options, parseContext, errorGuard);
checkOptions<int>(keyword, int_options, parseContext, errorGuard);
}
}
} // namespace MissingFeatures
} // namespace Opm