2025-01-13 06:31:09 -06:00
/*
Copyright 2021 Equinor .
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/>.
*/
# if HAVE_CONFIG_H
# include "config.h"
# endif // HAVE_CONFIG_H
# include <opm/simulators/utils/FullySupportedFlowKeywords.hpp>
using namespace Opm : : KeywordValidation ;
namespace Opm : : FlowKeywordValidation
{
template < >
2025-01-15 06:34:05 -06:00
const SupportedKeywordItems < std : : string > &
2025-01-13 06:31:09 -06:00
fullySupported ( )
{
2025-01-15 06:34:05 -06:00
static const SupportedKeywordItems < std : : string > fully_supported_keywords_strings = {
2025-01-13 06:31:09 -06:00
{
" NEXTSTEP " ,
{
{ 2 , { true , is_bool_convertible { } , " NEXTSTEP(NSTEP2): String value must be convertible to bool. " } } , // APPLY_TO_FUTURE_REPORT_STEPS
} ,
} ,
{
" WCONHIST " ,
{
{ 3 , { true , allow_values < std : : string > { " ORAT " , " WRAT " , " GRAT " , " LRAT " , " RESV " , " BHP " } , " WCONHIST(TARGET): should be set to ORAT/WRAT/GRAT/LRAT/RESV or BHP " } } , // CMODE
} ,
} ,
} ;
return fully_supported_keywords_strings ;
}
template < >
2025-01-15 06:34:05 -06:00
const SupportedKeywordItems < int > &
2025-01-13 06:31:09 -06:00
fullySupported ( )
{
2025-01-15 06:34:05 -06:00
static const SupportedKeywordItems < int > fully_supported_keywords_int = {
2025-01-13 06:31:09 -06:00
} ;
return fully_supported_keywords_int ;
}
template < >
2025-01-15 06:34:05 -06:00
const SupportedKeywordItems < double > &
2025-01-13 06:31:09 -06:00
fullySupported ( )
{
2025-01-15 06:34:05 -06:00
static const SupportedKeywordItems < double > fully_supported_keywords_double = {
2025-01-13 06:31:09 -06:00
{
" WPIMULT " ,
{
{ 2 , { true , [ ] ( double x ) { return x > 0 ; } , " WPIMULT(PIMULT): Well PI multiplier must be a positive number. " } } , // PI_MULTIPLIER
} ,
} ,
} ;
return fully_supported_keywords_double ;
}
} // namespace Opm::FlowKeywordValidation