m0n0lithic

P_INTERP.README

May 15th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. p_interp will interpolate WRF-ARW netCDF output files to user specified pressure levels.
  2.  
  3. ------------- Compile ------------------------------
  4.  
  5. A netCDF library is needed for compiling the code. The MPI library is needed for running
  6. parallel. There are many options for compiling at the top of p_interp.F90.
  7.  
  8. Serial Compile
  9.  
  10. pgf90 p_interp.F90 -L/usr/local/netcdf/lib -lnetcdf -lm \
  11. -I/usr/local/netcdf/include -Mfree -o p_interp
  12.  
  13. Parallel Compile:
  14.  
  15. mpxlf_r -qfree=f90 -L/usr/local/netcdf/lib -lnetcdf -lm \
  16. -I/usr/local/netcdf/include -o p_interp p_interp.F90 -WF,-D_MPI
  17.  
  18. If successful, this will create an executable called p_interp.
  19.  
  20. ------------- Namelist Options ----------------------
  21.  
  22. New options in the namelist:
  23.  
  24. met_em_output = .FALSE. Set to .TRUE. to calculate and output fields needed in
  25. a met_em file. These files are used as input to real.exe.
  26. split_output = .FALSE. Set to .TRUE. to output each time in the input file to
  27. a separate file.
  28. mpi_debug = .FALSE. Set to .TRUE. for additional output that may be helpful
  29. when debugging parallel code.
  30.  
  31.  
  32. Info about running with met_em_output = .TRUE.. Other options need to be set in the namelist:
  33.  
  34. split_output = .TRUE.
  35. unstagger_grid = .FALSE.
  36. extrapolate = 1
  37. process = 'all'
  38.  
  39. If you forget to set any of the first 3 options, they will be reset automatcially in the code.
  40. If process is set to 'list', the code will stop and the user will have to set process to 'all'.
  41.  
  42. p_interp will stop if met_em files already exist. This is to avoid overwriting any met_em files
  43. created by metgrid.exe.
  44.  
  45. ------------- Run ------------------------------
  46.  
  47. To run serially:
  48.  
  49. unix> p_interp
  50.  
  51. To run parallel (Aix):
  52.  
  53. mpirun.lsf p_interp
  54.  
  55. =====================================================================================================================
  56.  
  57. Ejemplo en cluster (area51)
  58. slonin@master ~/WRFV33/WRFV3/main/P_INTERP $ gfortran p_interp.F90 -L-L/tools/lib -lnetcdf -lm -I/tools/include -o p_interp
  59. slonin@master ~/WRFV33/WRFV3/main/P_INTERP $ ldd p_interp
  60. linux-vdso.so.1 (0x00007fffe45d7000)
  61. libgfortran.so.3 => /tools/lib/libgfortran.so.3 (0x00002ae9acf38000)
  62. libm.so.6 => /tools/lib/libm.so.6 (0x00002ae9ad24c000)
  63. libgcc_s.so.1 => /tools/lib/libgcc_s.so.1 (0x00002ae9ad547000)
  64. libquadmath.so.0 => /tools/lib/libquadmath.so.0 (0x00002ae9ad75c000)
  65. libc.so.6 => /tools/lib/libc.so.6 (0x00002ae9ad991000)
  66. /tools/lib64/ld-linux-x86-64.so.2 (0x00002ae9acd14000)
  67. slonin@master ~/WRFV33/WRFV3/main/P_INTERP $ mv p_interp ../../run/
Advertisement
Add Comment
Please, Sign In to add comment