1
1

Fix bug in carto component select. After the insertion of mca_base_select the carto file component was never selected.

This commit was SVN r18496.
Этот коммит содержится в:
Sharon Melamed 2008-05-26 12:52:41 +00:00
родитель 6596d19c90
Коммит 64fe554b8e

Просмотреть файл

@ -78,29 +78,28 @@ const opal_carto_base_component_1_0_0_t mca_carto_file_component = {
static int file_open(void) static int file_open(void)
{ {
int index;
mca_base_param_reg_int(&mca_carto_file_component.base_version,
"priority",
"Priority of the file carto component",
false, false, 10, NULL);
mca_base_param_reg_string(&mca_carto_file_component.base_version, mca_base_param_reg_string(&mca_carto_file_component.base_version,
"path", "path",
"The path to the cartography file", "The path to the cartography file",
false, false, NULL, &carto_file_path); false, false, NULL, &carto_file_path);
/** /**
* If the user specified the carto file path (not NULL), use the * If the user specified the carto file path (not NULL), use the
* carto file component. The auto detect component is with * carto file component. The auto detect component is with
* higher priority, so by default it will be chosen. * higher priority, so by default it will be chosen.
*/ */
if (NULL != carto_file_path) { if (NULL == carto_file_path) {
index = mca_base_param_find("carto",NULL,NULL); mca_base_param_reg_int(&mca_carto_file_component.base_version,
if (index != OPAL_ERROR) { "priority",
/* set the "carto" mca parameter to "file" */ "Priority of the file carto component",
mca_base_param_set_string(index,"file"); false, false, 10, NULL);
} }else{
mca_base_param_reg_int(&mca_carto_file_component.base_version,
"priority",
"Priority of the file carto component",
false, false, 12, NULL);
} }
return OPAL_SUCCESS; return OPAL_SUCCESS;
} }