Remove duplication between gen_mksurfdata_jobscript_multi and gen_mksurfdata_jobscript_single #2439
Labels
code health
improving internal code structure to make easier to maintain (sustainability)
enhancement
new capability or improved behavior of existing capability
test: mksurfdata
Test mksurfdata_esmf before merging
This was brought up in #2290. gen_mksurfdata_jobscript_single has parts that are duplicated with gen_mksurfdata_jobscript_multi and hence changes have to go in two places. This was for example an issue in #2427 which means that extra testing needs to be done because of that duplication.
An improvement to the design would be to have gen_mksurfdata_jobscript_single as the base level script that is expanded on by gen_mksurfdata_jobscript_multi which then doesn't duplicate code, but only adds the additional functionality needed there.
This is something that we will do as a post-CTSM5.2 development.
The text was updated successfully, but these errors were encountered: