meteoadriatic
Member
Hello,
Consider simple example. Let's say I want to replace a constant within a code with a variable, that I can control through namelist.input entry.
I came up with ugly solution that consist from:
Suppose the new variable is called newparametername.
1) define newparametername in Registry
2) declare newparametername in code
3) before using newparametername "call" it like this:
CALL nl_get_newparametername ( 1, newparametername )
4) use newparametername in code
Of course there is a better way, however I can't find out the standard way to to this. Any hint?
Thank you,
Ivan
Consider simple example. Let's say I want to replace a constant within a code with a variable, that I can control through namelist.input entry.
I came up with ugly solution that consist from:
Suppose the new variable is called newparametername.
1) define newparametername in Registry
2) declare newparametername in code
3) before using newparametername "call" it like this:
CALL nl_get_newparametername ( 1, newparametername )
4) use newparametername in code
Of course there is a better way, however I can't find out the standard way to to this. Any hint?
Thank you,
Ivan