Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Fix LSF RESOURCE(S)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pål Grønås Drange authored and Pål Grønås Drange committed Apr 11, 2018
1 parent 1d12dce commit cebff63
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/enkf/config_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const char * config_keys_get_queue_option_key() {
return QUEUE_OPTION_KEY;
}

const char * config_keys_get_lsf_resource_key() {
return LSF_RESOURCE_KEY;
const char * config_keys_get_lsf_resources_key() {
return LSF_RESOURCES_KEY;
}

const char * config_keys_get_lsf_server_key() {
Expand Down
2 changes: 1 addition & 1 deletion lib/enkf/site_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ void site_config_add_config_items(config_parser_type * config, bool site_mode) {
item = config_add_schema_item(config, LSF_QUEUE_KEY, false);
config_schema_item_set_argc_minmax(item, 1, 1);

item = config_add_schema_item(config, LSF_RESOURCE_KEY, false);
item = config_add_schema_item(config, LSF_RESOURCES_KEY, false);
config_schema_item_set_argc_minmax(item, 1, CONFIG_DEFAULT_ARG_MAX);

item = config_add_schema_item(config, MAX_RUNNING_LSF_KEY, false);
Expand Down
2 changes: 1 addition & 1 deletion lib/include/ert/enkf/config_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ extern "C" {
#define LOG_FILE_KEY "LOG_FILE"
#define LOG_LEVEL_KEY "LOG_LEVEL"
#define LSF_QUEUE_KEY "LSF_QUEUE" // The queue name, e.g. "mr"
#define LSF_RESOURCE_KEY "LSF_RESOURCE" // LSF resource requirements
#define LSF_RESOURCES_KEY "LSF_RESOURCE" // LSF resource requirements
#define LSF_SERVER_KEY "LSF_SERVER"
#define TORQUE_QUEUE_KEY "TORQUE_QUEUE"
#define MAX_RESAMPLE_KEY "MAX_RESAMPLE"
Expand Down
4 changes: 2 additions & 2 deletions python/res/enkf/config_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ConfigKeys:
_simulation_job_key = ResPrototype("char* config_keys_get_simulation_job_key()", bind=False)
_log_file_key = ResPrototype("char* config_keys_get_log_file_key()", bind=False)
_log_level_key = ResPrototype("char* config_keys_get_log_level_key()", bind=False)
_lsf_resource_key = ResPrototype("char* config_keys_get_lsf_resource_key()", bind=False)
_lsf_resources_key = ResPrototype("char* config_keys_get_lsf_resources_key()", bind=False)
_lsf_server_key = ResPrototype("char* config_keys_get_lsf_server_key()", bind=False)
_lsf_queue_key = ResPrototype("char* config_keys_get_lsf_queue_key()", bind=False)
_update_log_path = ResPrototype("char* config_keys_get_update_log_path_key()", bind=False)
Expand Down Expand Up @@ -88,7 +88,7 @@ class ConfigKeys:
SIMULATION_JOB = _simulation_job_key()
LOG_FILE = _log_file_key()
LOG_LEVEL = _log_level_key()
LSF_RESOURCE_KEY = _lsf_resource_key()
LSF_RESOURCE_KEY = _lsf_resources_key()
LSF_QUEUE_NAME_KEY = _lsf_queue_key()
LSF_SERVER_KEY = _lsf_server_key()
LSF_KEY = 'LSF'
Expand Down

0 comments on commit cebff63

Please sign in to comment.