Closed adelinehillier closed 3 years ago
Cool! If many of the lines to these scripts are identical, should we figure out how to share the code rather than copy/pasting?
Yeah I agree with @glwagner that it would be nice to add a command line argument to the script to change the stratification between linear, three-layer, and three-layer cubic (maybe there would be too many command line arguments though). But I'm also happy to merge this since it updates and improves existing scripts/examples.
I think the keyword arguments and their defaults are different enough that it probably makes sense to leave the two scripts separate for now, so I'll go ahead and merge, but we can always change in the future!
This PR makes
examples/linear_stratification_constant_fluxes.jl
identical toexamples/three_layer_constant_fluxes.jl
except for the initial condition and addsmode = "c"
as a keyword argument to all of theNetCDFOutputWriter
constructor calls (thanks Ali for this solution!) in both scripts.