Write a MODFLOW-NWT upstream weighting file

rmf_write_upw(
  upw,
  file = {    
    cat("Please select upw file to overwrite or provide new filename ...\n")    
    file.choose() },
  dis = {     cat("Please select corresponding dis file ...\n")    
    rmf_read_dis(file.choose()) },
  iprn = -1,
  ...
)

Arguments

upw

an RMODFLOW upw object

file

filename to write to; typically '*.upw'

iprn

format code for printing arrays in the listing file; defaults to -1 (no printing)

...

arguments passed to rmfi_write_array. Can be ignored when arrays are INTERNAL or CONSTANT.

Value

NULL

Note

upw input structure is nearly identical to lpf but calculations are done differently. Differences include the addition of the iphdry value and the ommision of optional keywords. Layer wetting capabilities are also not supported by upw.

upw must be used with the Newton solver. See also rmf_create_nwt.