Skip to content

Simple modification to build-namelist to remove the need for the -lnd_root argument #3668

@ekluzek

Description

@ekluzek

#3570 adds a new argument to build-namelist. There's a simple change that can be done to remove the need for that argument. This helps with #1763 where we want to deprecate command line arguments in favor of using env XML variables. Which also helps to move us towards being able to replace build-namelist with python buildnml extended to cover what build-namelist does.

What I'm thinking of is the top of the perl module gives you $ProgDir, which is basically "$landroot/bld". So we can get it with:

my $landroot = abs_path("$ProgDir/..");

I think this is just a little simpler and doesn't require that cross communication bit.

Originally posted by @ekluzek in #3570 (comment)

Metadata

Metadata

Assignees

Labels

bfbbit-for-bitcode healthimproving internal code structure to make easier to maintain (sustainability)enhancementnew capability or improved behavior of existing capability

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions