config_mod.F90 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. module config_mod
  2. implicit none
  3. public
  4. ! KIND parameter for reals used in exchange with the coupler. This is made
  5. ! compatible with OASIS double precision
  6. integer,parameter :: RNP = SELECTED_REAL_KIND(12,307)
  7. character(len=*),parameter :: NamelistFileName = "namelist.runoffmapper"
  8. character(len=*),parameter :: RunoffMapFileName = "runoff_maps.nc"
  9. ! File name and NetCDF variable name to read the cell areas.
  10. ! The areas.nc file that OASIS reads is used here as well.
  11. character(len=*),parameter :: CellAreaFileName = "areas.nc"
  12. character(len=*),parameter :: CellAreaVarName = "RnfA.srf"
  13. ! x and y (i and j) dimensions of the runoff mapper grid
  14. integer,parameter :: GridNX = 512
  15. integer,parameter :: GridNY = 256
  16. ! Logical IO unit number to read the namelist
  17. integer,parameter :: NAMLUN = 13
  18. contains
  19. subroutine ERROR(msg)
  20. character(len=*),intent(in) :: msg
  21. write (*,'("*EE*",A)') msg
  22. stop 'Aborting runoff-mapper.'
  23. end subroutine ERROR
  24. end module config_mod