Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
06e69148
Commit
06e69148
authored
May 23, 2017
by
Uwe Schulzweida
Browse files
Added alias.c_str() (bug fix).
parent
00e9b816
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules.cc
View file @
06e69148
...
...
@@ -778,7 +778,7 @@ int add_alias(std::string alias, std::string original) {
return
-
2
;
}
if
(
modules_map
.
find
(
alias
)
!=
modules_map
.
end
())
{
Error
(
"alias %s could not be added: alias name already exists as an operator"
);
Error
(
"alias %s could not be added: alias name already exists as an operator"
,
alias
.
c_str
()
);
}
aliases
[
alias
]
=
original
;
NumAliases
++
;
...
...
@@ -1076,7 +1076,6 @@ void init_aliases()
add_alias
(
"covar0r"
,
"fldcovar"
);
add_alias
(
"gather"
,
"collgrid"
);
add_alias
(
"geopotheight"
,
"gheight"
);
add_alias
(
"ncode"
,
"npar"
);
add_alias
(
"globavg"
,
"fldavg"
);
add_alias
(
"import_grads"
,
"import_binary"
);
add_alias
(
"infos"
,
"sinfo"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment